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

com.spotinst.sdkjava.model.bl.ocean.aks.DetachedVms Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.ocean.aks;
import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class DetachedVms {
    @JsonIgnore
    private Set              isSet;
    private String                  vmName;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public String getVmName() {
        return vmName;
    }

    public void setVmName(String vmName) {
        isSet.add("vmName");
        this.vmName = vmName;
    }

    public static class Builder {
        private DetachedVms detachInstances;

        private Builder() {
            this.detachInstances = new DetachedVms();
        }

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

        public Builder setVmName(final String vmName) {
            detachInstances.setVmName(vmName);
            return this;
        }

        public DetachedVms build() {
            return detachInstances;
        }
    }

    @JsonIgnore
    public boolean isVmNameSet() {
        return isSet.contains("vmName");
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy