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

com.spotinst.sdkjava.model.api.mrScaler.aws.ApiMrScalerAwsScalingConfiguration 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;
import java.util.List;

public class ApiMrScalerAwsScalingConfiguration {
    //region Members
    @JsonIgnore
    private Set isSet;
    private List up;
    private List down;

    // endregion

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

    //region getters and setters
    // region up
    public List getUp(){
        return up;
    }

    public void setUp(List up){
        isSet.add("up");
        this.up = up;
    }

    public Boolean isUpSet(){
        return isSet.contains("up");
    }
    // endregion

    // region down
    public List getDown(){
        return down;
    }

    public void setDown(List down){
        isSet.add("down");
        this.down = down;
    }

    public Boolean isDownSet(){
        return isSet.contains("down");
    }
    // endregion
    // endregion

    public static class Builder {
        private ApiMrScalerAwsScalingConfiguration scaling;

        private Builder(){ this.scaling = new ApiMrScalerAwsScalingConfiguration(); }

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

        // region build methods
        public Builder setUp(final List up){
            scaling.setUp(up);
            return this;
        }
        public Builder setDown(final List down){
            scaling.setDown(down);
            return this;
        }

        public ApiMrScalerAwsScalingConfiguration build(){
            return scaling;
        }
        // endregion
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy