ServiceResourceProperties Class

public class ServiceResourceProperties
extends ServiceResourcePropertiesBase

The service resource properties.

Constructor Summary

Constructor Description
ServiceResourceProperties()

Creates an instance of ServiceResourceProperties class.

Method Summary

Modifier and Type Method and Description
PartitionSchemeDescription partitionDescription()

Get the partitionDescription property: Describes how the service is partitioned.

String provisioningState()

Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.

String serviceDnsName()

Get the serviceDnsName property: Dns name used for the service.

ArmServicePackageActivationMode servicePackageActivationMode()

Get the servicePackageActivationMode property: The activation Mode of the service package.

String serviceTypeName()

Get the serviceTypeName property: The name of the service type.

void validate()

Validates the instance.

ServiceResourceProperties withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)

Set the correlationScheme property: A list that describes the correlation of the service with other services.

ServiceResourceProperties withDefaultMoveCost(MoveCost defaultMoveCost)

Set the defaultMoveCost property: Specifies the move cost for the service.

ServiceResourceProperties withPartitionDescription(PartitionSchemeDescription partitionDescription)

Set the partitionDescription property: Describes how the service is partitioned.

ServiceResourceProperties withPlacementConstraints(String placementConstraints)

Set the placementConstraints property: The placement constraints as a string.

ServiceResourceProperties withServiceDnsName(String serviceDnsName)

Set the serviceDnsName property: Dns name used for the service.

ServiceResourceProperties withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)

Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.

ServiceResourceProperties withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)

Set the servicePackageActivationMode property: The activation Mode of the service package.

ServiceResourceProperties withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)

Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.

ServiceResourceProperties withServiceTypeName(String serviceTypeName)

Set the serviceTypeName property: The name of the service type.

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:

the partitionDescription value.

provisioningState

public String provisioningState()

Get the provisioningState property: The current deployment or provisioning state, which only appears in the response.

Returns:

the provisioningState value.

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:

the serviceDnsName value.

servicePackageActivationMode

public ArmServicePackageActivationMode servicePackageActivationMode()

Get the servicePackageActivationMode property: The activation Mode of the service package.

Returns:

the servicePackageActivationMode value.

serviceTypeName

public String serviceTypeName()

Get the serviceTypeName property: The name of the service type.

Returns:

the serviceTypeName value.

validate

public void validate()

Validates the instance.

Overrides:

ServiceResourceProperties.validate()

withCorrelationScheme

public ServiceResourceProperties withCorrelationScheme(List correlationScheme)

Set the correlationScheme property: A list that describes the correlation of the service with other services.

Overrides:

ServiceResourceProperties.withCorrelationScheme(List<ServiceCorrelationDescription> correlationScheme)

Parameters:

correlationScheme

withDefaultMoveCost

public ServiceResourceProperties withDefaultMoveCost(MoveCost defaultMoveCost)

Set the defaultMoveCost property: Specifies the move cost for the service.

Overrides:

ServiceResourceProperties.withDefaultMoveCost(MoveCost defaultMoveCost)

Parameters:

defaultMoveCost

withPartitionDescription

public ServiceResourceProperties withPartitionDescription(PartitionSchemeDescription partitionDescription)

Set the partitionDescription property: Describes how the service is partitioned.

Parameters:

partitionDescription - the partitionDescription value to set.

Returns:

the ServiceResourceProperties object itself.

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:

placementConstraints

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:

serviceDnsName - the serviceDnsName value to set.

Returns:

the ServiceResourceProperties object itself.

withServiceLoadMetrics

public ServiceResourceProperties withServiceLoadMetrics(List serviceLoadMetrics)

Set the serviceLoadMetrics property: The service load metrics is given as an array of ServiceLoadMetricDescription objects.

Overrides:

ServiceResourceProperties.withServiceLoadMetrics(List<ServiceLoadMetricDescription> serviceLoadMetrics)

Parameters:

serviceLoadMetrics

withServicePackageActivationMode

public ServiceResourceProperties withServicePackageActivationMode(ArmServicePackageActivationMode servicePackageActivationMode)

Set the servicePackageActivationMode property: The activation Mode of the service package.

Parameters:

servicePackageActivationMode - the servicePackageActivationMode value to set.

Returns:

the ServiceResourceProperties object itself.

withServicePlacementPolicies

public ServiceResourceProperties withServicePlacementPolicies(List servicePlacementPolicies)

Set the servicePlacementPolicies property: A list that describes the correlation of the service with other services.

Overrides:

ServiceResourceProperties.withServicePlacementPolicies(List<ServicePlacementPolicyDescription> servicePlacementPolicies)

Parameters:

servicePlacementPolicies

withServiceTypeName

public ServiceResourceProperties withServiceTypeName(String serviceTypeName)

Set the serviceTypeName property: The name of the service type.

Parameters:

serviceTypeName - the serviceTypeName value to set.

Returns:

the ServiceResourceProperties object itself.

Applies to