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

com.spotinst.sdkjava.model.ElastigroupGroupDeploymentStatusResponse Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.model.bl.elastigroup.aws.ElastigroupDeploymentProgress;

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

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

    @JsonIgnore
    private Set                   isSet;
    private String                        id;
    private String                        status;
    private ElastigroupDeploymentProgress progress;
    private Date                          createdAt;
    private Date                          updatedAt;

    public ElastigroupGroupDeploymentStatusResponse() {
        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 String getStatus() {
        return status;
    }

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

    public ElastigroupDeploymentProgress getProgress() {
        return progress;
    }

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

    public Date getCreatedAt() {
        return createdAt;
    }

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

    public Date getUpdatedAt() {
        return updatedAt;
    }

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

    public static class Builder {
        private ElastigroupGroupDeploymentStatusResponse getGroupDeploymentStatusResponse;

        private Builder() {
            this.getGroupDeploymentStatusResponse = new ElastigroupGroupDeploymentStatusResponse();
        }

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

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

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

        public Builder setProgress(final ElastigroupDeploymentProgress progress) {
            getGroupDeploymentStatusResponse.setProgress(progress);
            return this;
        }

        public Builder setCreatedAt(final Date createdAt) {
            getGroupDeploymentStatusResponse.setCreatedAt(createdAt);
            return this;
        }

        public Builder setUpdatedAt(final Date updatedAt) {
            getGroupDeploymentStatusResponse.setUpdatedAt(updatedAt);
            return this;
        }

        public ElastigroupGroupDeploymentStatusResponse build() {
            return getGroupDeploymentStatusResponse;
        }
    }

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy