
io.kubernetes.client.models.V1EventSource Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.kubernetes.client.models;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* EventSource contains information for an event.
*/
@ApiModel(description = "EventSource contains information for an event.")
public class V1EventSource {
@SerializedName("component")
private String component = null;
@SerializedName("host")
private String host = null;
public V1EventSource component(String component) {
this.component = component;
return this;
}
/**
* Component from which the event is generated.
* @return component
**/
@ApiModelProperty(value = "Component from which the event is generated.")
public String getComponent() {
return component;
}
public void setComponent(String component) {
this.component = component;
}
public V1EventSource host(String host) {
this.host = host;
return this;
}
/**
* Node name on which the event is generated.
* @return host
**/
@ApiModelProperty(value = "Node name on which the event is generated.")
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1EventSource v1EventSource = (V1EventSource) o;
return Objects.equals(this.component, v1EventSource.component) &&
Objects.equals(this.host, v1EventSource.host);
}
@Override
public int hashCode() {
return Objects.hash(component, host);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1EventSource {\n");
sb.append(" component: ").append(toIndentedString(component)).append("\n");
sb.append(" host: ").append(toIndentedString(host)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy