Package org.cdk8s.plus24.k8s
Class CustomResourceColumnDefinition.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.CustomResourceColumnDefinition.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomResourceColumnDefinition>
- Enclosing interface:
- CustomResourceColumnDefinition
@Stability(Stable) public static final class CustomResourceColumnDefinition.Builder extends Object implements software.amazon.jsii.Builder<CustomResourceColumnDefinition>
A builder forCustomResourceColumnDefinition
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomResourceColumnDefinition
build()
Builds the configured instance.CustomResourceColumnDefinition.Builder
description(String description)
Sets the value ofCustomResourceColumnDefinition.getDescription()
CustomResourceColumnDefinition.Builder
format(String format)
Sets the value ofCustomResourceColumnDefinition.getFormat()
CustomResourceColumnDefinition.Builder
jsonPath(String jsonPath)
Sets the value ofCustomResourceColumnDefinition.getJsonPath()
CustomResourceColumnDefinition.Builder
name(String name)
Sets the value ofCustomResourceColumnDefinition.getName()
CustomResourceColumnDefinition.Builder
priority(Number priority)
Sets the value ofCustomResourceColumnDefinition.getPriority()
CustomResourceColumnDefinition.Builder
type(String type)
Sets the value ofCustomResourceColumnDefinition.getType()
-
-
-
Method Detail
-
jsonPath
@Stability(Stable) public CustomResourceColumnDefinition.Builder jsonPath(String jsonPath)
Sets the value ofCustomResourceColumnDefinition.getJsonPath()
- Parameters:
jsonPath
- jsonPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public CustomResourceColumnDefinition.Builder name(String name)
Sets the value ofCustomResourceColumnDefinition.getName()
- Parameters:
name
- name is a human readable name for the column. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public CustomResourceColumnDefinition.Builder type(String type)
Sets the value ofCustomResourceColumnDefinition.getType()
- Parameters:
type
- type is an OpenAPI type definition for this column. This parameter is required. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.- Returns:
this
-
description
@Stability(Stable) public CustomResourceColumnDefinition.Builder description(String description)
Sets the value ofCustomResourceColumnDefinition.getDescription()
- Parameters:
description
- description is a human readable description of this column.- Returns:
this
-
format
@Stability(Stable) public CustomResourceColumnDefinition.Builder format(String format)
Sets the value ofCustomResourceColumnDefinition.getFormat()
- Parameters:
format
- format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.- Returns:
this
-
priority
@Stability(Stable) public CustomResourceColumnDefinition.Builder priority(Number priority)
Sets the value ofCustomResourceColumnDefinition.getPriority()
- Parameters:
priority
- priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.- Returns:
this
-
build
@Stability(Stable) public CustomResourceColumnDefinition build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomResourceColumnDefinition>
- Returns:
- a new instance of
CustomResourceColumnDefinition
- Throws:
NullPointerException
- if any required attribute was not provided
-
-