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

io.fabric8.kubernetes.api.model.ServiceSpec Maven / Gradle / Ivy


package io.fabric8.kubernetes.api.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.fabric8.kubernetes.api.model.Doneable;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;


/**
 * 
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "clusterIP",
    "deprecatedPublicIPs",
    "externalIPs",
    "loadBalancerIP",
    "portalIP",
    "ports",
    "selector",
    "sessionAffinity",
    "type"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = true, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class ServiceSpec {

    /**
     * 
     * 
     */
    @JsonProperty("clusterIP")
    private java.lang.String clusterIP;
    /**
     * 
     * 
     */
    @JsonProperty("deprecatedPublicIPs")
    @Valid
    private List deprecatedPublicIPs = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("externalIPs")
    @Valid
    private List externalIPs = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("loadBalancerIP")
    private java.lang.String loadBalancerIP;
    /**
     * 
     * 
     */
    @JsonProperty("portalIP")
    private java.lang.String portalIP;
    /**
     * 
     * 
     */
    @JsonProperty("ports")
    @Valid
    private List ports = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("selector")
    @Valid
    private Map selector;
    /**
     * 
     * 
     */
    @JsonProperty("sessionAffinity")
    private java.lang.String sessionAffinity;
    /**
     * 
     * 
     */
    @JsonProperty("type")
    private java.lang.String type;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * No args constructor for use in serialization
     * 
     */
    public ServiceSpec() {
    }

    /**
     * 
     * @param portalIP
     * @param externalIPs
     * @param loadBalancerIP
     * @param deprecatedPublicIPs
     * @param sessionAffinity
     * @param selector
     * @param ports
     * @param type
     * @param clusterIP
     */
    public ServiceSpec(java.lang.String clusterIP, List deprecatedPublicIPs, List externalIPs, java.lang.String loadBalancerIP, java.lang.String portalIP, List ports, Map selector, java.lang.String sessionAffinity, java.lang.String type) {
        this.clusterIP = clusterIP;
        this.deprecatedPublicIPs = deprecatedPublicIPs;
        this.externalIPs = externalIPs;
        this.loadBalancerIP = loadBalancerIP;
        this.portalIP = portalIP;
        this.ports = ports;
        this.selector = selector;
        this.sessionAffinity = sessionAffinity;
        this.type = type;
    }

    /**
     * 
     * 
     * @return
     *     The clusterIP
     */
    @JsonProperty("clusterIP")
    public java.lang.String getClusterIP() {
        return clusterIP;
    }

    /**
     * 
     * 
     * @param clusterIP
     *     The clusterIP
     */
    @JsonProperty("clusterIP")
    public void setClusterIP(java.lang.String clusterIP) {
        this.clusterIP = clusterIP;
    }

    /**
     * 
     * 
     * @return
     *     The deprecatedPublicIPs
     */
    @JsonProperty("deprecatedPublicIPs")
    public List getDeprecatedPublicIPs() {
        return deprecatedPublicIPs;
    }

    /**
     * 
     * 
     * @param deprecatedPublicIPs
     *     The deprecatedPublicIPs
     */
    @JsonProperty("deprecatedPublicIPs")
    public void setDeprecatedPublicIPs(List deprecatedPublicIPs) {
        this.deprecatedPublicIPs = deprecatedPublicIPs;
    }

    /**
     * 
     * 
     * @return
     *     The externalIPs
     */
    @JsonProperty("externalIPs")
    public List getExternalIPs() {
        return externalIPs;
    }

    /**
     * 
     * 
     * @param externalIPs
     *     The externalIPs
     */
    @JsonProperty("externalIPs")
    public void setExternalIPs(List externalIPs) {
        this.externalIPs = externalIPs;
    }

    /**
     * 
     * 
     * @return
     *     The loadBalancerIP
     */
    @JsonProperty("loadBalancerIP")
    public java.lang.String getLoadBalancerIP() {
        return loadBalancerIP;
    }

    /**
     * 
     * 
     * @param loadBalancerIP
     *     The loadBalancerIP
     */
    @JsonProperty("loadBalancerIP")
    public void setLoadBalancerIP(java.lang.String loadBalancerIP) {
        this.loadBalancerIP = loadBalancerIP;
    }

    /**
     * 
     * 
     * @return
     *     The portalIP
     */
    @JsonProperty("portalIP")
    public java.lang.String getPortalIP() {
        return portalIP;
    }

    /**
     * 
     * 
     * @param portalIP
     *     The portalIP
     */
    @JsonProperty("portalIP")
    public void setPortalIP(java.lang.String portalIP) {
        this.portalIP = portalIP;
    }

    /**
     * 
     * 
     * @return
     *     The ports
     */
    @JsonProperty("ports")
    public List getPorts() {
        return ports;
    }

    /**
     * 
     * 
     * @param ports
     *     The ports
     */
    @JsonProperty("ports")
    public void setPorts(List ports) {
        this.ports = ports;
    }

    /**
     * 
     * 
     * @return
     *     The selector
     */
    @JsonProperty("selector")
    public Map getSelector() {
        return selector;
    }

    /**
     * 
     * 
     * @param selector
     *     The selector
     */
    @JsonProperty("selector")
    public void setSelector(Map selector) {
        this.selector = selector;
    }

    /**
     * 
     * 
     * @return
     *     The sessionAffinity
     */
    @JsonProperty("sessionAffinity")
    public java.lang.String getSessionAffinity() {
        return sessionAffinity;
    }

    /**
     * 
     * 
     * @param sessionAffinity
     *     The sessionAffinity
     */
    @JsonProperty("sessionAffinity")
    public void setSessionAffinity(java.lang.String sessionAffinity) {
        this.sessionAffinity = sessionAffinity;
    }

    /**
     * 
     * 
     * @return
     *     The type
     */
    @JsonProperty("type")
    public java.lang.String getType() {
        return type;
    }

    /**
     * 
     * 
     * @param type
     *     The type
     */
    @JsonProperty("type")
    public void setType(java.lang.String type) {
        this.type = type;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(java.lang.String name, Object value) {
        this.additionalProperties.put(name, value);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy