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

com.spotinst.sdkjava.model.bl.ocean.gke.ClusterNetworkInterfacesConfiguration Maven / Gradle / Ivy

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

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;
import java.util.List;

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

    @JsonIgnore
    private Set                                 isSet;
    private String                                      network;
    private String                                      projectId;
    private List     accessConfigs;
    private List     aliasIpRanges;

    //region Constructors
    private ClusterNetworkInterfacesConfiguration() {
        isSet = new HashSet<>();
    }

    //region Getters & Setters
    public Set getIsSet() {
        return isSet;
    }

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

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        isSet.add("projectId");
        this.projectId = projectId;
    }

    public String getNetwork() {
        return network;
    }

    public void setNetwork(String network) {
        isSet.add("network");
        this.network = network;
    }

    public List  getAccessConfigs() {
        return accessConfigs;
    }

    public void setAccessConfigs(List  accessConfigs) {
        isSet.add("accessConfigs");
        this.accessConfigs = accessConfigs;
    }

    public List getAliasIpRanges() {
        return aliasIpRanges;
    }

    public void setAliasIpRanges(List aliasIpRanges) {
        isSet.add("aliasIpRanges");
        this.aliasIpRanges = aliasIpRanges;
    }
    //endregion

    //region Builder class
    public static class Builder {
        private ClusterNetworkInterfacesConfiguration networkInterfaces;

        private Builder() {
            this.networkInterfaces = new ClusterNetworkInterfacesConfiguration();
        }

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

        public Builder setNetwork(final String networkType) {
            networkInterfaces.setNetwork(networkType);
            return this;
        }

        public Builder setProjectId(final String projectIdType) {
            networkInterfaces.setProjectId(projectIdType);
            return this;
        }

        public Builder setAccessConfigs(final List accessConfigs) {
            networkInterfaces.setAccessConfigs(accessConfigs);
            return this;
        }

        public Builder setAliasIpRanges(final List aliasIpRanges) {
            networkInterfaces.setAliasIpRanges(aliasIpRanges);
            return this;
        }
        public ClusterNetworkInterfacesConfiguration build() {
            return networkInterfaces;
        }
    }
    //endregion

    @JsonIgnore
    public boolean isNetworkSet() { return isSet.contains("network"); }

    @JsonIgnore
    public boolean isProjectIdSet() { return isSet.contains("projectId"); }

    @JsonIgnore
    public boolean isAccessConfigsSet() { return isSet.contains("accessConfigs"); }

    @JsonIgnore
    public boolean isAliasIpRangesSet() { return isSet.contains("aliasIpRanges"); }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy