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

com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.DetachVmsResponseAzure 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 java.util.HashSet;
import java.util.List;
import java.util.Set;

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

    @JsonIgnore
    private Set                                 isSet;
    private List     detachedVms;
    private List          newVmsAzure;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public List getDetachedVms() {
        return detachedVms;
    }

    public void setDetachedVms(List detachedVms) {
        isSet.add("detachedVms");
        this.detachedVms = detachedVms;
    }

    public List getNewVmsAzure() {
        return newVmsAzure;
    }

    public void setNewVmsAzure(List newVmsAzure) {
        isSet.add("newVmsAzure");
        this.newVmsAzure = newVmsAzure;
    }

    public static class Builder {
        private DetachVmsResponseAzure detachVms;

        private Builder() {
            this.detachVms = new DetachVmsResponseAzure();
        }

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

        public Builder setDetachedVms(final List detachedVms) {
            detachVms.setDetachedVms(detachedVms);
            return this;
        }

        public Builder setNewVmsAzure(final List newVmsAzure) {
            detachVms.setNewVmsAzure(newVmsAzure);
            return this;
        }

        public DetachVmsResponseAzure build() {
            return detachVms;
        }

    }


    @JsonIgnore
    public boolean isDetachedVmsSet() {
        return isSet.contains("detachedVms");
    }

    @JsonIgnore
    public boolean isNewVmsAzureSet() {
        return isSet.contains("newVmsAzure");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy