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

com.spotinst.sdkjava.model.bl.elastigroup.aws.ElastigroupDeploymentStatusInstancesGreen Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

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

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ElastigroupDeploymentStatusInstancesGreen {

    @JsonIgnore
    private Set isSet;
    private String      instanceId;
    private String      lifeCycle;
    private Integer     batchNum;
    private String      status;

    public ElastigroupDeploymentStatusInstancesGreen() {
        isSet = new HashSet<>();
    }

    public Set getIsSet() {
        return isSet;
    }

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

    public String getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(String instanceId) {
        isSet.add("instanceId");
        this.instanceId = instanceId;
    }

    public String getLifeCycle() {
        return lifeCycle;
    }

    public void setLifeCycle(String lifeCycle) {
        isSet.add("lifeCycle");
        this.lifeCycle = lifeCycle;
    }

    public Integer getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(Integer batchNum) {
        isSet.add("batchNum");
        this.batchNum = batchNum;
    }

    public String getStatus() {
        return status;
    }

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


    public static class Builder {
        private ElastigroupDeploymentStatusInstancesGreen elastigroupGetDeploymentStatusInstancesGreen;

        private Builder() {
            this.elastigroupGetDeploymentStatusInstancesGreen = new ElastigroupDeploymentStatusInstancesGreen();
        }

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

        public Builder setInstanceId(final String instanceId) {
            elastigroupGetDeploymentStatusInstancesGreen.setInstanceId(instanceId);
            return this;
        }

        public Builder setLifeCycle(final String lifeCycle) {
            elastigroupGetDeploymentStatusInstancesGreen.setLifeCycle(lifeCycle);
            return this;
        }

        public Builder setBatchNum(final Integer batchNum) {
            elastigroupGetDeploymentStatusInstancesGreen.setBatchNum(batchNum);
            return this;
        }

        public Builder setStatus(final String status) {
            elastigroupGetDeploymentStatusInstancesGreen.setStatus(status);
            return this;
        }


        public ElastigroupDeploymentStatusInstancesGreen build() {
            return elastigroupGetDeploymentStatusInstancesGreen;
        }

    }

    @JsonIgnore
    public boolean isInstanceIdSet() {
        return isSet.contains("instanceId");
    }

    @JsonIgnore
    public boolean isLifeCycleSet() {
        return isSet.contains("lifeCycle");
    }

    @JsonIgnore
    public boolean isBatchNumSet() {
        return isSet.contains("batchNum");
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy