Class ServiceUnitProperties
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceUnitProperties
- Direct Known Subclasses:
ServiceUnit,ServiceUnitResourceProperties
Defines the properties of a service unit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the artifacts property: The artifacts for the service unit.Get the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.Get the targetResourceGroup property: The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.voidvalidate()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.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.
-
Constructor Details
-
ServiceUnitProperties
public ServiceUnitProperties()Creates an instance of ServiceUnitProperties class.
-
-
Method Details
-
targetResourceGroup
Get the targetResourceGroup property: The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.- Returns:
- the targetResourceGroup value.
-
withTargetResourceGroup
Set the targetResourceGroup property: The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.- Parameters:
targetResourceGroup- the targetResourceGroup value to set.- Returns:
- the ServiceUnitProperties object itself.
-
deploymentMode
Get the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.- Returns:
- the deploymentMode value.
-
withDeploymentMode
Set the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.- Parameters:
deploymentMode- the deploymentMode value to set.- Returns:
- the ServiceUnitProperties object itself.
-
artifacts
Get the artifacts property: The artifacts for the service unit.- Returns:
- the artifacts value.
-
withArtifacts
Set the artifacts property: The artifacts for the service unit.- Parameters:
artifacts- the artifacts value to set.- Returns:
- the ServiceUnitProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-