Class DeploymentWhatIfProperties
java.lang.Object
com.azure.resourcemanager.resources.models.DeploymentProperties
com.azure.resourcemanager.resources.models.DeploymentWhatIfProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentProperties>
Deployment What-if properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DeploymentWhatIfProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeploymentWhatIfPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentWhatIfProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Get the whatIfSettings property: Optional What-If operation settings.withDebugSetting(DebugSetting debugSetting) Set the debugSetting property: The debug setting of the deployment.withExpressionEvaluationOptions(ExpressionEvaluationOptions expressionEvaluationOptions) Set the expressionEvaluationOptions property: Specifies whether template expressions are evaluated within the scope of the parent template or nested template.withMode(DeploymentMode mode) Set the mode property: The mode that is used to deploy resources.withOnErrorDeployment(OnErrorDeployment onErrorDeployment) Set the onErrorDeployment property: The deployment on error behavior.withParameters(Map<String, DeploymentParameter> parameters) Set the parameters property: Name and value pairs that define the deployment parameters for the template.withParametersLink(ParametersLink parametersLink) Set the parametersLink property: The URI of parameters file.withTemplate(Object template) Set the template property: The template content.withTemplateLink(TemplateLink templateLink) Set the templateLink property: The URI of the template.withValidationLevel(ValidationLevel validationLevel) Set the validationLevel property: The validation level of the deployment.withWhatIfSettings(DeploymentWhatIfSettings whatIfSettings) Set the whatIfSettings property: Optional What-If operation settings.Methods inherited from class com.azure.resourcemanager.resources.models.DeploymentProperties
debugSetting, expressionEvaluationOptions, mode, onErrorDeployment, parameters, parametersLink, template, templateLink, validationLevelMethods 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
-
DeploymentWhatIfProperties
public DeploymentWhatIfProperties()Creates an instance of DeploymentWhatIfProperties class.
-
-
Method Details
-
whatIfSettings
Get the whatIfSettings property: Optional What-If operation settings.- Returns:
- the whatIfSettings value.
-
withWhatIfSettings
Set the whatIfSettings property: Optional What-If operation settings.- Parameters:
whatIfSettings- the whatIfSettings value to set.- Returns:
- the DeploymentWhatIfProperties object itself.
-
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.- Overrides:
withTemplatein classDeploymentProperties- Parameters:
template- the template value to set.- Returns:
- the DeploymentProperties object itself.
-
withTemplateLink
Set the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.- Overrides:
withTemplateLinkin classDeploymentProperties- Parameters:
templateLink- the templateLink value to set.- Returns:
- the DeploymentProperties object itself.
-
withParameters
Set the parameters property: 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.- Overrides:
withParametersin classDeploymentProperties- Parameters:
parameters- the parameters value to set.- Returns:
- the DeploymentProperties object itself.
-
withParametersLink
Set the parametersLink property: 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.- Overrides:
withParametersLinkin classDeploymentProperties- Parameters:
parametersLink- the parametersLink value to set.- Returns:
- the DeploymentProperties object itself.
-
withMode
Set the mode property: 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.- Overrides:
withModein classDeploymentProperties- Parameters:
mode- the mode value to set.- Returns:
- the DeploymentProperties object itself.
-
withDebugSetting
Set the debugSetting property: The debug setting of the deployment.- Overrides:
withDebugSettingin classDeploymentProperties- Parameters:
debugSetting- the debugSetting value to set.- Returns:
- the DeploymentProperties object itself.
-
withOnErrorDeployment
Set the onErrorDeployment property: The deployment on error behavior.- Overrides:
withOnErrorDeploymentin classDeploymentProperties- Parameters:
onErrorDeployment- the onErrorDeployment value to set.- Returns:
- the DeploymentProperties object itself.
-
withExpressionEvaluationOptions
public DeploymentWhatIfProperties withExpressionEvaluationOptions(ExpressionEvaluationOptions expressionEvaluationOptions) Set the expressionEvaluationOptions property: 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.- Overrides:
withExpressionEvaluationOptionsin classDeploymentProperties- Parameters:
expressionEvaluationOptions- the expressionEvaluationOptions value to set.- Returns:
- the DeploymentProperties object itself.
-
withValidationLevel
Set the validationLevel property: The validation level of the deployment.- Overrides:
withValidationLevelin classDeploymentProperties- Parameters:
validationLevel- the validationLevel value to set.- Returns:
- the DeploymentProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classDeploymentProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeploymentProperties>- Overrides:
toJsonin classDeploymentProperties- Throws:
IOException
-
fromJson
public static DeploymentWhatIfProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentWhatIfProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentWhatIfProperties 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 DeploymentWhatIfProperties.
-