Class ServiceUnit
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceUnitProperties
com.azure.resourcemanager.deploymentmanager.models.ServiceUnit
Defines a service unit.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Name of the service unit.steps()
Get the steps property: Detailed step information, if present.void
validate()
Validates the instance.withArtifacts
(ServiceUnitArtifacts artifacts) Set the artifacts property: The artifacts for the service unit.withDeploymentMode
(DeploymentMode deploymentMode) Set the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.Set the name property: Name of the service unit.withSteps
(List<RolloutStep> steps) Set the steps property: Detailed step information, if present.withTargetResourceGroup
(String targetResourceGroup) Set the targetResourceGroup property: The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.Methods inherited from class com.azure.resourcemanager.deploymentmanager.models.ServiceUnitProperties
artifacts, deploymentMode, targetResourceGroup
-
Constructor Details
-
ServiceUnit
public ServiceUnit()Creates an instance of ServiceUnit class.
-
-
Method Details
-
name
Get the name property: Name of the service unit.- Returns:
- the name value.
-
withName
Set the name property: Name of the service unit.- Parameters:
name
- the name value to set.- Returns:
- the ServiceUnit object itself.
-
steps
Get the steps property: Detailed step information, if present.- Returns:
- the steps value.
-
withSteps
Set the steps property: Detailed step information, if present.- Parameters:
steps
- the steps value to set.- Returns:
- the ServiceUnit object itself.
-
withTargetResourceGroup
Set the targetResourceGroup property: The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.- Overrides:
withTargetResourceGroup
in classServiceUnitProperties
- Parameters:
targetResourceGroup
- the targetResourceGroup value to set.- Returns:
- the ServiceUnitProperties object itself.
-
withDeploymentMode
Set the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.- Overrides:
withDeploymentMode
in classServiceUnitProperties
- Parameters:
deploymentMode
- the deploymentMode value to set.- Returns:
- the ServiceUnitProperties object itself.
-
withArtifacts
Set the artifacts property: The artifacts for the service unit.- Overrides:
withArtifacts
in classServiceUnitProperties
- Parameters:
artifacts
- the artifacts value to set.- Returns:
- the ServiceUnitProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classServiceUnitProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-