Class DeploymentStackInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.resources.models.AzureResourceBase
com.azure.resourcemanager.resources.fluent.models.DeploymentStackInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Deployment stack object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actionOnUnmanage property: Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted.Get the bypassStackOutOfSyncError property: Flag to bypass service errors that indicate the stack resource list is not correctly synchronized.Get the correlationId property: The correlation id of the last Deployment stack upsert or delete operation.Get the debugSetting property: The debug setting of the deployment.Get the deletedResources property: An array of resources that were deleted during the most recent Deployment stack update.Get the denySettings property: Defines how resources deployed by the stack are locked.Get the deploymentId property: The resourceId of the deployment resource created by the deployment stack.Get the deploymentScope property: The scope at which the initial deployment should be created.Get the description property: Deployment stack description.Get the detachedResources property: An array of resources that were detached during the most recent Deployment stack update.duration()Get the duration property: The duration of the last successful Deployment stack update.com.azure.core.management.exception.ManagementErrorerror()Get the error property: The error detail.Get the failedResources property: An array of resources that failed to reach goal state during the most recent update.static DeploymentStackInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentStackInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.location()Get the location property: The location of the Deployment stack.name()Get the name property: The name of the resource.outputs()Get the outputs property: The outputs of the deployment resource created by the deployment stack.Get the parameters property: Name and value pairs that define the deployment parameters for the template.Get the parametersLink property: The URI of parameters file.Get the provisioningState property: State of the deployment stack.Get the resources property: An array of resources currently managed by the deployment stack.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.tags()Get the tags property: Deployment stack resource tags.template()Get the template property: The template content.Get the templateLink property: The URI of the template.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withActionOnUnmanage(ActionOnUnmanage actionOnUnmanage) Set the actionOnUnmanage property: Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted.withBypassStackOutOfSyncError(Boolean bypassStackOutOfSyncError) Set the bypassStackOutOfSyncError property: Flag to bypass service errors that indicate the stack resource list is not correctly synchronized.withDebugSetting(DeploymentStacksDebugSetting debugSetting) Set the debugSetting property: The debug setting of the deployment.withDenySettings(DenySettings denySettings) Set the denySettings property: Defines how resources deployed by the stack are locked.withDeploymentScope(String deploymentScope) Set the deploymentScope property: The scope at which the initial deployment should be created.withDescription(String description) Set the description property: Deployment stack description.withError(com.azure.core.management.exception.ManagementError error) Set the error property: The error detail.withLocation(String location) Set the location property: The location of the Deployment stack.withParameters(Map<String, DeploymentParameter> parameters) Set the parameters property: Name and value pairs that define the deployment parameters for the template.withParametersLink(DeploymentStacksParametersLink parametersLink) Set the parametersLink property: The URI of parameters file.Set the tags property: Deployment stack resource tags.withTemplate(Object template) Set the template property: The template content.withTemplateLink(DeploymentStacksTemplateLink templateLink) Set the templateLink property: The URI of the template.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeploymentStackInner
public DeploymentStackInner()Creates an instance of DeploymentStackInner class.
-
-
Method Details
-
location
Get the location property: The location of the Deployment stack. It cannot be changed after creation. It must be one of the supported Azure locations.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the Deployment stack. It cannot be changed after creation. It must be one of the supported Azure locations.- Parameters:
location- the location value to set.- Returns:
- the DeploymentStackInner object itself.
-
tags
Get the tags property: Deployment stack resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Deployment stack resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the DeploymentStackInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Overrides:
systemDatain classAzureResourceBase- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classAzureResourceBase- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classAzureResourceBase- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classAzureResourceBase- Returns:
- the id value.
-
template
Get the template property: The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.- Returns:
- the template value.
-
withTemplate
Set the template property: The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.- Parameters:
template- the template value to set.- Returns:
- the DeploymentStackInner object itself.
-
templateLink
Get the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.- Returns:
- the templateLink value.
-
withTemplateLink
Set the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.- Parameters:
templateLink- the templateLink value to set.- Returns:
- the DeploymentStackInner object itself.
-
parameters
Get the parameters property: Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both.- Parameters:
parameters- the parameters value to set.- Returns:
- the DeploymentStackInner object itself.
-
parametersLink
Get the parametersLink property: The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both.- Returns:
- the parametersLink value.
-
withParametersLink
Set the parametersLink property: The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both.- Parameters:
parametersLink- the parametersLink value to set.- Returns:
- the DeploymentStackInner object itself.
-
actionOnUnmanage
Get the actionOnUnmanage property: Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted.- Returns:
- the actionOnUnmanage value.
-
withActionOnUnmanage
Set the actionOnUnmanage property: Defines the behavior of resources that are no longer managed after the Deployment stack is updated or deleted.- Parameters:
actionOnUnmanage- the actionOnUnmanage value to set.- Returns:
- the DeploymentStackInner object itself.
-
debugSetting
Get the debugSetting property: The debug setting of the deployment.- Returns:
- the debugSetting value.
-
withDebugSetting
Set the debugSetting property: The debug setting of the deployment.- Parameters:
debugSetting- the debugSetting value to set.- Returns:
- the DeploymentStackInner object itself.
-
bypassStackOutOfSyncError
Get the bypassStackOutOfSyncError property: Flag to bypass service errors that indicate the stack resource list is not correctly synchronized.- Returns:
- the bypassStackOutOfSyncError value.
-
withBypassStackOutOfSyncError
Set the bypassStackOutOfSyncError property: Flag to bypass service errors that indicate the stack resource list is not correctly synchronized.- Parameters:
bypassStackOutOfSyncError- the bypassStackOutOfSyncError value to set.- Returns:
- the DeploymentStackInner object itself.
-
deploymentScope
Get the deploymentScope property: The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}').- Returns:
- the deploymentScope value.
-
withDeploymentScope
Set the deploymentScope property: The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}').- Parameters:
deploymentScope- the deploymentScope value to set.- Returns:
- the DeploymentStackInner object itself.
-
description
Get the description property: Deployment stack description. Max length of 4096 characters.- Returns:
- the description value.
-
withDescription
Set the description property: Deployment stack description. Max length of 4096 characters.- Parameters:
description- the description value to set.- Returns:
- the DeploymentStackInner object itself.
-
denySettings
Get the denySettings property: Defines how resources deployed by the stack are locked.- Returns:
- the denySettings value.
-
withDenySettings
Set the denySettings property: Defines how resources deployed by the stack are locked.- Parameters:
denySettings- the denySettings value to set.- Returns:
- the DeploymentStackInner object itself.
-
provisioningState
Get the provisioningState property: State of the deployment stack.- Returns:
- the provisioningState value.
-
correlationId
Get the correlationId property: The correlation id of the last Deployment stack upsert or delete operation. It is in GUID format and is used for tracing.- Returns:
- the correlationId value.
-
detachedResources
Get the detachedResources property: An array of resources that were detached during the most recent Deployment stack update. Detached means that the resource was removed from the template, but no relevant deletion operations were specified. So, the resource still exists while no longer being associated with the stack.- Returns:
- the detachedResources value.
-
deletedResources
Get the deletedResources property: An array of resources that were deleted during the most recent Deployment stack update. Deleted means that the resource was removed from the template and relevant deletion operations were specified.- Returns:
- the deletedResources value.
-
failedResources
Get the failedResources property: An array of resources that failed to reach goal state during the most recent update. Each resourceId is accompanied by an error message.- Returns:
- the failedResources value.
-
resources
Get the resources property: An array of resources currently managed by the deployment stack.- Returns:
- the resources value.
-
deploymentId
Get the deploymentId property: The resourceId of the deployment resource created by the deployment stack.- Returns:
- the deploymentId value.
-
outputs
Get the outputs property: The outputs of the deployment resource created by the deployment stack.- Returns:
- the outputs value.
-
duration
Get the duration property: The duration of the last successful Deployment stack update.- Returns:
- the duration value.
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: The error detail.- Returns:
- the error value.
-
withError
Set the error property: The error detail.- Parameters:
error- the error value to set.- Returns:
- the DeploymentStackInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classAzureResourceBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classAzureResourceBase- Throws:
IOException
-
fromJson
public static DeploymentStackInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentStackInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentStackInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DeploymentStackInner.
-