com.pulumi.aws.ec2.outputs.AmiCopyEphemeralBlockDevice 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.
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.aws.ec2.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AmiCopyEphemeralBlockDevice {
/**
* @return Path at which the device is exposed to created instances.
*
*/
private @Nullable String deviceName;
/**
* @return Name for the ephemeral device, of the form "ephemeralN" where
* *N* is a volume number starting from zero.
*
*/
private @Nullable String virtualName;
private AmiCopyEphemeralBlockDevice() {}
/**
* @return Path at which the device is exposed to created instances.
*
*/
public Optional deviceName() {
return Optional.ofNullable(this.deviceName);
}
/**
* @return Name for the ephemeral device, of the form "ephemeralN" where
* *N* is a volume number starting from zero.
*
*/
public Optional virtualName() {
return Optional.ofNullable(this.virtualName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AmiCopyEphemeralBlockDevice defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String deviceName;
private @Nullable String virtualName;
public Builder() {}
public Builder(AmiCopyEphemeralBlockDevice defaults) {
Objects.requireNonNull(defaults);
this.deviceName = defaults.deviceName;
this.virtualName = defaults.virtualName;
}
@CustomType.Setter
public Builder deviceName(@Nullable String deviceName) {
this.deviceName = deviceName;
return this;
}
@CustomType.Setter
public Builder virtualName(@Nullable String virtualName) {
this.virtualName = virtualName;
return this;
}
public AmiCopyEphemeralBlockDevice build() {
final var _resultValue = new AmiCopyEphemeralBlockDevice();
_resultValue.deviceName = deviceName;
_resultValue.virtualName = virtualName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy