Class ServiceProperties
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceProperties
- Direct Known Subclasses:
Service
,ServiceResourceProperties
The properties of a service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.Get the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.void
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.
-
Constructor Details
-
ServiceProperties
public ServiceProperties()Creates an instance of ServiceProperties class.
-
-
Method Details
-
targetLocation
Get the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.- Returns:
- the targetLocation value.
-
withTargetLocation
Set the targetLocation property: The Azure location to which the resources in the service belong to or should be deployed to.- Parameters:
targetLocation
- the targetLocation value to set.- Returns:
- the ServiceProperties object itself.
-
targetSubscriptionId
Get the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.- Returns:
- the targetSubscriptionId value.
-
withTargetSubscriptionId
Set the targetSubscriptionId property: The subscription to which the resources in the service belong to or should be deployed to.- Parameters:
targetSubscriptionId
- the targetSubscriptionId value to set.- Returns:
- the ServiceProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-