Class ServiceUnitResourceProperties
java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceUnitProperties
com.azure.resourcemanager.deploymentmanager.fluent.models.ServiceUnitResourceProperties
The properties that define the service unit.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServiceUnitResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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
-
ServiceUnitResourceProperties
public ServiceUnitResourceProperties()Creates an instance of ServiceUnitResourceProperties class.
-
-
Method Details
-
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.
-