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

com.pulumi.aws.opsworks.outputs.CustomLayerLoadBasedAutoScaling 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.opsworks.outputs;

import com.pulumi.aws.opsworks.outputs.CustomLayerLoadBasedAutoScalingDownscaling;
import com.pulumi.aws.opsworks.outputs.CustomLayerLoadBasedAutoScalingUpscaling;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CustomLayerLoadBasedAutoScaling {
    /**
     * @return The downscaling settings, as defined below, used for load-based autoscaling
     * 
     */
    private @Nullable CustomLayerLoadBasedAutoScalingDownscaling downscaling;
    /**
     * @return Whether load-based auto scaling is enabled for the layer.
     * 
     */
    private @Nullable Boolean enable;
    /**
     * @return The upscaling settings, as defined below, used for load-based autoscaling
     * 
     */
    private @Nullable CustomLayerLoadBasedAutoScalingUpscaling upscaling;

    private CustomLayerLoadBasedAutoScaling() {}
    /**
     * @return The downscaling settings, as defined below, used for load-based autoscaling
     * 
     */
    public Optional downscaling() {
        return Optional.ofNullable(this.downscaling);
    }
    /**
     * @return Whether load-based auto scaling is enabled for the layer.
     * 
     */
    public Optional enable() {
        return Optional.ofNullable(this.enable);
    }
    /**
     * @return The upscaling settings, as defined below, used for load-based autoscaling
     * 
     */
    public Optional upscaling() {
        return Optional.ofNullable(this.upscaling);
    }

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

    public static Builder builder(CustomLayerLoadBasedAutoScaling defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CustomLayerLoadBasedAutoScalingDownscaling downscaling;
        private @Nullable Boolean enable;
        private @Nullable CustomLayerLoadBasedAutoScalingUpscaling upscaling;
        public Builder() {}
        public Builder(CustomLayerLoadBasedAutoScaling defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.downscaling = defaults.downscaling;
    	      this.enable = defaults.enable;
    	      this.upscaling = defaults.upscaling;
        }

        @CustomType.Setter
        public Builder downscaling(@Nullable CustomLayerLoadBasedAutoScalingDownscaling downscaling) {

            this.downscaling = downscaling;
            return this;
        }
        @CustomType.Setter
        public Builder enable(@Nullable Boolean enable) {

            this.enable = enable;
            return this;
        }
        @CustomType.Setter
        public Builder upscaling(@Nullable CustomLayerLoadBasedAutoScalingUpscaling upscaling) {

            this.upscaling = upscaling;
            return this;
        }
        public CustomLayerLoadBasedAutoScaling build() {
            final var _resultValue = new CustomLayerLoadBasedAutoScaling();
            _resultValue.downscaling = downscaling;
            _resultValue.enable = enable;
            _resultValue.upscaling = upscaling;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy