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

com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.GetElastigroupStatusResponseAzure Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.enums.ElastigroupStatusEnumAzure;

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

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

    @JsonIgnore
    private Set                                 isSet;
    private ElastigroupStatusEnumAzure                  status;
    private List  suspendedProcesses;
    private List            vms;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public ElastigroupStatusEnumAzure getStatus() {
        return status;
    }

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

    public List getSuspendedProcesses() {
        return suspendedProcesses;
    }

    public void setSuspendedProcesses(List suspendedProcesses) {
        isSet.add("suspendedProcesses");
        this.suspendedProcesses = suspendedProcesses;
    }

    public List getVms() {
        return vms;
    }

    public void setVms(List vms) {
        isSet.add("vms");
        this.vms = vms;
    }

    public static class Builder {
        private GetElastigroupStatusResponseAzure elastigroupStatusAzure;

        private Builder() {
            this.elastigroupStatusAzure = new GetElastigroupStatusResponseAzure();
        }

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

        public Builder setStatus(final ElastigroupStatusEnumAzure status) {
            elastigroupStatusAzure.setStatus(status);
            return this;
        }

        public Builder setSuspendedProcesses(final List suspendedProcesses) {
            elastigroupStatusAzure.setSuspendedProcesses(suspendedProcesses);
            return this;
        }

        public Builder setVms(final List vms) {
            elastigroupStatusAzure.setVms(vms);
            return this;
        }

        public GetElastigroupStatusResponseAzure build() {
            return elastigroupStatusAzure;
        }

    }


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

    @JsonIgnore
    public boolean isSuspendedProcessesSet() {
        return isSet.contains("suspendedProcesses");
    }

    @JsonIgnore
    public boolean isVmsSet() {
        return isSet.contains("vms");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy