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

com.spotinst.sdkjava.model.bl.ocean.gke.ClusterAliasIpRangesSpecification 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;

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

    @JsonIgnore
    private Set isSet;
    private String      ipCidrRange;
    private String      subnetworkRangeName;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public String getIpCidrRange() {
        return ipCidrRange;
    }

    public void setIpCidrRange(String ipCidrRange) {
        isSet.add("ipCidrRange");
        this.ipCidrRange = ipCidrRange;
    }

    public String getSubnetworkRangeName() {
        return subnetworkRangeName;
    }

    public void setSubnetworkRangeName(String subnetworkRangeName) {
        isSet.add("subnetworkRangeName");
        this.subnetworkRangeName = subnetworkRangeName;
    }

    public static class Builder {
        private ClusterAliasIpRangesSpecification aliasIpRanges;

        private Builder() {
            this.aliasIpRanges = new ClusterAliasIpRangesSpecification();
        }

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

        public Builder setIpCidrRange(final String ipCidrRange) {
            aliasIpRanges.setIpCidrRange(ipCidrRange);
            return this;
        }

        public Builder setSubnetworkRangeName(final String subnetworkRangeName) {
            aliasIpRanges.setSubnetworkRangeName(subnetworkRangeName);
            return this;
        }

        public ClusterAliasIpRangesSpecification build() {
            return aliasIpRanges;
        }
    }

    @JsonIgnore
    public boolean isIpCidrRangeSet() {
        return isSet.contains("ipCidrRange");
    }

    @JsonIgnore
    public boolean isSubNetworkRangeNameSet() {
        return isSet.contains("subnetworkRangeName");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy