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

com.spotinst.sdkjava.model.bl.ocean.aks.ClusterVngAutoScaleSpec Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class ClusterVngAutoScaleSpec {

    @JsonIgnore
    private Set                    isSet;
    private List   headrooms;
    private Integer                        autoHeadroomPercentage;

    private ClusterVngAutoScaleSpec() {
        isSet = new HashSet<>();
    }

    public Set getIsSet() {
        return isSet;
    }

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

    public List getHeadrooms() {
        return headrooms;
    }

    public void setHeadrooms(List headrooms) {
        isSet.add("headrooms");
        this.headrooms = headrooms;
    }

    public Integer getAutoHeadroomPercentage() {
        return autoHeadroomPercentage;
    }

    public void setAutoHeadroomPercentage(Integer autoHeadroomPercentage) {
        isSet.add("autoHeadroomPercentage");
        this.autoHeadroomPercentage = autoHeadroomPercentage;
    }

    public static class Builder {
        private ClusterVngAutoScaleSpec autoScale;

        public Builder() {
            this.autoScale = new ClusterVngAutoScaleSpec();
        }

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

        public Builder setHeadrooms(List headrooms) {
            autoScale.setHeadrooms(headrooms);
            return this;
        }

        public Builder setAutoHeadroomPercentage(Integer autoHeadroomPercentage) {
            autoScale.setAutoHeadroomPercentage(autoHeadroomPercentage);
            return this;
        }

        public ClusterVngAutoScaleSpec build() {
            return autoScale;
        }
    }

    @JsonIgnore
    public boolean isHeadroomSet() {
        return isSet.contains("headrooms");
    }

    @JsonIgnore
    public boolean isAutoHeadroomPercentageSet() {
        return isSet.contains("autoHeadroomPercentage");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy