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

com.pulumi.azurenative.awsconnector.inputs.InstanceBlockDeviceMappingArgs 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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.EbsInstanceBlockDeviceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of InstanceBlockDeviceMapping
 * 
 */
public final class InstanceBlockDeviceMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstanceBlockDeviceMappingArgs Empty = new InstanceBlockDeviceMappingArgs();

    /**
     * <p>The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>
     * 
     */
    @Import(name="deviceName")
    private @Nullable Output deviceName;

    /**
     * @return <p>The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>
     * 
     */
    public Optional> deviceName() {
        return Optional.ofNullable(this.deviceName);
    }

    /**
     * <p>Parameters used to automatically set up EBS volumes when the instance is launched.</p>
     * 
     */
    @Import(name="ebs")
    private @Nullable Output ebs;

    /**
     * @return <p>Parameters used to automatically set up EBS volumes when the instance is launched.</p>
     * 
     */
    public Optional> ebs() {
        return Optional.ofNullable(this.ebs);
    }

    private InstanceBlockDeviceMappingArgs() {}

    private InstanceBlockDeviceMappingArgs(InstanceBlockDeviceMappingArgs $) {
        this.deviceName = $.deviceName;
        this.ebs = $.ebs;
    }

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

    public static final class Builder {
        private InstanceBlockDeviceMappingArgs $;

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

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

        /**
         * @param deviceName <p>The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>
         * 
         * @return builder
         * 
         */
        public Builder deviceName(@Nullable Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

        /**
         * @param deviceName <p>The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>
         * 
         * @return builder
         * 
         */
        public Builder deviceName(String deviceName) {
            return deviceName(Output.of(deviceName));
        }

        /**
         * @param ebs <p>Parameters used to automatically set up EBS volumes when the instance is launched.</p>
         * 
         * @return builder
         * 
         */
        public Builder ebs(@Nullable Output ebs) {
            $.ebs = ebs;
            return this;
        }

        /**
         * @param ebs <p>Parameters used to automatically set up EBS volumes when the instance is launched.</p>
         * 
         * @return builder
         * 
         */
        public Builder ebs(EbsInstanceBlockDeviceArgs ebs) {
            return ebs(Output.of(ebs));
        }

        public InstanceBlockDeviceMappingArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy