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

com.pulumi.aws.emr.inputs.InstanceGroupEbsConfigArgs Maven / Gradle / Ivy

// *** 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.emr.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class InstanceGroupEbsConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstanceGroupEbsConfigArgs Empty = new InstanceGroupEbsConfigArgs();

    /**
     * The number of I/O operations per second (IOPS) that the volume supports.
     * 
     */
    @Import(name="iops")
    private @Nullable Output iops;

    /**
     * @return The number of I/O operations per second (IOPS) that the volume supports.
     * 
     */
    public Optional> iops() {
        return Optional.ofNullable(this.iops);
    }

    /**
     * The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
     * 
     */
    @Import(name="size", required=true)
    private Output size;

    /**
     * @return The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
     * 
     */
    public Output size() {
        return this.size;
    }

    /**
     * The volume type. Valid options are 'gp2', 'io1' and 'standard'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The volume type. Valid options are 'gp2', 'io1' and 'standard'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The number of EBS Volumes to attach per instance.
     * 
     */
    @Import(name="volumesPerInstance")
    private @Nullable Output volumesPerInstance;

    /**
     * @return The number of EBS Volumes to attach per instance.
     * 
     */
    public Optional> volumesPerInstance() {
        return Optional.ofNullable(this.volumesPerInstance);
    }

    private InstanceGroupEbsConfigArgs() {}

    private InstanceGroupEbsConfigArgs(InstanceGroupEbsConfigArgs $) {
        this.iops = $.iops;
        this.size = $.size;
        this.type = $.type;
        this.volumesPerInstance = $.volumesPerInstance;
    }

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

    public static final class Builder {
        private InstanceGroupEbsConfigArgs $;

        public Builder() {
            $ = new InstanceGroupEbsConfigArgs();
        }

        public Builder(InstanceGroupEbsConfigArgs defaults) {
            $ = new InstanceGroupEbsConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param iops The number of I/O operations per second (IOPS) that the volume supports.
         * 
         * @return builder
         * 
         */
        public Builder iops(@Nullable Output iops) {
            $.iops = iops;
            return this;
        }

        /**
         * @param iops The number of I/O operations per second (IOPS) that the volume supports.
         * 
         * @return builder
         * 
         */
        public Builder iops(Integer iops) {
            return iops(Output.of(iops));
        }

        /**
         * @param size The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
         * 
         * @return builder
         * 
         */
        public Builder size(Output size) {
            $.size = size;
            return this;
        }

        /**
         * @param size The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
         * 
         * @return builder
         * 
         */
        public Builder size(Integer size) {
            return size(Output.of(size));
        }

        /**
         * @param type The volume type. Valid options are 'gp2', 'io1' and 'standard'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The volume type. Valid options are 'gp2', 'io1' and 'standard'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param volumesPerInstance The number of EBS Volumes to attach per instance.
         * 
         * @return builder
         * 
         */
        public Builder volumesPerInstance(@Nullable Output volumesPerInstance) {
            $.volumesPerInstance = volumesPerInstance;
            return this;
        }

        /**
         * @param volumesPerInstance The number of EBS Volumes to attach per instance.
         * 
         * @return builder
         * 
         */
        public Builder volumesPerInstance(Integer volumesPerInstance) {
            return volumesPerInstance(Output.of(volumesPerInstance));
        }

        public InstanceGroupEbsConfigArgs build() {
            if ($.size == null) {
                throw new MissingRequiredPropertyException("InstanceGroupEbsConfigArgs", "size");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("InstanceGroupEbsConfigArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy