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

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

There is a newer version: 0.2.12
Show newest version

package io.alauda.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.alauda.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({
    "apiVersion",
    "kind",
    "metadata",
    "clusterIP",
    "externalIPs",
    "externalName",
    "externalTrafficPolicy",
    "healthCheckNodePort",
    "loadBalancerIP",
    "loadBalancerSourceRanges",
    "ports",
    "selector",
    "sessionAffinity",
    "type"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.alauda.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class ServiceSpec implements KubernetesResource
{

    /**
     * 
     * 
     */
    @JsonProperty("clusterIP")
    private java.lang.String clusterIP;
    /**
     * 
     * 
     */
    @JsonProperty("externalIPs")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @Valid
    private List externalIPs = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("externalName")
    private java.lang.String externalName;
    /**
     * 
     * 
     */
    @JsonProperty("externalTrafficPolicy")
    private java.lang.String externalTrafficPolicy;
    /**
     * 
     * 
     */
    @JsonProperty("healthCheckNodePort")
    private Integer healthCheckNodePort;
    /**
     * 
     * 
     */
    @JsonProperty("loadBalancerIP")
    private java.lang.String loadBalancerIP;
    /**
     * 
     * 
     */
    @JsonProperty("loadBalancerSourceRanges")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @Valid
    private List loadBalancerSourceRanges = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("ports")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @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 healthCheckNodePort
     * @param externalIPs
     * @param loadBalancerIP
     * @param externalName
     * @param sessionAffinity
     * @param loadBalancerSourceRanges
     * @param externalTrafficPolicy
     * @param selector
     * @param ports
     * @param type
     * @param clusterIP
     */
    public ServiceSpec(java.lang.String clusterIP, List externalIPs, java.lang.String externalName, java.lang.String externalTrafficPolicy, Integer healthCheckNodePort, java.lang.String loadBalancerIP, List loadBalancerSourceRanges, List ports, Map selector, java.lang.String sessionAffinity, java.lang.String type) {
        this.clusterIP = clusterIP;
        this.externalIPs = externalIPs;
        this.externalName = externalName;
        this.externalTrafficPolicy = externalTrafficPolicy;
        this.healthCheckNodePort = healthCheckNodePort;
        this.loadBalancerIP = loadBalancerIP;
        this.loadBalancerSourceRanges = loadBalancerSourceRanges;
        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 externalIPs
     */
    @JsonProperty("externalIPs")
    public List getExternalIPs() {
        return externalIPs;
    }

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

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

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

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

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

    /**
     * 
     * 
     * @return
     *     The healthCheckNodePort
     */
    @JsonProperty("healthCheckNodePort")
    public Integer getHealthCheckNodePort() {
        return healthCheckNodePort;
    }

    /**
     * 
     * 
     * @param healthCheckNodePort
     *     The healthCheckNodePort
     */
    @JsonProperty("healthCheckNodePort")
    public void setHealthCheckNodePort(Integer healthCheckNodePort) {
        this.healthCheckNodePort = healthCheckNodePort;
    }

    /**
     * 
     * 
     * @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 loadBalancerSourceRanges
     */
    @JsonProperty("loadBalancerSourceRanges")
    public List getLoadBalancerSourceRanges() {
        return loadBalancerSourceRanges;
    }

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

    /**
     * 
     * 
     * @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 - 2024 Weber Informatics LLC | Privacy Policy