io.kubernetes.client.admissionreview.models.StatusDetails Maven / Gradle / Ivy
/*
* k8s.io/api/admission/v1
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.kubernetes.client.admissionreview.models;
import java.util.Objects;
import java.util.Arrays;
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.kubernetes.client.admissionreview.models.StatusCause;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.
*/
@ApiModel(description = "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]")
public class StatusDetails {
public static final String SERIALIZED_NAME_CAUSES = "causes";
@SerializedName(SERIALIZED_NAME_CAUSES)
private List causes = null;
public static final String SERIALIZED_NAME_GROUP = "group";
@SerializedName(SERIALIZED_NAME_GROUP)
private String group;
public static final String SERIALIZED_NAME_KIND = "kind";
@SerializedName(SERIALIZED_NAME_KIND)
private String kind;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_RETRY_AFTER_SECONDS = "retryAfterSeconds";
@SerializedName(SERIALIZED_NAME_RETRY_AFTER_SECONDS)
private Integer retryAfterSeconds;
public static final String SERIALIZED_NAME_UID = "uid";
@SerializedName(SERIALIZED_NAME_UID)
private String uid;
public StatusDetails causes(List causes) {
this.causes = causes;
return this;
}
public StatusDetails addCausesItem(StatusCause causesItem) {
if (this.causes == null) {
this.causes = new ArrayList();
}
this.causes.add(causesItem);
return this;
}
/**
* The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
* @return causes
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.")
public List getCauses() {
return causes;
}
public void setCauses(List causes) {
this.causes = causes;
}
public StatusDetails group(String group) {
this.group = group;
return this;
}
/**
* The group attribute of the resource associated with the status StatusReason.
* @return group
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The group attribute of the resource associated with the status StatusReason.")
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
public StatusDetails kind(String kind) {
this.kind = kind;
return this;
}
/**
* The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
* @return kind
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds")
public String getKind() {
return kind;
}
public void setKind(String kind) {
this.kind = kind;
}
public StatusDetails name(String name) {
this.name = name;
return this;
}
/**
* The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public StatusDetails retryAfterSeconds(Integer retryAfterSeconds) {
this.retryAfterSeconds = retryAfterSeconds;
return this;
}
/**
* If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.
* @return retryAfterSeconds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.")
public Integer getRetryAfterSeconds() {
return retryAfterSeconds;
}
public void setRetryAfterSeconds(Integer retryAfterSeconds) {
this.retryAfterSeconds = retryAfterSeconds;
}
public StatusDetails uid(String uid) {
this.uid = uid;
return this;
}
/**
* UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids
* @return uid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids")
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StatusDetails statusDetails = (StatusDetails) o;
return Objects.equals(this.causes, statusDetails.causes) &&
Objects.equals(this.group, statusDetails.group) &&
Objects.equals(this.kind, statusDetails.kind) &&
Objects.equals(this.name, statusDetails.name) &&
Objects.equals(this.retryAfterSeconds, statusDetails.retryAfterSeconds) &&
Objects.equals(this.uid, statusDetails.uid);
}
@Override
public int hashCode() {
return Objects.hash(causes, group, kind, name, retryAfterSeconds, uid);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StatusDetails {\n");
sb.append(" causes: ").append(toIndentedString(causes)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" retryAfterSeconds: ").append(toIndentedString(retryAfterSeconds)).append("\n");
sb.append(" uid: ").append(toIndentedString(uid)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy