io.fabric8.openshift.api.model.RouteSpec Maven / Gradle / Ivy
The newest version!
package io.fabric8.openshift.api.model;
import java.util.HashMap;
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.fabric8.kubernetes.api.model.ObjectReference;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"host",
"path",
"tls",
"to"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class RouteSpec {
/**
* optional: alias/dns that points to the service
*
*/
@JsonProperty("host")
private String host;
/**
* optional: path that the router watches to route traffic to the service
*
*/
@JsonProperty("path")
private String path;
/**
*
*
*/
@JsonProperty("tls")
@Valid
private TLSConfig tls;
/**
*
*
*/
@JsonProperty("to")
@Valid
private ObjectReference to;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public RouteSpec() {
}
/**
*
* @param to
* @param host
* @param tls
* @param path
*/
public RouteSpec(String host, String path, TLSConfig tls, ObjectReference to) {
this.host = host;
this.path = path;
this.tls = tls;
this.to = to;
}
/**
* optional: alias/dns that points to the service
*
* @return
* The host
*/
@JsonProperty("host")
public String getHost() {
return host;
}
/**
* optional: alias/dns that points to the service
*
* @param host
* The host
*/
@JsonProperty("host")
public void setHost(String host) {
this.host = host;
}
/**
* optional: path that the router watches to route traffic to the service
*
* @return
* The path
*/
@JsonProperty("path")
public String getPath() {
return path;
}
/**
* optional: path that the router watches to route traffic to the service
*
* @param path
* The path
*/
@JsonProperty("path")
public void setPath(String path) {
this.path = path;
}
/**
*
*
* @return
* The tls
*/
@JsonProperty("tls")
public TLSConfig getTls() {
return tls;
}
/**
*
*
* @param tls
* The tls
*/
@JsonProperty("tls")
public void setTls(TLSConfig tls) {
this.tls = tls;
}
/**
*
*
* @return
* The to
*/
@JsonProperty("to")
public ObjectReference getTo() {
return to;
}
/**
*
*
* @param to
* The to
*/
@JsonProperty("to")
public void setTo(ObjectReference to) {
this.to = to;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(host).append(path).append(tls).append(to).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof RouteSpec) == false) {
return false;
}
RouteSpec rhs = ((RouteSpec) other);
return new EqualsBuilder().append(host, rhs.host).append(path, rhs.path).append(tls, rhs.tls).append(to, rhs.to).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy