
com.pulumi.azurenative.compute.outputs.AutomaticRepairsPolicyResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.compute.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutomaticRepairsPolicyResponse {
/**
* @return Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
*
*/
private @Nullable Boolean enabled;
/**
* @return The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).
*
*/
private @Nullable String gracePeriod;
/**
* @return Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace.
*
*/
private @Nullable String repairAction;
private AutomaticRepairsPolicyResponse() {}
/**
* @return Specifies whether automatic repairs should be enabled on the virtual machine scale set. The default value is false.
*
*/
public Optional enabled() {
return Optional.ofNullable(this.enabled);
}
/**
* @return The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M).
*
*/
public Optional gracePeriod() {
return Optional.ofNullable(this.gracePeriod);
}
/**
* @return Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace.
*
*/
public Optional repairAction() {
return Optional.ofNullable(this.repairAction);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutomaticRepairsPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean enabled;
private @Nullable String gracePeriod;
private @Nullable String repairAction;
public Builder() {}
public Builder(AutomaticRepairsPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.enabled = defaults.enabled;
this.gracePeriod = defaults.gracePeriod;
this.repairAction = defaults.repairAction;
}
@CustomType.Setter
public Builder enabled(@Nullable Boolean enabled) {
this.enabled = enabled;
return this;
}
@CustomType.Setter
public Builder gracePeriod(@Nullable String gracePeriod) {
this.gracePeriod = gracePeriod;
return this;
}
@CustomType.Setter
public Builder repairAction(@Nullable String repairAction) {
this.repairAction = repairAction;
return this;
}
public AutomaticRepairsPolicyResponse build() {
final var _resultValue = new AutomaticRepairsPolicyResponse();
_resultValue.enabled = enabled;
_resultValue.gracePeriod = gracePeriod;
_resultValue.repairAction = repairAction;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy