DeploymentWhatIfProperties.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.resources.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Deployment What-if properties. */
@Fluent
public final class DeploymentWhatIfProperties extends DeploymentProperties {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DeploymentWhatIfProperties.class);
/*
* Optional What-If operation settings.
*/
@JsonProperty(value = "whatIfSettings")
private DeploymentWhatIfSettings whatIfSettings;
/**
* Get the whatIfSettings property: Optional What-If operation settings.
*
* @return the whatIfSettings value.
*/
public DeploymentWhatIfSettings whatIfSettings() {
return this.whatIfSettings;
}
/**
* Set the whatIfSettings property: Optional What-If operation settings.
*
* @param whatIfSettings the whatIfSettings value to set.
* @return the DeploymentWhatIfProperties object itself.
*/
public DeploymentWhatIfProperties withWhatIfSettings(DeploymentWhatIfSettings whatIfSettings) {
this.whatIfSettings = whatIfSettings;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (whatIfSettings() != null) {
whatIfSettings().validate();
}
}
}