Package org.cdk8s
Class ApiObjectProps.Builder
- java.lang.Object
-
- org.cdk8s.ApiObjectProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiObjectProps>
- Enclosing interface:
- ApiObjectProps
@Stability(Stable) public static final class ApiObjectProps.Builder extends Object implements software.amazon.jsii.Builder<ApiObjectProps>
A builder forApiObjectProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiObjectProps.Builder
apiVersion(String apiVersion)
Sets the value ofApiObjectProps.getApiVersion()
ApiObjectProps
build()
Builds the configured instance.ApiObjectProps.Builder
kind(String kind)
Sets the value ofApiObjectProps.getKind()
ApiObjectProps.Builder
metadata(ApiObjectMetadata metadata)
Sets the value ofApiObjectProps.getMetadata()
-
-
-
Method Detail
-
apiVersion
@Stability(Stable) public ApiObjectProps.Builder apiVersion(String apiVersion)
Sets the value ofApiObjectProps.getApiVersion()
- Parameters:
apiVersion
- API version. This parameter is required.- Returns:
this
-
kind
@Stability(Stable) public ApiObjectProps.Builder kind(String kind)
Sets the value ofApiObjectProps.getKind()
- Parameters:
kind
- Resource kind. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public ApiObjectProps.Builder metadata(ApiObjectMetadata metadata)
Sets the value ofApiObjectProps.getMetadata()
- Parameters:
metadata
- Object metadata. Ifname
is not specified, an app-unique name will be allocated by the framework based on the path of the construct within thes construct tree.- Returns:
this
-
build
@Stability(Stable) public ApiObjectProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiObjectProps>
- Returns:
- a new instance of
ApiObjectProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-