Class ServiceResourceProperties
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceProperties
com.azure.resourcemanager.deploymentmanager.fluent.models.ServiceResourceProperties
The properties that define a service in a service topology.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServiceResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Validates the instance.withTargetLocation
(String targetLocation) Set the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.withTargetSubscriptionId
(String targetSubscriptionId) Set the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.Methods inherited from class com.azure.resourcemanager.deploymentmanager.models.ServiceProperties
targetLocation, targetSubscriptionId
-
Constructor Details
-
ServiceResourceProperties
public ServiceResourceProperties()Creates an instance of ServiceResourceProperties class.
-
-
Method Details
-
withTargetLocation
Set the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.- Overrides:
withTargetLocation
in classServiceProperties
- Parameters:
targetLocation
- the targetLocation value to set.- Returns:
- the ServiceProperties object itself.
-
withTargetSubscriptionId
Set the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.- Overrides:
withTargetSubscriptionId
in classServiceProperties
- Parameters:
targetSubscriptionId
- the targetSubscriptionId value to set.- Returns:
- the ServiceProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classServiceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-