com.pulumi.aws.imagebuilder.outputs.ContainerRecipeInstanceConfigurationBlockDeviceMapping 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.outputs;
import com.pulumi.aws.imagebuilder.outputs.ContainerRecipeInstanceConfigurationBlockDeviceMappingEbs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContainerRecipeInstanceConfigurationBlockDeviceMapping {
/**
* @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`.
*
*/
private @Nullable String deviceName;
/**
* @return Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
*
*/
private @Nullable ContainerRecipeInstanceConfigurationBlockDeviceMappingEbs ebs;
/**
* @return Set to `true` to remove a mapping from the parent image.
*
*/
private @Nullable Boolean noDevice;
/**
* @return Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0.
*
*/
private @Nullable String virtualName;
private ContainerRecipeInstanceConfigurationBlockDeviceMapping() {}
/**
* @return Name of the device. For example, `/dev/sda` or `/dev/xvdb`.
*
*/
public Optional deviceName() {
return Optional.ofNullable(this.deviceName);
}
/**
* @return Configuration block with Elastic Block Storage (EBS) block device mapping settings. Detailed below.
*
*/
public Optional ebs() {
return Optional.ofNullable(this.ebs);
}
/**
* @return Set to `true` to remove a mapping from the parent image.
*
*/
public Optional noDevice() {
return Optional.ofNullable(this.noDevice);
}
/**
* @return Virtual device name. For example, `ephemeral0`. Instance store volumes are numbered starting from 0.
*
*/
public Optional virtualName() {
return Optional.ofNullable(this.virtualName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerRecipeInstanceConfigurationBlockDeviceMapping defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String deviceName;
private @Nullable ContainerRecipeInstanceConfigurationBlockDeviceMappingEbs ebs;
private @Nullable Boolean noDevice;
private @Nullable String virtualName;
public Builder() {}
public Builder(ContainerRecipeInstanceConfigurationBlockDeviceMapping 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 ContainerRecipeInstanceConfigurationBlockDeviceMappingEbs ebs) {
this.ebs = ebs;
return this;
}
@CustomType.Setter
public Builder noDevice(@Nullable Boolean noDevice) {
this.noDevice = noDevice;
return this;
}
@CustomType.Setter
public Builder virtualName(@Nullable String virtualName) {
this.virtualName = virtualName;
return this;
}
public ContainerRecipeInstanceConfigurationBlockDeviceMapping build() {
final var _resultValue = new ContainerRecipeInstanceConfigurationBlockDeviceMapping();
_resultValue.deviceName = deviceName;
_resultValue.ebs = ebs;
_resultValue.noDevice = noDevice;
_resultValue.virtualName = virtualName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy