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 |
---|---|
Partition |
partitionDescription()
Get the partition |
String |
provisioningState()
Get the provisioning |
String |
serviceDnsName()
Get the service |
Arm |
servicePackageActivationMode()
Get the service |
String |
serviceTypeName()
Get the service |
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
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:
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:
validate
public void validate()
Validates the instance.
Overrides:
ServiceResourceProperties.validate()withCorrelationScheme
public ServiceResourceProperties withCorrelationScheme(List
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
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
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for