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

me.snowdrop.istio.api.model.v1.networking.ServiceEntry Maven / Gradle / Ivy


package me.snowdrop.istio.api.model.v1.networking;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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.JsonPropertyDescription;
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;
import me.snowdrop.istio.api.internal.IstioKind;
import me.snowdrop.istio.api.model.IstioSpec;


/**
 * 
 * 
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
    "apiVersion",
    "kind",
    "metadata",
    "addresses",
    "endpoints",
    "hosts",
    "location",
    "ports",
    "resolution"
})
@IstioKind(name = "ServiceEntry")
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class ServiceEntry implements Serializable, IstioSpec
{

    /**
     * 
     * 
     */
    @JsonProperty("addresses")
    @JsonPropertyDescription("")
    @Valid
    private List addresses = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("endpoints")
    @JsonPropertyDescription("")
    @Valid
    private List endpoints = new ArrayList();
    /**
     * 
     * 
     */
    @JsonProperty("hosts")
    @JsonPropertyDescription("")
    @Valid
    private List hosts = new ArrayList();
    @JsonProperty("location")
    private ServiceEntryLocation location;
    /**
     * 
     * 
     */
    @JsonProperty("ports")
    @JsonPropertyDescription("")
    @Valid
    private List ports = new ArrayList();
    @JsonProperty("resolution")
    private ServiceEntryResolution resolution;
    @JsonIgnore
    @Valid
    private Map additionalProperties = new HashMap();
    private final static long serialVersionUID = 7193829028812770645L;

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

    /**
     * 
     * @param addresses
     * @param endpoints
     * @param hosts
     * @param location
     * @param ports
     * @param resolution
     */
    public ServiceEntry(List addresses, List endpoints, List hosts, ServiceEntryLocation location, List ports, ServiceEntryResolution resolution) {
        super();
        this.addresses = addresses;
        this.endpoints = endpoints;
        this.hosts = hosts;
        this.location = location;
        this.ports = ports;
        this.resolution = resolution;
    }

    /**
     * 
     * 
     */
    @JsonProperty("addresses")
    public List getAddresses() {
        return addresses;
    }

    /**
     * 
     * 
     */
    @JsonProperty("addresses")
    public void setAddresses(List addresses) {
        this.addresses = addresses;
    }

    /**
     * 
     * 
     */
    @JsonProperty("endpoints")
    public List getEndpoints() {
        return endpoints;
    }

    /**
     * 
     * 
     */
    @JsonProperty("endpoints")
    public void setEndpoints(List endpoints) {
        this.endpoints = endpoints;
    }

    /**
     * 
     * 
     */
    @JsonProperty("hosts")
    public List getHosts() {
        return hosts;
    }

    /**
     * 
     * 
     */
    @JsonProperty("hosts")
    public void setHosts(List hosts) {
        this.hosts = hosts;
    }

    @JsonProperty("location")
    public ServiceEntryLocation getLocation() {
        return location;
    }

    @JsonProperty("location")
    public void setLocation(ServiceEntryLocation location) {
        this.location = location;
    }

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

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

    @JsonProperty("resolution")
    public ServiceEntryResolution getResolution() {
        return resolution;
    }

    @JsonProperty("resolution")
    public void setResolution(ServiceEntryResolution resolution) {
        this.resolution = resolution;
    }

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy