Class ServiceUnitProperties

java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceUnitProperties
Direct Known Subclasses:
ServiceUnit, ServiceUnitResourceProperties

public class ServiceUnitProperties extends Object
Defines the properties of a service unit.
  • Constructor Details

    • ServiceUnitProperties

      public ServiceUnitProperties()
      Creates an instance of ServiceUnitProperties class.
  • Method Details

    • targetResourceGroup

      public String 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

      public ServiceUnitProperties 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.
      Parameters:
      targetResourceGroup - the targetResourceGroup value to set.
      Returns:
      the ServiceUnitProperties object itself.
    • deploymentMode

      public DeploymentMode deploymentMode()
      Get the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.
      Returns:
      the deploymentMode value.
    • withDeploymentMode

      public ServiceUnitProperties withDeploymentMode(DeploymentMode deploymentMode)
      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

      public ServiceUnitArtifacts artifacts()
      Get the artifacts property: The artifacts for the service unit.
      Returns:
      the artifacts value.
    • withArtifacts

      public ServiceUnitProperties withArtifacts(ServiceUnitArtifacts artifacts)
      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.