me.snowdrop.istio.adapter.dogstatsd.MetricInfo Maven / Gradle / Ivy
package me.snowdrop.istio.adapter.dogstatsd;
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",
"name",
"tags",
"type"
})
@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 MetricInfo implements Serializable
{
/**
*
*
*/
@JsonProperty("name")
@JsonPropertyDescription("")
private java.lang.String name;
/**
*
*
*/
@JsonProperty("tags")
@JsonPropertyDescription("")
@Valid
private Map tags;
@JsonProperty("type")
private Type type;
@JsonIgnore
@Valid
private Map additionalProperties = new HashMap();
private final static long serialVersionUID = 5494940816371593942L;
/**
* No args constructor for use in serialization
*
*/
public MetricInfo() {
}
/**
*
* @param name
* @param type
* @param tags
*/
public MetricInfo(java.lang.String name, Map tags, Type type) {
super();
this.name = name;
this.tags = tags;
this.type = type;
}
/**
*
*
*/
@JsonProperty("name")
public java.lang.String getName() {
return name;
}
/**
*
*
*/
@JsonProperty("name")
public void setName(java.lang.String name) {
this.name = name;
}
/**
*
*
*/
@JsonProperty("tags")
public Map getTags() {
return tags;
}
/**
*
*
*/
@JsonProperty("tags")
public void setTags(Map tags) {
this.tags = tags;
}
@JsonProperty("type")
public Type getType() {
return type;
}
@JsonProperty("type")
public void setType(Type type) {
this.type = type;
}
@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