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

com.pulumi.spotinst.aws.outputs.ElastigroupEbsBlockDeviceDynamicIops 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 java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ElastigroupEbsBlockDeviceDynamicIops {
    /**
     * @return Initial size for IOPS.
     * 
     */
    private @Nullable Integer baseSize;
    /**
     * @return Type of resource, valid values: `"CPU", "MEMORY"`.
     * 
     */
    private @Nullable String resource;
    /**
     * @return Additional size per resource unit (in IOPS).
     * 
     * Modifying any `ebs_block_device` currently requires resource replacement.
     * 
     * Usage:
     * 
     */
    private @Nullable Integer sizePerResourceUnit;

    private ElastigroupEbsBlockDeviceDynamicIops() {}
    /**
     * @return Initial size for IOPS.
     * 
     */
    public Optional baseSize() {
        return Optional.ofNullable(this.baseSize);
    }
    /**
     * @return Type of resource, valid values: `"CPU", "MEMORY"`.
     * 
     */
    public Optional resource() {
        return Optional.ofNullable(this.resource);
    }
    /**
     * @return Additional size per resource unit (in IOPS).
     * 
     * Modifying any `ebs_block_device` currently requires resource replacement.
     * 
     * Usage:
     * 
     */
    public Optional sizePerResourceUnit() {
        return Optional.ofNullable(this.sizePerResourceUnit);
    }

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

    public static Builder builder(ElastigroupEbsBlockDeviceDynamicIops defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer baseSize;
        private @Nullable String resource;
        private @Nullable Integer sizePerResourceUnit;
        public Builder() {}
        public Builder(ElastigroupEbsBlockDeviceDynamicIops defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.baseSize = defaults.baseSize;
    	      this.resource = defaults.resource;
    	      this.sizePerResourceUnit = defaults.sizePerResourceUnit;
        }

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

            this.baseSize = baseSize;
            return this;
        }
        @CustomType.Setter
        public Builder resource(@Nullable String resource) {

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

            this.sizePerResourceUnit = sizePerResourceUnit;
            return this;
        }
        public ElastigroupEbsBlockDeviceDynamicIops build() {
            final var _resultValue = new ElastigroupEbsBlockDeviceDynamicIops();
            _resultValue.baseSize = baseSize;
            _resultValue.resource = resource;
            _resultValue.sizePerResourceUnit = sizePerResourceUnit;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy