me.snowdrop.istio.mixer.adapter.circonus.MetricInfo Maven / Gradle / Ivy
The newest version!
package me.snowdrop.istio.mixer.adapter.circonus;
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",
"name",
"type"
})
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, generateBuilderPackage = true, builderPackage = "io.fabric8.kubernetes.api.builder", refs = {
@BuildableReference(ObjectMeta.class)
})
public class MetricInfo implements Serializable
{
/**
*
*/
@JsonProperty("name")
@JsonPropertyDescription("")
private String name;
@JsonProperty("type")
private Type type;
private final static long serialVersionUID = -3723545016629197254L;
/**
* No args constructor for use in serialization
*
*/
public MetricInfo() {
}
/**
*
* @param name
* @param type
*/
public MetricInfo(String name, Type type) {
super();
this.name = name;
this.type = type;
}
/**
*
*/
public String getName() {
return name;
}
/**
*
*/
public void setName(String name) {
this.name = name;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
}