UpgradeOverrideSettings Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. UpgradeOverrideSettings
- com.
Implements
public final class UpgradeOverrideSettings
implements JsonSerializable<UpgradeOverrideSettings>
Settings for overrides when upgrading a cluster.
Constructor Summary
Constructor | Description |
---|---|
UpgradeOverrideSettings() |
Creates an instance of Upgrade |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
forceUpgrade()
Get the force |
static
Upgrade |
fromJson(JsonReader jsonReader)
Reads an instance of Upgrade |
Json |
toJson(JsonWriter jsonWriter) |
Offset |
until()
Get the until property: Until when the overrides are effective. |
void |
validate()
Validates the instance. |
Upgrade |
withForceUpgrade(Boolean forceUpgrade)
Set the force |
Upgrade |
withUntil(OffsetDateTime until)
Set the until property: Until when the overrides are effective. |
Methods inherited from java.lang.Object
Constructor Details
UpgradeOverrideSettings
public UpgradeOverrideSettings()
Creates an instance of UpgradeOverrideSettings class.
Method Details
forceUpgrade
public Boolean forceUpgrade()
Get the forceUpgrade property: Whether to force upgrade the cluster. Note that this option instructs upgrade operation to bypass upgrade protections such as checking for deprecated API usage. Enable this option only with caution.
Returns:
fromJson
public static UpgradeOverrideSettings fromJson(JsonReader jsonReader)
Reads an instance of UpgradeOverrideSettings from the JsonReader.
Parameters:
Returns:
Throws:
toJson
until
public OffsetDateTime until()
Get the until property: Until when the overrides are effective. Note that this only matches the start time of an upgrade, and the effectiveness won't change once an upgrade starts even if the `until` expires as upgrade proceeds. This field is not set by default. It must be set for the overrides to take effect.
Returns:
validate
public void validate()
Validates the instance.
withForceUpgrade
public UpgradeOverrideSettings withForceUpgrade(Boolean forceUpgrade)
Set the forceUpgrade property: Whether to force upgrade the cluster. Note that this option instructs upgrade operation to bypass upgrade protections such as checking for deprecated API usage. Enable this option only with caution.
Parameters:
Returns:
withUntil
public UpgradeOverrideSettings withUntil(OffsetDateTime until)
Set the until property: Until when the overrides are effective. Note that this only matches the start time of an upgrade, and the effectiveness won't change once an upgrade starts even if the `until` expires as upgrade proceeds. This field is not set by default. It must be set for the overrides to take effect.
Parameters:
Returns:
Applies to
Azure SDK for Java