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

com.pulumi.aws.imagebuilder.inputs.ImageRecipeBlockDeviceMappingEbsArgs 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.imagebuilder.inputs;

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


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

    public static final ImageRecipeBlockDeviceMappingEbsArgs Empty = new ImageRecipeBlockDeviceMappingEbsArgs();

    /**
     * Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
     * 
     */
    @Import(name="deleteOnTermination")
    private @Nullable Output deleteOnTermination;

    /**
     * @return Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
     * 
     */
    public Optional> deleteOnTermination() {
        return Optional.ofNullable(this.deleteOnTermination);
    }

    /**
     * Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
     * 
     */
    @Import(name="encrypted")
    private @Nullable Output encrypted;

    /**
     * @return Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
     * 
     */
    public Optional> encrypted() {
        return Optional.ofNullable(this.encrypted);
    }

    /**
     * Number of Input/Output (I/O) operations per second to provision for an `io1` or `io2` volume.
     * 
     */
    @Import(name="iops")
    private @Nullable Output iops;

    /**
     * @return Number of Input/Output (I/O) operations per second to provision for an `io1` or `io2` volume.
     * 
     */
    public Optional> iops() {
        return Optional.ofNullable(this.iops);
    }

    /**
     * Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
     * 
     */
    @Import(name="kmsKeyId")
    private @Nullable Output kmsKeyId;

    /**
     * @return Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
     * 
     */
    public Optional> kmsKeyId() {
        return Optional.ofNullable(this.kmsKeyId);
    }

    /**
     * Identifier of the EC2 Volume Snapshot.
     * 
     */
    @Import(name="snapshotId")
    private @Nullable Output snapshotId;

    /**
     * @return Identifier of the EC2 Volume Snapshot.
     * 
     */
    public Optional> snapshotId() {
        return Optional.ofNullable(this.snapshotId);
    }

    /**
     * For GP3 volumes only. The throughput in MiB/s that the volume supports.
     * 
     */
    @Import(name="throughput")
    private @Nullable Output throughput;

    /**
     * @return For GP3 volumes only. The throughput in MiB/s that the volume supports.
     * 
     */
    public Optional> throughput() {
        return Optional.ofNullable(this.throughput);
    }

    /**
     * Size of the volume, in GiB.
     * 
     */
    @Import(name="volumeSize")
    private @Nullable Output volumeSize;

    /**
     * @return Size of the volume, in GiB.
     * 
     */
    public Optional> volumeSize() {
        return Optional.ofNullable(this.volumeSize);
    }

    /**
     * Type of the volume. For example, `gp2` or `io2`.
     * 
     */
    @Import(name="volumeType")
    private @Nullable Output volumeType;

    /**
     * @return Type of the volume. For example, `gp2` or `io2`.
     * 
     */
    public Optional> volumeType() {
        return Optional.ofNullable(this.volumeType);
    }

    private ImageRecipeBlockDeviceMappingEbsArgs() {}

    private ImageRecipeBlockDeviceMappingEbsArgs(ImageRecipeBlockDeviceMappingEbsArgs $) {
        this.deleteOnTermination = $.deleteOnTermination;
        this.encrypted = $.encrypted;
        this.iops = $.iops;
        this.kmsKeyId = $.kmsKeyId;
        this.snapshotId = $.snapshotId;
        this.throughput = $.throughput;
        this.volumeSize = $.volumeSize;
        this.volumeType = $.volumeType;
    }

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

    public static final class Builder {
        private ImageRecipeBlockDeviceMappingEbsArgs $;

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

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

        /**
         * @param deleteOnTermination Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
         * 
         * @return builder
         * 
         */
        public Builder deleteOnTermination(@Nullable Output deleteOnTermination) {
            $.deleteOnTermination = deleteOnTermination;
            return this;
        }

        /**
         * @param deleteOnTermination Whether to delete the volume on termination. Defaults to unset, which is the value inherited from the parent image.
         * 
         * @return builder
         * 
         */
        public Builder deleteOnTermination(String deleteOnTermination) {
            return deleteOnTermination(Output.of(deleteOnTermination));
        }

        /**
         * @param encrypted Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
         * 
         * @return builder
         * 
         */
        public Builder encrypted(@Nullable Output encrypted) {
            $.encrypted = encrypted;
            return this;
        }

        /**
         * @param encrypted Whether to encrypt the volume. Defaults to unset, which is the value inherited from the parent image.
         * 
         * @return builder
         * 
         */
        public Builder encrypted(String encrypted) {
            return encrypted(Output.of(encrypted));
        }

        /**
         * @param iops Number of Input/Output (I/O) operations per second to provision for an `io1` or `io2` volume.
         * 
         * @return builder
         * 
         */
        public Builder iops(@Nullable Output iops) {
            $.iops = iops;
            return this;
        }

        /**
         * @param iops Number of Input/Output (I/O) operations per second to provision for an `io1` or `io2` volume.
         * 
         * @return builder
         * 
         */
        public Builder iops(Integer iops) {
            return iops(Output.of(iops));
        }

        /**
         * @param kmsKeyId Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(@Nullable Output kmsKeyId) {
            $.kmsKeyId = kmsKeyId;
            return this;
        }

        /**
         * @param kmsKeyId Amazon Resource Name (ARN) of the Key Management Service (KMS) Key for encryption.
         * 
         * @return builder
         * 
         */
        public Builder kmsKeyId(String kmsKeyId) {
            return kmsKeyId(Output.of(kmsKeyId));
        }

        /**
         * @param snapshotId Identifier of the EC2 Volume Snapshot.
         * 
         * @return builder
         * 
         */
        public Builder snapshotId(@Nullable Output snapshotId) {
            $.snapshotId = snapshotId;
            return this;
        }

        /**
         * @param snapshotId Identifier of the EC2 Volume Snapshot.
         * 
         * @return builder
         * 
         */
        public Builder snapshotId(String snapshotId) {
            return snapshotId(Output.of(snapshotId));
        }

        /**
         * @param throughput For GP3 volumes only. The throughput in MiB/s that the volume supports.
         * 
         * @return builder
         * 
         */
        public Builder throughput(@Nullable Output throughput) {
            $.throughput = throughput;
            return this;
        }

        /**
         * @param throughput For GP3 volumes only. The throughput in MiB/s that the volume supports.
         * 
         * @return builder
         * 
         */
        public Builder throughput(Integer throughput) {
            return throughput(Output.of(throughput));
        }

        /**
         * @param volumeSize Size of the volume, in GiB.
         * 
         * @return builder
         * 
         */
        public Builder volumeSize(@Nullable Output volumeSize) {
            $.volumeSize = volumeSize;
            return this;
        }

        /**
         * @param volumeSize Size of the volume, in GiB.
         * 
         * @return builder
         * 
         */
        public Builder volumeSize(Integer volumeSize) {
            return volumeSize(Output.of(volumeSize));
        }

        /**
         * @param volumeType Type of the volume. For example, `gp2` or `io2`.
         * 
         * @return builder
         * 
         */
        public Builder volumeType(@Nullable Output volumeType) {
            $.volumeType = volumeType;
            return this;
        }

        /**
         * @param volumeType Type of the volume. For example, `gp2` or `io2`.
         * 
         * @return builder
         * 
         */
        public Builder volumeType(String volumeType) {
            return volumeType(Output.of(volumeType));
        }

        public ImageRecipeBlockDeviceMappingEbsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy