me.snowdrop.istio.api.model.v1.routing.DestinationWeight 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",
"destination",
"labels",
"weight"
})
@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 DestinationWeight implements Serializable
{
/**
*
*
*/
@JsonProperty("destination")
@JsonPropertyDescription("")
@Valid
private IstioService destination;
/**
*
*
*/
@JsonProperty("labels")
@JsonPropertyDescription("")
@Valid
private Map labels;
/**
*
*
*/
@JsonProperty("weight")
@JsonPropertyDescription("")
private Integer weight;
@JsonIgnore
@Valid
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = -8527758748212699251L;
/**
* No args constructor for use in serialization
*
*/
public DestinationWeight() {
}
/**
*
* @param destination
* @param weight
* @param labels
*/
public DestinationWeight(IstioService destination, Map labels, Integer weight) {
super();
this.destination = destination;
this.labels = labels;
this.weight = weight;
}
/**
*
*
*/
@JsonProperty("destination")
public IstioService getDestination() {
return destination;
}
/**
*
*
*/
@JsonProperty("destination")
public void setDestination(IstioService destination) {
this.destination = destination;
}
/**
*
*
*/
@JsonProperty("labels")
public Map getLabels() {
return labels;
}
/**
*
*
*/
@JsonProperty("labels")
public void setLabels(Map labels) {
this.labels = labels;
}
/**
*
*
*/
@JsonProperty("weight")
public Integer getWeight() {
return weight;
}
/**
*
*
*/
@JsonProperty("weight")
public void setWeight(Integer weight) {
this.weight = weight;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy