Class DeploymentProperties
java.lang.Object
com.microsoft.azure.management.resources.DeploymentProperties
- Direct Known Subclasses:
DeploymentWhatIfProperties
Deployment properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the debug setting of the deployment.Get specifies whether template expressions are evaluated within the scope of the parent template or nested template.mode()
Get the mode that is used to deploy resources.Get the deployment on error behavior.Get name and value pairs that define the deployment parameters for the template.Get the URI of parameters file.template()
Get the template content.Get the URI of the template.withDebugSetting
(DebugSetting debugSetting) Set the debug setting of the deployment.withExpressionEvaluationOptions
(ExpressionEvaluationOptions expressionEvaluationOptions) Set specifies whether template expressions are evaluated within the scope of the parent template or nested template.withMode
(DeploymentMode mode) Set the mode that is used to deploy resources.withOnErrorDeployment
(OnErrorDeployment onErrorDeployment) Set the deployment on error behavior.withParameters
(Object parameters) Set name and value pairs that define the deployment parameters for the template.withParametersLink
(ParametersLink parametersLink) Set the URI of parameters file.withTemplate
(Object template) Set the template content.withTemplateLink
(TemplateLink templateLink) Set the URI of the template.
-
Constructor Details
-
DeploymentProperties
public DeploymentProperties()
-
-
Method Details
-
template
Get 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 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 DeploymentProperties object itself.
-
templateLink
Get the URI of the template. Use either the templateLink property or the template property, but not both.- Returns:
- the templateLink value
-
withTemplateLink
Set 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 DeploymentProperties object itself.
-
parameters
Get name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string.- Returns:
- the parameters value
-
withParameters
Set name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string.- Parameters:
parameters
- the parameters value to set- Returns:
- the DeploymentProperties object itself.
-
parametersLink
Get the URI of parameters file. You 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 URI of parameters file. You 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 DeploymentProperties object itself.
-
mode
Get the mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. Possible values include: 'Incremental', 'Complete'.- Returns:
- the mode value
-
withMode
Set the mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. Possible values include: 'Incremental', 'Complete'.- Parameters:
mode
- the mode value to set- Returns:
- the DeploymentProperties object itself.
-
debugSetting
Get the debug setting of the deployment.- Returns:
- the debugSetting value
-
withDebugSetting
Set the debug setting of the deployment.- Parameters:
debugSetting
- the debugSetting value to set- Returns:
- the DeploymentProperties object itself.
-
onErrorDeployment
Get the deployment on error behavior.- Returns:
- the onErrorDeployment value
-
withOnErrorDeployment
Set the deployment on error behavior.- Parameters:
onErrorDeployment
- the onErrorDeployment value to set- Returns:
- the DeploymentProperties object itself.
-
expressionEvaluationOptions
Get specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer.- Returns:
- the expressionEvaluationOptions value
-
withExpressionEvaluationOptions
public DeploymentProperties withExpressionEvaluationOptions(ExpressionEvaluationOptions expressionEvaluationOptions) Set specifies whether template expressions are evaluated within the scope of the parent template or nested template. Only applicable to nested templates. If not specified, default value is outer.- Parameters:
expressionEvaluationOptions
- the expressionEvaluationOptions value to set- Returns:
- the DeploymentProperties object itself.
-