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 Summary
ConstructorDescriptionCreates an instance of ServiceUnitResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the artifacts property: The artifacts for the service unit.Get the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.Get the targetResourceGroup property: The Azure Resource Group to which the resources in the service unit belong to or should be deployed to.void
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.withLocation
(String location) 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.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ServiceUnitResourceInner
public ServiceUnitResourceInner()Creates an instance of ServiceUnitResourceInner class.
-
-
Method Details
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
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
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
Get the deploymentMode property: Describes the type of ARM deployment to be performed on the resource.- Returns:
- the deploymentMode value.
-
withDeploymentMode
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
Get the artifacts property: The artifacts for the service unit.- Returns:
- the artifacts value.
-
withArtifacts
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.
-