ServiceResourcePropertiesBase Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ServiceResourcePropertiesBase
- com.
Implements
public class ServiceResourcePropertiesBase
implements JsonSerializable<ServiceResourcePropertiesBase>
The common service resource properties.
Constructor Summary
| Constructor | Description |
|---|---|
| ServiceResourcePropertiesBase() |
Creates an instance of Service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Service |
correlationScheme()
Get the correlation |
|
Move |
defaultMoveCost()
Get the default |
|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
| String |
placementConstraints()
Get the placement |
|
List<Service |
serviceLoadMetrics()
Get the service |
|
List<Service |
servicePlacementPolicies()
Get the service |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Service |
withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)
Set the correlation |
|
Service |
withDefaultMoveCost(MoveCost defaultMoveCost)
Set the default |
|
Service |
withPlacementConstraints(String placementConstraints)
Set the placement |
|
Service |
withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)
Set the service |
|
Service |
withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)
Set the service |
Methods inherited from java.lang.Object
Constructor Details
ServiceResourcePropertiesBase
public ServiceResourcePropertiesBase()
Creates an instance of ServiceResourcePropertiesBase class.
Method Details
correlationScheme
public List<ServiceCorrelationDescription> correlationScheme()
Get the correlationScheme property: A list that describes the correlation of the service with other services.
Returns:
defaultMoveCost
public MoveCost defaultMoveCost()
Get the defaultMoveCost property: Specifies the move cost for the service.
Returns:
fromJson
public static ServiceResourcePropertiesBase fromJson(JsonReader jsonReader)
Reads an instance of ServiceResourcePropertiesBase from the JsonReader.
Parameters:
Returns:
Throws:
placementConstraints
public String placementConstraints()
Get the placementConstraints property: The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
Returns:
serviceLoadMetrics
public List<ServiceLoadMetricDescription> serviceLoadMetrics()
Get the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.
Returns:
servicePlacementPolicies
public List<ServicePlacementPolicyDescription> servicePlacementPolicies()
Get the servicePlacementPolicies property: A list that describes the correlation of the service with other services.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCorrelationScheme
public ServiceResourcePropertiesBase withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)
Set the correlationScheme property: A list that describes the correlation of the service with other services.
Parameters:
Returns:
withDefaultMoveCost
public ServiceResourcePropertiesBase withDefaultMoveCost(MoveCost defaultMoveCost)
Set the defaultMoveCost property: Specifies the move cost for the service.
Parameters:
Returns:
withPlacementConstraints
public ServiceResourcePropertiesBase withPlacementConstraints(String placementConstraints)
Set the placementConstraints property: The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
Parameters:
Returns:
withServiceLoadMetrics
public ServiceResourcePropertiesBase withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)
Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.
Parameters:
Returns:
withServicePlacementPolicies
public ServiceResourcePropertiesBase withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)
Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.
Parameters:
Returns: