Class ServiceUnitResourceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.deploymentmanager.fluent.models.ServiceUnitResourceInner

public final class ServiceUnitResourceInner extends com.azure.core.management.Resource
Represents the response of a service unit resource.
  • Constructor Details

    • ServiceUnitResourceInner

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

    • withLocation

      public ServiceUnitResourceInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public ServiceUnitResourceInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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 ServiceUnitResourceInner 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 ServiceUnitResourceInner 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 ServiceUnitResourceInner 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 ServiceUnitResourceInner object itself.
    • artifacts

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

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

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