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

com.spotinst.sdkjava.model.bl.spotStorage.AzureStorageVolumeAutoResizeResizePolicyAction 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.HashSet;
import java.util.Set;

public class AzureStorageVolumeAutoResizeResizePolicyAction {
    //region Members
    @JsonIgnore
    private Set isSet;
    private String      type;
    private Integer     adjustmentPercentage;
    //endregion

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

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

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

    //region Type
    public String getType() {
        return type;
    }

    public void setType(String type) {
        isSet.add("type");
        this.type = type;
    }
    //endregion

    //region adjustmentPercentage
    public Integer getAdjustmentPercentage() {
        return adjustmentPercentage;
    }

    public void setAdjustmentPercentage(Integer adjustmentPercentage) {
        isSet.add("adjustmentPercentage");
        this.adjustmentPercentage = adjustmentPercentage;
    }
    //endregion

    //region Builder class
    public static class Builder {
        //region Members
        private AzureStorageVolumeAutoResizeResizePolicyAction volumeAutoResizeResizePolicyAction;
        //endregion


        private Builder() {
            this.volumeAutoResizeResizePolicyAction = new AzureStorageVolumeAutoResizeResizePolicyAction();
        }

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

        //region Build methods
        public Builder setType(final String type) {
            volumeAutoResizeResizePolicyAction.setType(type);
            return this;
        }

        public Builder setAdjustmentPercentage(final Integer adjustmentPercentage) {
            volumeAutoResizeResizePolicyAction.setAdjustmentPercentage(adjustmentPercentage);
            return this;
        }

        public AzureStorageVolumeAutoResizeResizePolicyAction build() {
            // Validations
            return volumeAutoResizeResizePolicyAction;
        }
        //endregion
    }
    //endregion

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy