me.snowdrop.istio.api.model.v1.routing.IngressRule Maven / Gradle / Ivy
package me.snowdrop.istio.api.model.v1.routing;
import java.io.Serializable;
import java.util.HashMap;
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;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"DestinationServicePort",
"destination",
"match",
"port",
"precedence",
"tlsSecret"
})
@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 IngressRule implements Serializable
{
@JsonProperty("DestinationServicePort")
private Object destinationServicePort;
/**
*
*
*/
@JsonProperty("destination")
@JsonPropertyDescription("")
@Valid
private IstioService destination;
/**
*
*
*/
@JsonProperty("match")
@JsonPropertyDescription("")
@Valid
private MatchCondition match;
/**
*
*
*/
@JsonProperty("port")
@JsonPropertyDescription("")
private Integer port;
/**
*
*
*/
@JsonProperty("precedence")
@JsonPropertyDescription("")
private Integer precedence;
/**
*
*
*/
@JsonProperty("tlsSecret")
@JsonPropertyDescription("")
private String tlsSecret;
@JsonIgnore
@Valid
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 2323244834430803777L;
/**
* No args constructor for use in serialization
*
*/
public IngressRule() {
}
/**
*
* @param port
* @param tlsSecret
* @param destination
* @param match
* @param destinationServicePort
* @param precedence
*/
public IngressRule(Object destinationServicePort, IstioService destination, MatchCondition match, Integer port, Integer precedence, String tlsSecret) {
super();
this.destinationServicePort = destinationServicePort;
this.destination = destination;
this.match = match;
this.port = port;
this.precedence = precedence;
this.tlsSecret = tlsSecret;
}
@JsonProperty("DestinationServicePort")
public Object getDestinationServicePort() {
return destinationServicePort;
}
@JsonProperty("DestinationServicePort")
public void setDestinationServicePort(Object destinationServicePort) {
this.destinationServicePort = destinationServicePort;
}
/**
*
*
*/
@JsonProperty("destination")
public IstioService getDestination() {
return destination;
}
/**
*
*
*/
@JsonProperty("destination")
public void setDestination(IstioService destination) {
this.destination = destination;
}
/**
*
*
*/
@JsonProperty("match")
public MatchCondition getMatch() {
return match;
}
/**
*
*
*/
@JsonProperty("match")
public void setMatch(MatchCondition match) {
this.match = match;
}
/**
*
*
*/
@JsonProperty("port")
public Integer getPort() {
return port;
}
/**
*
*
*/
@JsonProperty("port")
public void setPort(Integer port) {
this.port = port;
}
/**
*
*
*/
@JsonProperty("precedence")
public Integer getPrecedence() {
return precedence;
}
/**
*
*
*/
@JsonProperty("precedence")
public void setPrecedence(Integer precedence) {
this.precedence = precedence;
}
/**
*
*
*/
@JsonProperty("tlsSecret")
public String getTlsSecret() {
return tlsSecret;
}
/**
*
*
*/
@JsonProperty("tlsSecret")
public void setTlsSecret(String tlsSecret) {
this.tlsSecret = tlsSecret;
}
@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