me.snowdrop.istio.api.networking.v1beta1.Destination Maven / Gradle / Ivy
The newest version!
package me.snowdrop.istio.api.networking.v1beta1;
import java.io.Serializable;
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.ObjectMeta;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.BuildableReference;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"host",
"port",
"subset"
})
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", refs = {
@BuildableReference(ObjectMeta.class)
})
public class Destination implements Serializable
{
/**
*
*/
@JsonProperty("host")
@JsonPropertyDescription("")
private String host;
/**
*
*/
@JsonProperty("port")
@JsonPropertyDescription("")
private PortSelector port;
/**
*
*/
@JsonProperty("subset")
@JsonPropertyDescription("")
private String subset;
private final static long serialVersionUID = -8509658205277177451L;
/**
* No args constructor for use in serialization
*
*/
public Destination() {
}
/**
*
* @param port
* @param host
* @param subset
*/
public Destination(String host, PortSelector port, String subset) {
super();
this.host = host;
this.port = port;
this.subset = subset;
}
/**
*
*/
public String getHost() {
return host;
}
/**
*
*/
public void setHost(String host) {
this.host = host;
}
/**
*
*/
public PortSelector getPort() {
return port;
}
/**
*
*/
public void setPort(PortSelector port) {
this.port = port;
}
/**
*
*/
public String getSubset() {
return subset;
}
/**
*
*/
public void setSubset(String subset) {
this.subset = subset;
}
}