com.pulumi.aws.ec2.outputs.LaunchTemplateBlockDeviceMapping 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.outputs;
import com.pulumi.aws.ec2.outputs.LaunchTemplateBlockDeviceMappingEbs;
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 LaunchTemplateBlockDeviceMapping {
/**
* @return The name of the device to mount.
*
*/
private @Nullable String deviceName;
/**
* @return Configure EBS volume properties.
*
*/
private @Nullable LaunchTemplateBlockDeviceMappingEbs ebs;
/**
* @return Suppresses the specified device included in the AMI's block device mapping.
*
*/
private @Nullable String noDevice;
/**
* @return The [Instance Store Device
* Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames)
* (e.g., `"ephemeral0"`).
*
*/
private @Nullable String virtualName;
private LaunchTemplateBlockDeviceMapping() {}
/**
* @return The name of the device to mount.
*
*/
public Optional deviceName() {
return Optional.ofNullable(this.deviceName);
}
/**
* @return Configure EBS volume properties.
*
*/
public Optional ebs() {
return Optional.ofNullable(this.ebs);
}
/**
* @return Suppresses the specified device included in the AMI's block device mapping.
*
*/
public Optional noDevice() {
return Optional.ofNullable(this.noDevice);
}
/**
* @return The [Instance Store Device
* Name](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html#InstanceStoreDeviceNames)
* (e.g., `"ephemeral0"`).
*
*/
public Optional virtualName() {
return Optional.ofNullable(this.virtualName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LaunchTemplateBlockDeviceMapping defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String deviceName;
private @Nullable LaunchTemplateBlockDeviceMappingEbs ebs;
private @Nullable String noDevice;
private @Nullable String virtualName;
public Builder() {}
public Builder(LaunchTemplateBlockDeviceMapping defaults) {
Objects.requireNonNull(defaults);
this.deviceName = defaults.deviceName;
this.ebs = defaults.ebs;
this.noDevice = defaults.noDevice;
this.virtualName = defaults.virtualName;
}
@CustomType.Setter
public Builder deviceName(@Nullable String deviceName) {
this.deviceName = deviceName;
return this;
}
@CustomType.Setter
public Builder ebs(@Nullable LaunchTemplateBlockDeviceMappingEbs ebs) {
this.ebs = ebs;
return this;
}
@CustomType.Setter
public Builder noDevice(@Nullable String noDevice) {
this.noDevice = noDevice;
return this;
}
@CustomType.Setter
public Builder virtualName(@Nullable String virtualName) {
this.virtualName = virtualName;
return this;
}
public LaunchTemplateBlockDeviceMapping build() {
final var _resultValue = new LaunchTemplateBlockDeviceMapping();
_resultValue.deviceName = deviceName;
_resultValue.ebs = ebs;
_resultValue.noDevice = noDevice;
_resultValue.virtualName = virtualName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy