Class V1CustomResourceDefinitionNames
java.lang.Object
io.kubernetes.client.openapi.models.V1CustomResourceDefinitionNames
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1CustomResourceDefinitionNames
extends Object
CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem
(String categoriesItem) addShortNamesItem
(String shortNamesItem) categories
(List<String> categories) boolean
Create an instance of V1CustomResourceDefinitionNames given an JSON stringcategories is a list of grouped resources this custom resource belongs to (e.g.getKind()
kind is the serialized kind of the resource.listKind is the serialized kind of the list for this resource.plural is the plural name of the resource to serve.shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`.singular is the singular name of the resource.int
hashCode()
void
setCategories
(List<String> categories) void
void
setListKind
(String listKind) void
void
setShortNames
(List<String> shortNames) void
setSingular
(String singular) shortNames
(List<String> shortNames) toJson()
Convert an instance of V1CustomResourceDefinitionNames to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_LIST_KIND
- See Also:
-
SERIALIZED_NAME_PLURAL
- See Also:
-
SERIALIZED_NAME_SHORT_NAMES
- See Also:
-
SERIALIZED_NAME_SINGULAR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CustomResourceDefinitionNames
public V1CustomResourceDefinitionNames()
-
-
Method Details
-
categories
-
addCategoriesItem
-
getCategories
categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.- Returns:
- categories
-
setCategories
-
kind
-
getKind
kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.- Returns:
- kind
-
setKind
-
listKind
-
getListKind
listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".- Returns:
- listKind
-
setListKind
-
plural
-
getPlural
plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.- Returns:
- plural
-
setPlural
-
shortNames
-
addShortNamesItem
-
getShortNames
shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.- Returns:
- shortNames
-
setShortNames
-
singular
-
getSingular
singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.- Returns:
- singular
-
setSingular
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1CustomResourceDefinitionNames
-
fromJson
Create an instance of V1CustomResourceDefinitionNames given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CustomResourceDefinitionNames
- Throws:
IOException
- if the JSON string is invalid with respect to V1CustomResourceDefinitionNames
-
toJson
Convert an instance of V1CustomResourceDefinitionNames to an JSON string- Returns:
- JSON string
-