Class Service
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceProperties
com.azure.resourcemanager.deploymentmanager.models.Service
Defines a service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Name of the service.Get the serviceUnits property: The detailed information about the units that make up the service.void
validate()
Validates the instance.Set the name property: Name of the service.withServiceUnits
(List<ServiceUnit> serviceUnits) Set the serviceUnits property: The detailed information about the units that make up the service.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
-
Service
public Service()Creates an instance of Service class.
-
-
Method Details
-
name
Get the name property: Name of the service.- Returns:
- the name value.
-
withName
Set the name property: Name of the service.- Parameters:
name
- the name value to set.- Returns:
- the Service object itself.
-
serviceUnits
Get the serviceUnits property: The detailed information about the units that make up the service.- Returns:
- the serviceUnits value.
-
withServiceUnits
Set the serviceUnits property: The detailed information about the units that make up the service.- Parameters:
serviceUnits
- the serviceUnits value to set.- Returns:
- the Service object itself.
-
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.
-