
io.kubernetes.client.models.V1beta1CustomResourceDefinitionSpec 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.kubernetes.client.models.V1beta1CustomResourceColumnDefinition;
import io.kubernetes.client.models.V1beta1CustomResourceDefinitionNames;
import io.kubernetes.client.models.V1beta1CustomResourceDefinitionVersion;
import io.kubernetes.client.models.V1beta1CustomResourceSubresources;
import io.kubernetes.client.models.V1beta1CustomResourceValidation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* CustomResourceDefinitionSpec describes how a user wants their resource to appear
*/
@ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear")
public class V1beta1CustomResourceDefinitionSpec {
@SerializedName("additionalPrinterColumns")
private List additionalPrinterColumns = null;
@SerializedName("group")
private String group = null;
@SerializedName("names")
private V1beta1CustomResourceDefinitionNames names = null;
@SerializedName("scope")
private String scope = null;
@SerializedName("subresources")
private V1beta1CustomResourceSubresources subresources = null;
@SerializedName("validation")
private V1beta1CustomResourceValidation validation = null;
@SerializedName("version")
private String version = null;
@SerializedName("versions")
private List versions = null;
public V1beta1CustomResourceDefinitionSpec additionalPrinterColumns(List additionalPrinterColumns) {
this.additionalPrinterColumns = additionalPrinterColumns;
return this;
}
public V1beta1CustomResourceDefinitionSpec addAdditionalPrinterColumnsItem(V1beta1CustomResourceColumnDefinition additionalPrinterColumnsItem) {
if (this.additionalPrinterColumns == null) {
this.additionalPrinterColumns = new ArrayList();
}
this.additionalPrinterColumns.add(additionalPrinterColumnsItem);
return this;
}
/**
* AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.
* @return additionalPrinterColumns
**/
@ApiModelProperty(value = "AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column.")
public List getAdditionalPrinterColumns() {
return additionalPrinterColumns;
}
public void setAdditionalPrinterColumns(List additionalPrinterColumns) {
this.additionalPrinterColumns = additionalPrinterColumns;
}
public V1beta1CustomResourceDefinitionSpec group(String group) {
this.group = group;
return this;
}
/**
* Group is the group this resource belongs in
* @return group
**/
@ApiModelProperty(required = true, value = "Group is the group this resource belongs in")
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
public V1beta1CustomResourceDefinitionSpec names(V1beta1CustomResourceDefinitionNames names) {
this.names = names;
return this;
}
/**
* Names are the names used to describe this custom resource
* @return names
**/
@ApiModelProperty(required = true, value = "Names are the names used to describe this custom resource")
public V1beta1CustomResourceDefinitionNames getNames() {
return names;
}
public void setNames(V1beta1CustomResourceDefinitionNames names) {
this.names = names;
}
public V1beta1CustomResourceDefinitionSpec scope(String scope) {
this.scope = scope;
return this;
}
/**
* Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced
* @return scope
**/
@ApiModelProperty(required = true, value = "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced")
public String getScope() {
return scope;
}
public void setScope(String scope) {
this.scope = scope;
}
public V1beta1CustomResourceDefinitionSpec subresources(V1beta1CustomResourceSubresources subresources) {
this.subresources = subresources;
return this;
}
/**
* Subresources describes the subresources for CustomResources
* @return subresources
**/
@ApiModelProperty(value = "Subresources describes the subresources for CustomResources")
public V1beta1CustomResourceSubresources getSubresources() {
return subresources;
}
public void setSubresources(V1beta1CustomResourceSubresources subresources) {
this.subresources = subresources;
}
public V1beta1CustomResourceDefinitionSpec validation(V1beta1CustomResourceValidation validation) {
this.validation = validation;
return this;
}
/**
* Validation describes the validation methods for CustomResources
* @return validation
**/
@ApiModelProperty(value = "Validation describes the validation methods for CustomResources")
public V1beta1CustomResourceValidation getValidation() {
return validation;
}
public void setValidation(V1beta1CustomResourceValidation validation) {
this.validation = validation;
}
public V1beta1CustomResourceDefinitionSpec version(String version) {
this.version = version;
return this;
}
/**
* Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`.
* @return version
**/
@ApiModelProperty(value = "Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`.")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public V1beta1CustomResourceDefinitionSpec versions(List versions) {
this.versions = versions;
return this;
}
public V1beta1CustomResourceDefinitionSpec addVersionsItem(V1beta1CustomResourceDefinitionVersion versionsItem) {
if (this.versions == null) {
this.versions = new ArrayList();
}
this.versions.add(versionsItem);
return this;
}
/**
* Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
* @return versions
**/
@ApiModelProperty(value = "Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.")
public List getVersions() {
return versions;
}
public void setVersions(List versions) {
this.versions = versions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1beta1CustomResourceDefinitionSpec v1beta1CustomResourceDefinitionSpec = (V1beta1CustomResourceDefinitionSpec) o;
return Objects.equals(this.additionalPrinterColumns, v1beta1CustomResourceDefinitionSpec.additionalPrinterColumns) &&
Objects.equals(this.group, v1beta1CustomResourceDefinitionSpec.group) &&
Objects.equals(this.names, v1beta1CustomResourceDefinitionSpec.names) &&
Objects.equals(this.scope, v1beta1CustomResourceDefinitionSpec.scope) &&
Objects.equals(this.subresources, v1beta1CustomResourceDefinitionSpec.subresources) &&
Objects.equals(this.validation, v1beta1CustomResourceDefinitionSpec.validation) &&
Objects.equals(this.version, v1beta1CustomResourceDefinitionSpec.version) &&
Objects.equals(this.versions, v1beta1CustomResourceDefinitionSpec.versions);
}
@Override
public int hashCode() {
return Objects.hash(additionalPrinterColumns, group, names, scope, subresources, validation, version, versions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1beta1CustomResourceDefinitionSpec {\n");
sb.append(" additionalPrinterColumns: ").append(toIndentedString(additionalPrinterColumns)).append("\n");
sb.append(" group: ").append(toIndentedString(group)).append("\n");
sb.append(" names: ").append(toIndentedString(names)).append("\n");
sb.append(" scope: ").append(toIndentedString(scope)).append("\n");
sb.append(" subresources: ").append(toIndentedString(subresources)).append("\n");
sb.append(" validation: ").append(toIndentedString(validation)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" versions: ").append(toIndentedString(versions)).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