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

com.spotinst.sdkjava.model.bl.ocean.aks.ImportClusterHealth 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 ImportClusterHealth {

    @JsonIgnore
    private Set isSet;
    private Integer     gracePeriod;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public Integer getGracePeriod() {
        return gracePeriod;
    }

    public void setGracePeriod(Integer gracePeriod) {
        isSet.add("gracePeriod");
        this.gracePeriod = gracePeriod;
    }

    public static class Builder {
        private ImportClusterHealth headroom;

        private Builder() {
            this.headroom = new ImportClusterHealth();
        }

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

        public ImportClusterHealth.Builder setGracePeriod(final Integer gracePeriod) {
            headroom.setGracePeriod(gracePeriod);
            return this;
        }

        public ImportClusterHealth build() {
            return headroom;
        }
    }

    @JsonIgnore
    public boolean isGracePeriodSet() {return isSet.contains("gracePeriod");}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy