cfdsl.ec2.property.BlockStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cfdsl Show documentation
Show all versions of cfdsl Show documentation
Java DSL for Amazon CloudFormation templates
The newest version!
package cfdsl.ec2.property;
import cfdsl.EmbeddedProperty;
public final class BlockStore extends EmbeddedProperty {
private BlockStore(Builder b) {
super(b);
}
public static Builder newBuilder() {
return new Builder();
}
public static final class Builder extends EmbeddedProperty.Builder {
private Builder() {}
public Builder deleteOnTermination(boolean deleteOnTermination) {
addProperty("DeleteOnTermination", deleteOnTermination);
return this;
}
public Builder encrypted(boolean encrypted) {
addProperty("Encrypted", encrypted);
return this;
}
public Builder iops(int iops) {
addProperty("Iops", iops);
return this;
}
public Builder snapshotId(String snapshotId) {
addProperty("SnapshotId", snapshotId);
return this;
}
public Builder volumeSize(int gigabytes) {
addProperty("VolumeSize", gigabytes);
return this;
}
public Builder volumeType(VolumeType type) {
addProperty("VolumeType", type);
return this;
}
@Override
public BlockStore build() {
return new BlockStore(this);
}
}
}