java.lang.Object
com.azure.resourcemanager.deploymentmanager.models.ServiceUnitProperties
com.azure.resourcemanager.deploymentmanager.models.ServiceUnit

public final class ServiceUnit extends ServiceUnitProperties
Defines a service unit.
  • Constructor Details

    • ServiceUnit

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

    • name

      public String name()
      Get the name property: Name of the service unit.
      Returns:
      the name value.
    • withName

      public ServiceUnit withName(String name)
      Set the name property: Name of the service unit.
      Parameters:
      name - the name value to set.
      Returns:
      the ServiceUnit object itself.
    • steps

      public List<RolloutStep> steps()
      Get the steps property: Detailed step information, if present.
      Returns:
      the steps value.
    • withSteps

      public ServiceUnit withSteps(List<RolloutStep> steps)
      Set the steps property: Detailed step information, if present.
      Parameters:
      steps - the steps value to set.
      Returns:
      the ServiceUnit object itself.
    • withTargetResourceGroup

      public ServiceUnit 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.
      Overrides:
      withTargetResourceGroup in class ServiceUnitProperties
      Parameters:
      targetResourceGroup - the targetResourceGroup value to set.
      Returns:
      the ServiceUnitProperties object itself.
    • withDeploymentMode

      public ServiceUnit withDeploymentMode(DeploymentMode deploymentMode)
      Set the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.
      Overrides:
      withDeploymentMode in class ServiceUnitProperties
      Parameters:
      deploymentMode - the deploymentMode value to set.
      Returns:
      the ServiceUnitProperties object itself.
    • withArtifacts

      public ServiceUnit withArtifacts(ServiceUnitArtifacts artifacts)
      Set the artifacts property: The artifacts for the service unit.
      Overrides:
      withArtifacts in class ServiceUnitProperties
      Parameters:
      artifacts - the artifacts value to set.
      Returns:
      the ServiceUnitProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ServiceUnitProperties
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.