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

com.pulumi.aws.emr.outputs.ClusterMasterInstanceGroupEbsConfig 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.emr.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class ClusterMasterInstanceGroupEbsConfig {
    /**
     * @return Number of I/O operations per second (IOPS) that the volume supports.
     * 
     */
    private @Nullable Integer iops;
    /**
     * @return Volume size, in gibibytes (GiB).
     * 
     */
    private Integer size;
    /**
     * @return The throughput, in mebibyte per second (MiB/s).
     * 
     */
    private @Nullable Integer throughput;
    /**
     * @return Volume type. Valid options are `gp3`, `gp2`, `io1`, `io2`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
     * 
     */
    private String type;
    /**
     * @return Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1).
     * 
     */
    private @Nullable Integer volumesPerInstance;

    private ClusterMasterInstanceGroupEbsConfig() {}
    /**
     * @return Number of I/O operations per second (IOPS) that the volume supports.
     * 
     */
    public Optional iops() {
        return Optional.ofNullable(this.iops);
    }
    /**
     * @return Volume size, in gibibytes (GiB).
     * 
     */
    public Integer size() {
        return this.size;
    }
    /**
     * @return The throughput, in mebibyte per second (MiB/s).
     * 
     */
    public Optional throughput() {
        return Optional.ofNullable(this.throughput);
    }
    /**
     * @return Volume type. Valid options are `gp3`, `gp2`, `io1`, `io2`, `standard`, `st1` and `sc1`. See [EBS Volume Types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html).
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Number of EBS volumes with this configuration to attach to each EC2 instance in the instance group (default is 1).
     * 
     */
    public Optional volumesPerInstance() {
        return Optional.ofNullable(this.volumesPerInstance);
    }

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

    public static Builder builder(ClusterMasterInstanceGroupEbsConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer iops;
        private Integer size;
        private @Nullable Integer throughput;
        private String type;
        private @Nullable Integer volumesPerInstance;
        public Builder() {}
        public Builder(ClusterMasterInstanceGroupEbsConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.iops = defaults.iops;
    	      this.size = defaults.size;
    	      this.throughput = defaults.throughput;
    	      this.type = defaults.type;
    	      this.volumesPerInstance = defaults.volumesPerInstance;
        }

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

            this.iops = iops;
            return this;
        }
        @CustomType.Setter
        public Builder size(Integer size) {
            if (size == null) {
              throw new MissingRequiredPropertyException("ClusterMasterInstanceGroupEbsConfig", "size");
            }
            this.size = size;
            return this;
        }
        @CustomType.Setter
        public Builder throughput(@Nullable Integer throughput) {

            this.throughput = throughput;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ClusterMasterInstanceGroupEbsConfig", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder volumesPerInstance(@Nullable Integer volumesPerInstance) {

            this.volumesPerInstance = volumesPerInstance;
            return this;
        }
        public ClusterMasterInstanceGroupEbsConfig build() {
            final var _resultValue = new ClusterMasterInstanceGroupEbsConfig();
            _resultValue.iops = iops;
            _resultValue.size = size;
            _resultValue.throughput = throughput;
            _resultValue.type = type;
            _resultValue.volumesPerInstance = volumesPerInstance;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy