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

com.spotinst.sdkjava.model.bl.ocean.kubernetes.InitiateRoll Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class InitiateRoll {
    @JsonIgnore
    private Set                     isSet;
    private Integer            batchSizePercentage;
    private Integer      batchMinHealthyPercentage;
    private String                         comment;
    private Boolean                     respectPdb;
    private List               instanceIds;
    private Boolean   disableLaunchSpecAutoScaling;
    private List             launchSpecIds;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public Integer getBatchSizePercentage() {
        return batchSizePercentage;
    }

    public void setBatchSizePercentage(Integer batchSizePercentage) {
        isSet.add("batchSizePercentage");
        this.batchSizePercentage = batchSizePercentage;
    }

    public Integer getBatchMinHealthyPercentage() {
        return batchMinHealthyPercentage;
    }

    public void setBatchMinHealthyPercentage(Integer batchMinHealthyPercentage) {
        isSet.add("batchMinHealthyPercentage");
        this.batchMinHealthyPercentage = batchMinHealthyPercentage;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        isSet.add("comment");
        this.comment = comment;
    }

    public Boolean getRespectPdb() {
        return respectPdb;
    }

    public void setRespectPdb(Boolean respectPdb) {
        isSet.add("respectPdb");
        this.respectPdb = respectPdb;
    }

    public Boolean getDisableLaunchSpecAutoScaling() {
        return disableLaunchSpecAutoScaling;
    }

    public void setDisableLaunchSpecAutoScaling(Boolean disableLaunchSpecAutoScaling) {
        isSet.add("disableLaunchSpecAutoScaling");
        this.disableLaunchSpecAutoScaling = disableLaunchSpecAutoScaling;
    }

    public List getInstanceIds() {
        return instanceIds;
    }

    public void setInstanceIds(List instanceIds) {
        isSet.add("instanceIds");
        this.instanceIds = instanceIds;
    }

    public List getLaunchSpecIds() {
        return launchSpecIds;
    }

    public void setLaunchSpecIds(List launchSpecIds) {
        isSet.add("launchSpecIds");
        this.launchSpecIds = launchSpecIds;
    }

    public static class Builder {
        private InitiateRoll initiateRoll;

        private Builder() {
            this.initiateRoll = new InitiateRoll();
        }

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

        public Builder setBatchSizePercentage(final Integer batchSizePercentage) {
            initiateRoll.setBatchSizePercentage(batchSizePercentage);
            return this;
        }

        public Builder setComment(final String comment) {
            initiateRoll.setComment(comment);
            return this;
        }

        public Builder setRespectPdb(final Boolean respectPdb) {
            initiateRoll.setRespectPdb(respectPdb);
            return this;
        }

        public Builder setBatchMinHealthyPercentage(final Integer batchMinHealthyPercentage) {
            initiateRoll.setBatchMinHealthyPercentage(batchMinHealthyPercentage);
            return this;
        }

        public Builder setInstanceIds(final List instanceIds) {
            initiateRoll.setInstanceIds(instanceIds);
            return this;
        }

        public Builder setLaunchSpecIds(final List launchSpecIds) {
            initiateRoll.setLaunchSpecIds(launchSpecIds);
            return this;
        }

        public Builder setDisableLaunchSpecAutoScaling(final Boolean disableLaunchSpecAutoScaling) {
            initiateRoll.setDisableLaunchSpecAutoScaling(disableLaunchSpecAutoScaling);
            return this;
        }

        public InitiateRoll build() {
            return initiateRoll;
        }
    }

    @JsonIgnore
    public boolean isBatchSizePercentageSet() {
        return isSet.contains("batchSizePercentage");
    }

    @JsonIgnore
    public boolean isCommentSet() {
        return isSet.contains("comment");
    }

    @JsonIgnore
    public boolean isRespectPdbSet() {
        return isSet.contains("respectPdb");
    }

    @JsonIgnore
    public boolean isBatchMinHealthyPercentageSet() {
        return isSet.contains("batchMinHealthyPercentage");
    }

    @JsonIgnore
    public boolean isInstanceIdsSet() {
        return isSet.contains("instanceIds");
    }

    @JsonIgnore
    public boolean isLaunchSpecIdsSet() {
        return isSet.contains("launchSpecIds");
    }

    @JsonIgnore
    public boolean isDisableLaunchSpecAutoScalingSet() {
        return isSet.contains("disableLaunchSpecAutoScaling");
    }

    @JsonIgnore
    public boolean isAllocatableMemoryInMiBSet() {
        return isSet.contains("allocatableMemoryInMiB");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy