All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfdsl.ec2.property.BlockStore Maven / Gradle / Ivy

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);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy