Package org.cdk8s.plus24.k8s
Class CustomResourceDefinitionNames.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.CustomResourceDefinitionNames.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResourceDefinitionNames>
- Enclosing interface:
- CustomResourceDefinitionNames
@Stability(Stable) public static final class CustomResourceDefinitionNames.Builder extends Object implements software.amazon.jsii.Builder<CustomResourceDefinitionNames>
A builder forCustomResourceDefinitionNames
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceDefinitionNames
build()
Builds the configured instance.CustomResourceDefinitionNames.Builder
categories(List<String> categories)
Sets the value ofCustomResourceDefinitionNames.getCategories()
CustomResourceDefinitionNames.Builder
kind(String kind)
Sets the value ofCustomResourceDefinitionNames.getKind()
CustomResourceDefinitionNames.Builder
listKind(String listKind)
Sets the value ofCustomResourceDefinitionNames.getListKind()
CustomResourceDefinitionNames.Builder
plural(String plural)
Sets the value ofCustomResourceDefinitionNames.getPlural()
CustomResourceDefinitionNames.Builder
shortNames(List<String> shortNames)
Sets the value ofCustomResourceDefinitionNames.getShortNames()
CustomResourceDefinitionNames.Builder
singular(String singular)
Sets the value ofCustomResourceDefinitionNames.getSingular()
-
-
-
Method Detail
-
kind
@Stability(Stable) public CustomResourceDefinitionNames.Builder kind(String kind)
Sets the value ofCustomResourceDefinitionNames.getKind()
- Parameters:
kind
- kind is the serialized kind of the resource. This parameter is required. It is normally CamelCase and singular. Custom resource instances will use this value as thekind
attribute in API calls.- Returns:
this
-
plural
@Stability(Stable) public CustomResourceDefinitionNames.Builder plural(String plural)
Sets the value ofCustomResourceDefinitionNames.getPlural()
- Parameters:
plural
- plural is the plural name of the resource to serve. This parameter is required. 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:
this
-
categories
@Stability(Stable) public CustomResourceDefinitionNames.Builder categories(List<String> categories)
Sets the value ofCustomResourceDefinitionNames.getCategories()
- Parameters:
categories
- 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:
this
-
listKind
@Stability(Stable) public CustomResourceDefinitionNames.Builder listKind(String listKind)
Sets the value ofCustomResourceDefinitionNames.getListKind()
- Parameters:
listKind
- listKind is the serialized kind of the list for this resource. Defaults to "kind
List".- Returns:
this
-
shortNames
@Stability(Stable) public CustomResourceDefinitionNames.Builder shortNames(List<String> shortNames)
Sets the value ofCustomResourceDefinitionNames.getShortNames()
- Parameters:
shortNames
- shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get`. It must be all lowercase. - Returns:
this
-
singular
@Stability(Stable) public CustomResourceDefinitionNames.Builder singular(String singular)
Sets the value ofCustomResourceDefinitionNames.getSingular()
- Parameters:
singular
- singular is the singular name of the resource. It must be all lowercase. Defaults to lowercasedkind
.- Returns:
this
-
build
@Stability(Stable) public CustomResourceDefinitionNames build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomResourceDefinitionNames>
- Returns:
- a new instance of
CustomResourceDefinitionNames
- Throws:
NullPointerException
- if any required attribute was not provided
-
-