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

com.spotinst.sdkjava.model.bl.ocean.aks.ClusterVngResourceLimits 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.Set;

public class ClusterVngResourceLimits {
    @JsonIgnore
    private Set isSet;
    private Integer     maxInstanceCount;


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

    public Set getIsSet() {
        return isSet;
    }

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

    public Integer getMaxInstanceCount() {
        return maxInstanceCount;
    }

    public void setMaxInstanceCount(Integer maxInstanceCount) {
        isSet.add("maxInstanceCount");
        this.maxInstanceCount = maxInstanceCount;
    }

    public static class Builder {
        private ClusterVngResourceLimits strategy;

        private Builder() {
            this.strategy = new ClusterVngResourceLimits();
        }

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

        public Builder setMaxInstanceCount(final Integer maxInstanceCount) {
            strategy.setMaxInstanceCount(maxInstanceCount);
            return this;
        }

        public ClusterVngResourceLimits build() {
            return strategy;
        }
    }


    @JsonIgnore
    public boolean isMaxInstanceCountSet() {
        return isSet.contains("maxInstanceCount");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy