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

com.spotinst.sdkjava.model.bl.ocean.ecs.EcsClusterRollResponse Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spotinst.sdkjava.enums.k8sClusterRollStatusEnum;

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

public class EcsClusterRollResponse {
    @JsonIgnore
    private Set                            isSet;
    private String                                    id;
    private k8sClusterRollStatusEnum              status;
    private Integer                         currentBatch;
    private Integer                         numOfBatches;
    private String                               comment;
    private Integer            batchMinHealthyPercentage;
    private EcsInitiateRollProgress             progress;
    private String                               oceanId;
    private List                     instanceIds;
    private List                   launchSpecIds;
    private String                             createdAt;
    private String                             updatedAt;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public String getId() {
        return id;
    }

    public void setId(String id) {
        isSet.add("id");
        this.id = id;
    }

    public Integer getCurrentBatch() {
        return currentBatch;
    }

    public void setCurrentBatch(Integer currentBatch) {
        isSet.add("currentBatch");
        this.currentBatch = currentBatch;
    }

    public Integer getNumOfBatches() {
        return numOfBatches;
    }

    public void setNumOfBatches(Integer numOfBatches) {
        isSet.add("numOfBatches");
        this.numOfBatches = numOfBatches;
    }

    public k8sClusterRollStatusEnum getStatus() {
        return status;
    }

    public void setStatus(k8sClusterRollStatusEnum status) {
        isSet.add("status");
        this.status = status;
    }

    public String getComment() {
        return comment;
    }

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

    public Integer getBatchMinHealthyPercentage() {
        return batchMinHealthyPercentage;
    }

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

    public String getOceanId() {
        return oceanId;
    }

    public void setOceanId(String oceanId) {
        isSet.add("oceanId");
        this.oceanId = oceanId;
    }

    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 EcsInitiateRollProgress getProgress() {
        return progress;
    }

    public void setProgress(EcsInitiateRollProgress progress) {
        isSet.add("progress");
        this.progress = progress;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        isSet.add("createdAt");
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        isSet.add("updatedAt");
        this.updatedAt = updatedAt;
    }

    public static class Builder {
        private EcsClusterRollResponse initiateRollResponse;

        private Builder() {
            this.initiateRollResponse = new EcsClusterRollResponse();
        }

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

        public Builder setId(final String id) {
            initiateRollResponse.setId(id);
            return this;
        }

        public Builder setStatus(final k8sClusterRollStatusEnum status) {
            initiateRollResponse.setStatus(status);
            return this;
        }


        public Builder setCurrentBatch(final Integer currentBatch) {
            initiateRollResponse.setCurrentBatch(currentBatch);
            return this;
        }

        public Builder setNumOfBatches(final Integer numOfBatches) {
            initiateRollResponse.setNumOfBatches(numOfBatches);
            return this;
        }

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

        public Builder setProgress(final EcsInitiateRollProgress progress) {
            initiateRollResponse.setProgress(progress);
            return this;
        }

        public Builder setOceanId(final String oceanId) {
            initiateRollResponse.setOceanId(oceanId);
            return this;
        }

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

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

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

        public Builder setCreatedAt(final String createdAt) {
            initiateRollResponse.setCreatedAt(createdAt);
            return this;
        }

        public Builder setUpdatedAt(final String updatedAt) {
            initiateRollResponse.setUpdatedAt(updatedAt);
            return this;
        }

        public EcsClusterRollResponse build() {
            return initiateRollResponse;
        }
    }

    @JsonIgnore
    public boolean isIdSet() {
        return isSet.contains("id");
    }

    @JsonIgnore
    public boolean isStatusSet() {
        return isSet.contains("status");
    }

    @JsonIgnore
    public boolean isCurrentBatchSet() {
        return isSet.contains("currentBatch");
    }

    @JsonIgnore
    public boolean isNumOfBatchesSet() {
        return isSet.contains("numOfBatches");
    }

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

    @JsonIgnore
    public boolean isProgressSet() {
        return isSet.contains("progress");
    }

    @JsonIgnore
    public boolean isOceanIdSet() {
        return isSet.contains("oceanId");
    }

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

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

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

    @JsonIgnore
    public boolean isCreatedAtSet() {
        return isSet.contains("createdAt");
    }

    @JsonIgnore
    public boolean isUpdatedAtSet() {
        return isSet.contains("updatedAt");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy