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
ConstructorsConstructorDescriptionCreates an instance of ServiceUnitResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()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:
withTargetResourceGroupin 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:
withDeploymentModein 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:
withArtifactsin classServiceUnitProperties- Parameters:
artifacts- the artifacts value to set.- Returns:
- the ServiceUnitProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classServiceUnitProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-