io.fabric8.kubernetes.api.model.EventSource Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
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 org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"component",
"host"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class EventSource {
/**
* component that generated the event
*
*/
@JsonProperty("component")
private String component;
/**
* name of the host where the event is generated
*
*/
@JsonProperty("host")
private String host;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public EventSource() {
}
/**
*
* @param host
* @param component
*/
public EventSource(String component, String host) {
this.component = component;
this.host = host;
}
/**
* component that generated the event
*
* @return
* The component
*/
@JsonProperty("component")
public String getComponent() {
return component;
}
/**
* component that generated the event
*
* @param component
* The component
*/
@JsonProperty("component")
public void setComponent(String component) {
this.component = component;
}
/**
* name of the host where the event is generated
*
* @return
* The host
*/
@JsonProperty("host")
public String getHost() {
return host;
}
/**
* name of the host where the event is generated
*
* @param host
* The host
*/
@JsonProperty("host")
public void setHost(String host) {
this.host = host;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(component).append(host).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EventSource) == false) {
return false;
}
EventSource rhs = ((EventSource) other);
return new EqualsBuilder().append(component, rhs.component).append(host, rhs.host).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy