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

com.pulumi.spotinst.aws.outputs.ElastigroupScalingDownPolicyStepAdjustment Maven / Gradle / Ivy

The 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.spotinst.aws.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.spotinst.aws.outputs.ElastigroupScalingDownPolicyStepAdjustmentAction;
import java.lang.Integer;
import java.util.Objects;

@CustomType
public final class ElastigroupScalingDownPolicyStepAdjustment {
    private ElastigroupScalingDownPolicyStepAdjustmentAction action;
    private Integer threshold;

    private ElastigroupScalingDownPolicyStepAdjustment() {}
    public ElastigroupScalingDownPolicyStepAdjustmentAction action() {
        return this.action;
    }
    public Integer threshold() {
        return this.threshold;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ElastigroupScalingDownPolicyStepAdjustment defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ElastigroupScalingDownPolicyStepAdjustmentAction action;
        private Integer threshold;
        public Builder() {}
        public Builder(ElastigroupScalingDownPolicyStepAdjustment defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.threshold = defaults.threshold;
        }

        @CustomType.Setter
        public Builder action(ElastigroupScalingDownPolicyStepAdjustmentAction action) {
            if (action == null) {
              throw new MissingRequiredPropertyException("ElastigroupScalingDownPolicyStepAdjustment", "action");
            }
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder threshold(Integer threshold) {
            if (threshold == null) {
              throw new MissingRequiredPropertyException("ElastigroupScalingDownPolicyStepAdjustment", "threshold");
            }
            this.threshold = threshold;
            return this;
        }
        public ElastigroupScalingDownPolicyStepAdjustment build() {
            final var _resultValue = new ElastigroupScalingDownPolicyStepAdjustment();
            _resultValue.action = action;
            _resultValue.threshold = threshold;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy