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

com.pulumi.aws.appautoscaling.outputs.ScheduledActionScalableTargetAction 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.appautoscaling.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ScheduledActionScalableTargetAction {
    /**
     * @return Maximum capacity. At least one of `max_capacity` or `min_capacity` must be set.
     * 
     */
    private @Nullable Integer maxCapacity;
    /**
     * @return Minimum capacity. At least one of `min_capacity` or `max_capacity` must be set.
     * 
     */
    private @Nullable Integer minCapacity;

    private ScheduledActionScalableTargetAction() {}
    /**
     * @return Maximum capacity. At least one of `max_capacity` or `min_capacity` must be set.
     * 
     */
    public Optional maxCapacity() {
        return Optional.ofNullable(this.maxCapacity);
    }
    /**
     * @return Minimum capacity. At least one of `min_capacity` or `max_capacity` must be set.
     * 
     */
    public Optional minCapacity() {
        return Optional.ofNullable(this.minCapacity);
    }

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

    public static Builder builder(ScheduledActionScalableTargetAction defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer maxCapacity;
        private @Nullable Integer minCapacity;
        public Builder() {}
        public Builder(ScheduledActionScalableTargetAction defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxCapacity = defaults.maxCapacity;
    	      this.minCapacity = defaults.minCapacity;
        }

        @CustomType.Setter
        public Builder maxCapacity(@Nullable Integer maxCapacity) {

            this.maxCapacity = maxCapacity;
            return this;
        }
        @CustomType.Setter
        public Builder minCapacity(@Nullable Integer minCapacity) {

            this.minCapacity = minCapacity;
            return this;
        }
        public ScheduledActionScalableTargetAction build() {
            final var _resultValue = new ScheduledActionScalableTargetAction();
            _resultValue.maxCapacity = maxCapacity;
            _resultValue.minCapacity = minCapacity;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy