me.snowdrop.istio.api.networking.v1alpha3.VirtualServiceSpec Maven / Gradle / Ivy
package me.snowdrop.istio.api.networking.v1alpha3;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
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 io.fabric8.kubernetes.api.model.Doneable;
import io.fabric8.kubernetes.api.model.ObjectMeta;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import io.sundr.builder.annotations.Inline;
import io.sundr.transform.annotations.VelocityTransformation;
import io.sundr.transform.annotations.VelocityTransformations;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import me.snowdrop.istio.api.IstioSpec;
import me.snowdrop.istio.api.internal.IstioApiVersion;
import me.snowdrop.istio.api.internal.IstioKind;
/**
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"exportTo",
"gateways",
"hosts",
"http",
"tcp",
"tls"
})
@IstioKind(name = "VirtualService", plural = "virtualservices")
@IstioApiVersion("networking.istio.io/v1alpha3")
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", inline = {
@Inline(type = Doneable.class, prefix = "Doneable", value = "done")
}, refs = {
@BuildableReference(ObjectMeta.class)
})
@VelocityTransformations({
@VelocityTransformation("/istio-resource.vm"),
@VelocityTransformation("/istio-resource-list.vm"),
@VelocityTransformation(value = "/istio-manifest.vm", outputPath = "crd.properties", gather = true),
@VelocityTransformation(value = "/istio-mappings-provider.vm", outputPath = "me/snowdrop/istio/api/model/IstioResourceMappingsProvider.java", gather = true)
})
public class VirtualServiceSpec implements Serializable, IstioSpec
{
/**
*
*/
@JsonProperty("exportTo")
@JsonPropertyDescription("")
private List exportTo = new ArrayList();
/**
*
*/
@JsonProperty("gateways")
@JsonPropertyDescription("")
private List gateways = new ArrayList();
/**
*
*/
@JsonProperty("hosts")
@JsonPropertyDescription("")
private List hosts = new ArrayList();
/**
*
*/
@JsonProperty("http")
@JsonPropertyDescription("")
private List http = new ArrayList();
/**
*
*/
@JsonProperty("tcp")
@JsonPropertyDescription("")
private List tcp = new ArrayList();
/**
*
*/
@JsonProperty("tls")
@JsonPropertyDescription("")
private List tls = new ArrayList();
private final static long serialVersionUID = -1289114497819912083L;
/**
* No args constructor for use in serialization
*
*/
public VirtualServiceSpec() {
}
/**
*
* @param tcp
* @param gateways
* @param hosts
* @param http
* @param tls
* @param exportTo
*/
public VirtualServiceSpec(List exportTo, List gateways, List hosts, List http, List tcp, List tls) {
super();
this.exportTo = exportTo;
this.gateways = gateways;
this.hosts = hosts;
this.http = http;
this.tcp = tcp;
this.tls = tls;
}
/**
*
*/
public List getExportTo() {
return exportTo;
}
/**
*
*/
public void setExportTo(List exportTo) {
this.exportTo = exportTo;
}
/**
*
*/
public List getGateways() {
return gateways;
}
/**
*
*/
public void setGateways(List gateways) {
this.gateways = gateways;
}
/**
*
*/
public List getHosts() {
return hosts;
}
/**
*
*/
public void setHosts(List hosts) {
this.hosts = hosts;
}
/**
*
*/
public List getHttp() {
return http;
}
/**
*
*/
public void setHttp(List http) {
this.http = http;
}
/**
*
*/
public List getTcp() {
return tcp;
}
/**
*
*/
public void setTcp(List tcp) {
this.tcp = tcp;
}
/**
*
*/
public List getTls() {
return tls;
}
/**
*
*/
public void setTls(List tls) {
this.tls = tls;
}
}