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

com.spotinst.sdkjava.model.bl.spotStorage.AzureStorageVolume Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.spotStorage;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class AzureStorageVolume {
    //region Members
    @JsonIgnore
    private Set                  isSet;
    private String                       id;
    private String                       name;
    private String                       region;
    private AzureStorageVolumeCapacity   capacity;
    private AzureStorageVolumeThroughput throughput;
    private AzureStorageVolumeSpec       volumeSpec;
    private AzureStorageVolumeAutoResize autoResize;
    private String                       state;
    private Date                         createdAt;
    private Date                         updatedAt;
    //endregion

    //region Constructor
    private AzureStorageVolume() {
        isSet = new HashSet<>();
    }
    //endregion

    //region Getters & Setters
    public Set getIsSet() {
        return isSet;
    }

    public void setIsSet(Set isSet) {
        this.isSet = isSet;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        isSet.add("id");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        isSet.add("name");
        this.name = name;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        isSet.add("region");
        this.region = region;
    }

    public AzureStorageVolumeCapacity getCapacity() {
        return capacity;
    }

    public void setCapacity(AzureStorageVolumeCapacity capacity) {
        isSet.add("capacity");
        this.capacity = capacity;
    }

    public AzureStorageVolumeThroughput getThroughput() {
        return throughput;
    }

    public void setThroughput(AzureStorageVolumeThroughput throughput) {
        isSet.add("throughput");
        this.throughput = throughput;
    }

    public AzureStorageVolumeSpec getVolumeSpec() {
        return volumeSpec;
    }

    public void setVolumeSpec(AzureStorageVolumeSpec volumeSpec) {
        isSet.add("volumeSpec");
        this.volumeSpec = volumeSpec;
    }

    public AzureStorageVolumeAutoResize getAutoResize() {
        return autoResize;
    }

    public void setAutoResize(AzureStorageVolumeAutoResize autoResize) {
        isSet.add("autoResize");
        this.autoResize = autoResize;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        isSet.add("state");
        this.state = state;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        isSet.add("createdAt");
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        isSet.add("updatedAt");
        this.updatedAt = updatedAt;
    }

    //endregion

    //region Builder class
    public static class Builder {
        //region Members
        private AzureStorageVolume volumeAzureStorage;
        //endregion


        private Builder() {
            this.volumeAzureStorage = new AzureStorageVolume();
        }

        public static Builder get() {
            return new Builder();
        }

        //region Build methods
        public Builder setId(final String volumeId) {
            volumeAzureStorage.setId(volumeId);
            return this;
        }

        public Builder setName(final String name) {
            volumeAzureStorage.setName(name);
            return this;
        }

        public Builder setRegion(final String region) {
            volumeAzureStorage.setRegion(region);
            return this;
        }

        public Builder setCapacity(final AzureStorageVolumeCapacity capacity) {
            volumeAzureStorage.setCapacity(capacity);
            return this;
        }

        public Builder setThroughput(final AzureStorageVolumeThroughput throughput) {
            volumeAzureStorage.setThroughput(throughput);
            return this;
        }

        public Builder setVolumeSpec(final AzureStorageVolumeSpec volumeSpec) {
            volumeAzureStorage.setVolumeSpec(volumeSpec);
            return this;
        }

        public Builder setAutoResize(final AzureStorageVolumeAutoResize autoResize) {
            volumeAzureStorage.setAutoResize(autoResize);
            return this;
        }

        public Builder setState(final String state) {
            volumeAzureStorage.setState(state);
            return this;
        }

        public AzureStorageVolume build() {
            // Validations
            return volumeAzureStorage;
        }
        //endregion
    }
    //endregion

    //region isSet methods
    // Is id Set boolean method
    @JsonIgnore
    public boolean isIdSet() {
        return isSet.contains("id");
    }

    // Is name Set boolean method
    @JsonIgnore
    public boolean isNameSet() {
        return isSet.contains("name");
    }

    // Is description Set boolean method
    @JsonIgnore
    public boolean isRegionSet() {
        return isSet.contains("region");
    }

    // Is capacity Set boolean method
    @JsonIgnore
    public boolean isCapacitySet() {
        return isSet.contains("capacity");
    }

    // Is throughput Set boolean method
    @JsonIgnore
    public boolean isThroughputSet() {
        return isSet.contains("throughput");
    }

    // Is volumeSpec Set boolean method
    @JsonIgnore
    public boolean isVolumeSpecSet() {
        return isSet.contains("volumeSpec");
    }

    // Is autoResize Set boolean method
    @JsonIgnore
    public boolean isAutoResizeSet() {
        return isSet.contains("autoResize");
    }

    // Is state Set boolean method
    @JsonIgnore
    public boolean isStateSet() {
        return isSet.contains("state");
    }

    // Is createdAt Set boolean method
    @JsonIgnore
    public boolean isCreatedAtSet() {
        return isSet.contains("createdAt");
    }

    // Is updatedAt Set boolean method
    @JsonIgnore
    public boolean isUpdatedAtSet() {
        return isSet.contains("updatedAt");
    }
    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy