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

com.spotinst.sdkjava.model.bl.oceanCD.response.ClusterControllerInfo Maven / Gradle / Ivy

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

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 ClusterControllerInfo {
    @JsonIgnore
    private Set            isSet;
    private String                 nodeName;
    private String                 controllerVersion;
    private String                 podName;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        isSet.add("nodeName");
        this.nodeName = nodeName;
    }

    public String getControllerVersion() {
        return controllerVersion;
    }

    public void setControllerVersion(String controllerVersion) {
        isSet.add("controllerVersion");
        this.controllerVersion = controllerVersion;
    }

    public String getPodName() {
        return podName;
    }

    public void setPodName(String podName) {
        isSet.add("podName");
        this.podName = podName;
    }

    public static class Builder {
        private ClusterControllerInfo clusterControllerInfo;

        private Builder() {
            this.clusterControllerInfo = new ClusterControllerInfo();
        }

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

        public Builder setNodeName(final String nodeName) {
            clusterControllerInfo.setNodeName(nodeName);
            return this;
        }

        public Builder setControllerVersion(final String controllerVersion) {
            clusterControllerInfo.setControllerVersion(controllerVersion);
            return this;
        }

        public Builder setPodName(final String podName) {
            clusterControllerInfo.setPodName(podName);
            return this;
        }

        public ClusterControllerInfo build() {
            return clusterControllerInfo;
        }
    }

    @JsonIgnore
    public boolean isNodeNameSet() {
        return isSet.contains("nodeName");
    }

    @JsonIgnore
    public boolean isControllerVersionSet() {
        return isSet.contains("controllerVersion");
    }

    @JsonIgnore
    public boolean isPodNameSet() {
        return isSet.contains("podName");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy