All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.autoscaling.outputs.GetGroupInstanceMaintenancePolicy Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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 GetGroupInstanceMaintenancePolicy {
    /**
     * @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 GetGroupInstanceMaintenancePolicy() {}
    /**
     * @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(GetGroupInstanceMaintenancePolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer maxHealthyPercentage;
        private Integer minHealthyPercentage;
        public Builder() {}
        public Builder(GetGroupInstanceMaintenancePolicy 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("GetGroupInstanceMaintenancePolicy", "maxHealthyPercentage");
            }
            this.maxHealthyPercentage = maxHealthyPercentage;
            return this;
        }
        @CustomType.Setter
        public Builder minHealthyPercentage(Integer minHealthyPercentage) {
            if (minHealthyPercentage == null) {
              throw new MissingRequiredPropertyException("GetGroupInstanceMaintenancePolicy", "minHealthyPercentage");
            }
            this.minHealthyPercentage = minHealthyPercentage;
            return this;
        }
        public GetGroupInstanceMaintenancePolicy build() {
            final var _resultValue = new GetGroupInstanceMaintenancePolicy();
            _resultValue.maxHealthyPercentage = maxHealthyPercentage;
            _resultValue.minHealthyPercentage = minHealthyPercentage;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy