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

com.spotinst.sdkjava.model.api.mrScaler.aws.ApiMrScalerAwsEbsBlockDeviceConfig Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.api.mrScaler.aws;

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class ApiMrScalerAwsEbsBlockDeviceConfig {
    //region Members
    @JsonIgnore
    private Set isSet;
    private Integer volumesPerInstance;
    private ApiMrScalerAwsVolumeSpecification volumeSpecification;
    // endregion

    //region Constructor
    public ApiMrScalerAwsEbsBlockDeviceConfig() {  isSet = new HashSet<>(); }
    // endregion

    // region methods
    // region volumesPerInstance
    public Integer getVolumesPerInstance(){ return volumesPerInstance; }

    public void setVolumesPerInstance(Integer volumesPerInstance) {
        isSet.add("volumesPerInstance");
        this.volumesPerInstance = volumesPerInstance;
    }

    public Boolean isVolumesPerInstanceSet(){ return isSet.contains("volumesPerInstance"); }
    // endregion

    // region volumeSpecification
    public ApiMrScalerAwsVolumeSpecification getVolumeSpecification(){ return volumeSpecification; }

    public void setVolumeSpecification(ApiMrScalerAwsVolumeSpecification volumeSpecification) {
        isSet.add("volumeSpecification");
        this.volumeSpecification = volumeSpecification;
    }

    public Boolean isVolumeSpecificationSet(){ return isSet.contains("volumeSpecification"); }
    // endregion
    // endregion

    public static class Builder {
        private ApiMrScalerAwsEbsBlockDeviceConfig ebsConfig;

        private Builder() { this.ebsConfig = new ApiMrScalerAwsEbsBlockDeviceConfig(); }

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

        // region build methods
        public Builder setVolumesPerInstance(final Integer volumesPerInstance){
            ebsConfig.setVolumesPerInstance(volumesPerInstance);
            return this;
        }
        public Builder setVolumeSpecification(final ApiMrScalerAwsVolumeSpecification volumeSpecification){
            ebsConfig.setVolumeSpecification(volumeSpecification);
            return this;
        }

        public ApiMrScalerAwsEbsBlockDeviceConfig build(){
            return ebsConfig;
        }

        // endregion
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy