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

com.spotinst.sdkjava.model.bl.ocean.kubernetes.K8sVngElasticIpPool Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class K8sVngElasticIpPool {

    @JsonIgnore
    private Set         isSet;
    private K8sVngTagSelector   tagSelector;

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

    public Set getIsSet() {
        return isSet;
    }

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

    public K8sVngTagSelector getTagSelector() {
        return tagSelector;
    }

    public void setTagSelector(K8sVngTagSelector tagSelector) {
        isSet.add("tagSelector");
        this.tagSelector = tagSelector;
    }

    public static class Builder {
        private K8sVngElasticIpPool elasticIpPool;

        public Builder() {
            this.elasticIpPool = new K8sVngElasticIpPool();
        }

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

        public Builder setTagSelector(K8sVngTagSelector tagSelector) {
            elasticIpPool.setTagSelector(tagSelector);
            return this;
        }

        public K8sVngElasticIpPool build() {
            return elasticIpPool;
        }
    }

    @JsonIgnore
    public boolean isTagSelectorSet() {
        return isSet.contains("tagSelector");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy