com.pulumi.aws.autoscaling.outputs.GroupInstanceMaintenancePolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.autoscaling.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
@CustomType
public final class GroupInstanceMaintenancePolicy {
/**
* @return Specifies the upper limit on the number of instances that are in the InService or Pending state with a healthy status during an instance replacement activity.
*
*/
private Integer maxHealthyPercentage;
/**
* @return Specifies the lower limit on the number of instances that must be in the InService state with a healthy status during an instance replacement activity.
*
*/
private Integer minHealthyPercentage;
private GroupInstanceMaintenancePolicy() {}
/**
* @return Specifies the upper limit on the number of instances that are in the InService or Pending state with a healthy status during an instance replacement activity.
*
*/
public Integer maxHealthyPercentage() {
return this.maxHealthyPercentage;
}
/**
* @return Specifies the lower limit on the number of instances that must be in the InService state with a healthy status during an instance replacement activity.
*
*/
public Integer minHealthyPercentage() {
return this.minHealthyPercentage;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GroupInstanceMaintenancePolicy defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer maxHealthyPercentage;
private Integer minHealthyPercentage;
public Builder() {}
public Builder(GroupInstanceMaintenancePolicy defaults) {
Objects.requireNonNull(defaults);
this.maxHealthyPercentage = defaults.maxHealthyPercentage;
this.minHealthyPercentage = defaults.minHealthyPercentage;
}
@CustomType.Setter
public Builder maxHealthyPercentage(Integer maxHealthyPercentage) {
if (maxHealthyPercentage == null) {
throw new MissingRequiredPropertyException("GroupInstanceMaintenancePolicy", "maxHealthyPercentage");
}
this.maxHealthyPercentage = maxHealthyPercentage;
return this;
}
@CustomType.Setter
public Builder minHealthyPercentage(Integer minHealthyPercentage) {
if (minHealthyPercentage == null) {
throw new MissingRequiredPropertyException("GroupInstanceMaintenancePolicy", "minHealthyPercentage");
}
this.minHealthyPercentage = minHealthyPercentage;
return this;
}
public GroupInstanceMaintenancePolicy build() {
final var _resultValue = new GroupInstanceMaintenancePolicy();
_resultValue.maxHealthyPercentage = maxHealthyPercentage;
_resultValue.minHealthyPercentage = minHealthyPercentage;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy