com.pulumi.aws.ec2.inputs.AmiEphemeralBlockDeviceArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.ec2.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class AmiEphemeralBlockDeviceArgs extends com.pulumi.resources.ResourceArgs {
public static final AmiEphemeralBlockDeviceArgs Empty = new AmiEphemeralBlockDeviceArgs();
/**
* Path at which the device is exposed to created instances.
*
*/
@Import(name="deviceName", required=true)
private Output deviceName;
/**
* @return Path at which the device is exposed to created instances.
*
*/
public Output deviceName() {
return this.deviceName;
}
/**
* Name for the ephemeral device, of the form "ephemeralN" where
* *N* is a volume number starting from zero.
*
*/
@Import(name="virtualName", required=true)
private Output virtualName;
/**
* @return Name for the ephemeral device, of the form "ephemeralN" where
* *N* is a volume number starting from zero.
*
*/
public Output virtualName() {
return this.virtualName;
}
private AmiEphemeralBlockDeviceArgs() {}
private AmiEphemeralBlockDeviceArgs(AmiEphemeralBlockDeviceArgs $) {
this.deviceName = $.deviceName;
this.virtualName = $.virtualName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AmiEphemeralBlockDeviceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AmiEphemeralBlockDeviceArgs $;
public Builder() {
$ = new AmiEphemeralBlockDeviceArgs();
}
public Builder(AmiEphemeralBlockDeviceArgs defaults) {
$ = new AmiEphemeralBlockDeviceArgs(Objects.requireNonNull(defaults));
}
/**
* @param deviceName Path at which the device is exposed to created instances.
*
* @return builder
*
*/
public Builder deviceName(Output deviceName) {
$.deviceName = deviceName;
return this;
}
/**
* @param deviceName Path at which the device is exposed to created instances.
*
* @return builder
*
*/
public Builder deviceName(String deviceName) {
return deviceName(Output.of(deviceName));
}
/**
* @param virtualName Name for the ephemeral device, of the form "ephemeralN" where
* *N* is a volume number starting from zero.
*
* @return builder
*
*/
public Builder virtualName(Output virtualName) {
$.virtualName = virtualName;
return this;
}
/**
* @param virtualName Name for the ephemeral device, of the form "ephemeralN" where
* *N* is a volume number starting from zero.
*
* @return builder
*
*/
public Builder virtualName(String virtualName) {
return virtualName(Output.of(virtualName));
}
public AmiEphemeralBlockDeviceArgs build() {
if ($.deviceName == null) {
throw new MissingRequiredPropertyException("AmiEphemeralBlockDeviceArgs", "deviceName");
}
if ($.virtualName == null) {
throw new MissingRequiredPropertyException("AmiEphemeralBlockDeviceArgs", "virtualName");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy