ServiceResourceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ServiceResourcePropertiesBase - com.
azure. resourcemanager. servicefabric. models. ServiceResourceProperties
- com.
- com.
public class ServiceResourceProperties
extends ServiceResourcePropertiesBase
The service resource properties.
Constructor Summary
| Constructor | Description |
|---|---|
| ServiceResourceProperties() |
Creates an instance of Service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
|
Partition |
partitionDescription()
Get the partition |
| String |
provisioningState()
Get the provisioning |
| String |
serviceDnsName()
Get the service |
|
Service |
serviceKind()
Get the service |
|
Arm |
servicePackageActivationMode()
Get the service |
| String |
serviceTypeName()
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 |
withPartitionDescription(PartitionSchemeDescription partitionDescription)
Set the partition |
|
Service |
withPlacementConstraints(String placementConstraints)
Set the placement |
|
Service |
withServiceDnsName(String serviceDnsName)
Set the service |
|
Service |
withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)
Set the service |
|
Service |
withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)
Set the service |
|
Service |
withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)
Set the service |
|
Service |
withServiceTypeName(String serviceTypeName)
Set the service |
Methods inherited from ServiceResourcePropertiesBase
Methods inherited from java.lang.Object
Constructor Details
ServiceResourceProperties
public ServiceResourceProperties()
Creates an instance of ServiceResourceProperties class.
Method Details
fromJson
public static ServiceResourceProperties fromJson(JsonReader jsonReader)
Reads an instance of ServiceResourceProperties from the JsonReader.
Parameters:
Returns:
Throws:
partitionDescription
public PartitionSchemeDescription partitionDescription()
Get the partitionDescription property: Describes how the service is partitioned.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.
Returns:
serviceDnsName
public String serviceDnsName()
Get the serviceDnsName property: Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name.
Returns:
serviceKind
public ServiceKind serviceKind()
Get the serviceKind property: The kind of service (Stateless or Stateful).
Returns:
servicePackageActivationMode
public ArmServicePackageActivationMode servicePackageActivationMode()
Get the servicePackageActivationMode property: The activation Mode of the service package.
Returns:
serviceTypeName
public String serviceTypeName()
Get the serviceTypeName property: The name of the service type.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ServiceResourceProperties.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
ServiceResourceProperties.validate()withCorrelationScheme
public ServiceResourceProperties withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)
Set the correlationScheme property: A list that describes the correlation of the service with other services.
Overrides:
ServiceResourceProperties.withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)Parameters:
withDefaultMoveCost
public ServiceResourceProperties withDefaultMoveCost(MoveCost defaultMoveCost)
Set the defaultMoveCost property: Specifies the move cost for the service.
Overrides:
ServiceResourceProperties.withDefaultMoveCost(MoveCost defaultMoveCost)Parameters:
withPartitionDescription
public ServiceResourceProperties withPartitionDescription(PartitionSchemeDescription partitionDescription)
Set the partitionDescription property: Describes how the service is partitioned.
Parameters:
Returns:
withPlacementConstraints
public ServiceResourceProperties 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)".
Overrides:
ServiceResourceProperties.withPlacementConstraints(String placementConstraints)Parameters:
withServiceDnsName
public ServiceResourceProperties withServiceDnsName(String serviceDnsName)
Set the serviceDnsName property: Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name.
Parameters:
Returns:
withServiceLoadMetrics
public ServiceResourceProperties withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)
Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.
Overrides:
ServiceResourceProperties.withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)Parameters:
withServicePackageActivationMode
public ServiceResourceProperties withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)
Set the servicePackageActivationMode property: The activation Mode of the service package.
Parameters:
Returns:
withServicePlacementPolicies
public ServiceResourceProperties withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)
Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.
Overrides:
ServiceResourceProperties.withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)Parameters:
withServiceTypeName
public ServiceResourceProperties withServiceTypeName(String serviceTypeName)
Set the serviceTypeName property: The name of the service type.
Parameters:
Returns: