
io.fabric8.kubernetes.api.model.Event Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
import java.util.Map;
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.model.annotation.Group;
import io.fabric8.kubernetes.model.annotation.Version;
import io.sundr.builder.annotations.Buildable;
import io.sundr.transform.annotations.TemplateTransformation;
import io.sundr.transform.annotations.TemplateTransformations;
import lombok.EqualsAndHashCode;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"action",
"count",
"eventTime",
"firstTimestamp",
"involvedObject",
"lastTimestamp",
"message",
"reason",
"related",
"reportingComponent",
"reportingInstance",
"series",
"source",
"type"
})
@ToString
@EqualsAndHashCode
@Setter
@Accessors(prefix = {
"_",
""
})
@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = true, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder")
@Version("v1")
@Group("")
@TemplateTransformations({
@TemplateTransformation(value = "/manifest.vm", outputPath = "core.properties", gather = true)
})
public class Event implements HasMetadata, Namespaced
{
@JsonProperty("action")
private java.lang.String action;
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
private java.lang.String apiVersion = "v1";
@JsonProperty("count")
private Integer count;
@JsonProperty("eventTime")
private MicroTime eventTime;
@JsonProperty("firstTimestamp")
private String firstTimestamp;
@JsonProperty("involvedObject")
private ObjectReference involvedObject;
/**
*
* (Required)
*
*/
@JsonProperty("kind")
private java.lang.String kind = "Event";
@JsonProperty("lastTimestamp")
private String lastTimestamp;
@JsonProperty("message")
private java.lang.String message;
@JsonProperty("metadata")
private ObjectMeta metadata;
@JsonProperty("reason")
private java.lang.String reason;
@JsonProperty("related")
private ObjectReference related;
@JsonProperty("reportingComponent")
private java.lang.String reportingComponent;
@JsonProperty("reportingInstance")
private java.lang.String reportingInstance;
@JsonProperty("series")
private EventSeries series;
@JsonProperty("source")
private EventSource source;
@JsonProperty("type")
private java.lang.String type;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Event() {
}
/**
*
* @param reason
* @param metadata
* @param involvedObject
* @param reportingInstance
* @param kind
* @param count
* @param source
* @param message
* @param type
* @param reportingComponent
* @param firstTimestamp
* @param apiVersion
* @param related
* @param lastTimestamp
* @param series
* @param eventTime
* @param action
*/
public Event(java.lang.String action, java.lang.String apiVersion, Integer count, MicroTime eventTime, String firstTimestamp, ObjectReference involvedObject, java.lang.String kind, String lastTimestamp, java.lang.String message, ObjectMeta metadata, java.lang.String reason, ObjectReference related, java.lang.String reportingComponent, java.lang.String reportingInstance, EventSeries series, EventSource source, java.lang.String type) {
super();
this.action = action;
this.apiVersion = apiVersion;
this.count = count;
this.eventTime = eventTime;
this.firstTimestamp = firstTimestamp;
this.involvedObject = involvedObject;
this.kind = kind;
this.lastTimestamp = lastTimestamp;
this.message = message;
this.metadata = metadata;
this.reason = reason;
this.related = related;
this.reportingComponent = reportingComponent;
this.reportingInstance = reportingInstance;
this.series = series;
this.source = source;
this.type = type;
}
@JsonProperty("action")
public java.lang.String getAction() {
return action;
}
@JsonProperty("action")
public void setAction(java.lang.String action) {
this.action = action;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public java.lang.String getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
public void setApiVersion(java.lang.String apiVersion) {
this.apiVersion = apiVersion;
}
@JsonProperty("count")
public Integer getCount() {
return count;
}
@JsonProperty("count")
public void setCount(Integer count) {
this.count = count;
}
@JsonProperty("eventTime")
public MicroTime getEventTime() {
return eventTime;
}
@JsonProperty("eventTime")
public void setEventTime(MicroTime eventTime) {
this.eventTime = eventTime;
}
@JsonProperty("firstTimestamp")
public String getFirstTimestamp() {
return firstTimestamp;
}
@JsonProperty("firstTimestamp")
public void setFirstTimestamp(String firstTimestamp) {
this.firstTimestamp = firstTimestamp;
}
@JsonProperty("involvedObject")
public ObjectReference getInvolvedObject() {
return involvedObject;
}
@JsonProperty("involvedObject")
public void setInvolvedObject(ObjectReference involvedObject) {
this.involvedObject = involvedObject;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public java.lang.String getKind() {
return kind;
}
/**
*
* (Required)
*
*/
@JsonProperty("kind")
public void setKind(java.lang.String kind) {
this.kind = kind;
}
@JsonProperty("lastTimestamp")
public String getLastTimestamp() {
return lastTimestamp;
}
@JsonProperty("lastTimestamp")
public void setLastTimestamp(String lastTimestamp) {
this.lastTimestamp = lastTimestamp;
}
@JsonProperty("message")
public java.lang.String getMessage() {
return message;
}
@JsonProperty("message")
public void setMessage(java.lang.String message) {
this.message = message;
}
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}
@JsonProperty("reason")
public java.lang.String getReason() {
return reason;
}
@JsonProperty("reason")
public void setReason(java.lang.String reason) {
this.reason = reason;
}
@JsonProperty("related")
public ObjectReference getRelated() {
return related;
}
@JsonProperty("related")
public void setRelated(ObjectReference related) {
this.related = related;
}
@JsonProperty("reportingComponent")
public java.lang.String getReportingComponent() {
return reportingComponent;
}
@JsonProperty("reportingComponent")
public void setReportingComponent(java.lang.String reportingComponent) {
this.reportingComponent = reportingComponent;
}
@JsonProperty("reportingInstance")
public java.lang.String getReportingInstance() {
return reportingInstance;
}
@JsonProperty("reportingInstance")
public void setReportingInstance(java.lang.String reportingInstance) {
this.reportingInstance = reportingInstance;
}
@JsonProperty("series")
public EventSeries getSeries() {
return series;
}
@JsonProperty("series")
public void setSeries(EventSeries series) {
this.series = series;
}
@JsonProperty("source")
public EventSource getSource() {
return source;
}
@JsonProperty("source")
public void setSource(EventSource source) {
this.source = source;
}
@JsonProperty("type")
public java.lang.String getType() {
return type;
}
@JsonProperty("type")
public void setType(java.lang.String 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