me.snowdrop.istio.api.model.v1.networking.VirtualService 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",
"gateways",
"hosts",
"http",
"tcp"
})
@IstioKind(name = "VirtualService")
@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 VirtualService implements Serializable, IstioSpec
{
/**
*
*
*/
@JsonProperty("gateways")
@JsonPropertyDescription("")
@Valid
private List gateways = new ArrayList();
/**
*
*
*/
@JsonProperty("hosts")
@JsonPropertyDescription("")
@Valid
private List hosts = new ArrayList();
/**
*
*
*/
@JsonProperty("http")
@JsonPropertyDescription("")
@Valid
private List http = new ArrayList();
/**
*
*
*/
@JsonProperty("tcp")
@JsonPropertyDescription("")
@Valid
private List tcp = new ArrayList();
@JsonIgnore
@Valid
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -2601474247500295058L;
/**
* No args constructor for use in serialization
*
*/
public VirtualService() {
}
/**
*
* @param tcp
* @param gateways
* @param hosts
* @param http
*/
public VirtualService(List gateways, List hosts, List http, List tcp) {
super();
this.gateways = gateways;
this.hosts = hosts;
this.http = http;
this.tcp = tcp;
}
/**
*
*
*/
@JsonProperty("gateways")
public List getGateways() {
return gateways;
}
/**
*
*
*/
@JsonProperty("gateways")
public void setGateways(List gateways) {
this.gateways = gateways;
}
/**
*
*
*/
@JsonProperty("hosts")
public List getHosts() {
return hosts;
}
/**
*
*
*/
@JsonProperty("hosts")
public void setHosts(List hosts) {
this.hosts = hosts;
}
/**
*
*
*/
@JsonProperty("http")
public List getHttp() {
return http;
}
/**
*
*
*/
@JsonProperty("http")
public void setHttp(List http) {
this.http = http;
}
/**
*
*
*/
@JsonProperty("tcp")
public List getTcp() {
return tcp;
}
/**
*
*
*/
@JsonProperty("tcp")
public void setTcp(List tcp) {
this.tcp = tcp;
}
@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