com.pulumi.aws.opsworks.outputs.PhpAppLayerEbsVolume 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.opsworks.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PhpAppLayerEbsVolume {
private @Nullable Boolean encrypted;
/**
* @return For PIOPS volumes, the IOPS per disk.
*
*/
private @Nullable Integer iops;
/**
* @return The path to mount the EBS volume on the layer's instances.
*
*/
private String mountPoint;
/**
* @return The number of disks to use for the EBS volume.
*
*/
private Integer numberOfDisks;
/**
* @return The RAID level to use for the volume.
*
*/
private @Nullable String raidLevel;
/**
* @return The size of the volume in gigabytes.
*
*/
private Integer size;
/**
* @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`.
*
*/
private @Nullable String type;
private PhpAppLayerEbsVolume() {}
public Optional encrypted() {
return Optional.ofNullable(this.encrypted);
}
/**
* @return For PIOPS volumes, the IOPS per disk.
*
*/
public Optional iops() {
return Optional.ofNullable(this.iops);
}
/**
* @return The path to mount the EBS volume on the layer's instances.
*
*/
public String mountPoint() {
return this.mountPoint;
}
/**
* @return The number of disks to use for the EBS volume.
*
*/
public Integer numberOfDisks() {
return this.numberOfDisks;
}
/**
* @return The RAID level to use for the volume.
*
*/
public Optional raidLevel() {
return Optional.ofNullable(this.raidLevel);
}
/**
* @return The size of the volume in gigabytes.
*
*/
public Integer size() {
return this.size;
}
/**
* @return The type of volume to create. This may be `standard` (the default), `io1` or `gp2`.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PhpAppLayerEbsVolume defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean encrypted;
private @Nullable Integer iops;
private String mountPoint;
private Integer numberOfDisks;
private @Nullable String raidLevel;
private Integer size;
private @Nullable String type;
public Builder() {}
public Builder(PhpAppLayerEbsVolume defaults) {
Objects.requireNonNull(defaults);
this.encrypted = defaults.encrypted;
this.iops = defaults.iops;
this.mountPoint = defaults.mountPoint;
this.numberOfDisks = defaults.numberOfDisks;
this.raidLevel = defaults.raidLevel;
this.size = defaults.size;
this.type = defaults.type;
}
@CustomType.Setter
public Builder encrypted(@Nullable Boolean encrypted) {
this.encrypted = encrypted;
return this;
}
@CustomType.Setter
public Builder iops(@Nullable Integer iops) {
this.iops = iops;
return this;
}
@CustomType.Setter
public Builder mountPoint(String mountPoint) {
if (mountPoint == null) {
throw new MissingRequiredPropertyException("PhpAppLayerEbsVolume", "mountPoint");
}
this.mountPoint = mountPoint;
return this;
}
@CustomType.Setter
public Builder numberOfDisks(Integer numberOfDisks) {
if (numberOfDisks == null) {
throw new MissingRequiredPropertyException("PhpAppLayerEbsVolume", "numberOfDisks");
}
this.numberOfDisks = numberOfDisks;
return this;
}
@CustomType.Setter
public Builder raidLevel(@Nullable String raidLevel) {
this.raidLevel = raidLevel;
return this;
}
@CustomType.Setter
public Builder size(Integer size) {
if (size == null) {
throw new MissingRequiredPropertyException("PhpAppLayerEbsVolume", "size");
}
this.size = size;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public PhpAppLayerEbsVolume build() {
final var _resultValue = new PhpAppLayerEbsVolume();
_resultValue.encrypted = encrypted;
_resultValue.iops = iops;
_resultValue.mountPoint = mountPoint;
_resultValue.numberOfDisks = numberOfDisks;
_resultValue.raidLevel = raidLevel;
_resultValue.size = size;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy