Package org.cdk8s.plus25.k8s
Class KubeApiServiceProps.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.KubeApiServiceProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeApiServiceProps>
- Enclosing interface:
- KubeApiServiceProps
@Stability(Stable) public static final class KubeApiServiceProps.Builder extends Object implements software.amazon.jsii.Builder<KubeApiServiceProps>
A builder forKubeApiServiceProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeApiServicePropsbuild()Builds the configured instance.KubeApiServiceProps.Buildermetadata(ObjectMeta metadata)Sets the value ofKubeApiServiceProps.getMetadata()KubeApiServiceProps.Builderspec(ApiServiceSpec spec)Sets the value ofKubeApiServiceProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeApiServiceProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeApiServiceProps.getMetadata()- Parameters:
metadata- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
spec
@Stability(Stable) public KubeApiServiceProps.Builder spec(ApiServiceSpec spec)
Sets the value ofKubeApiServiceProps.getSpec()- Parameters:
spec- Spec contains information for locating and communicating with a server.- Returns:
this
-
build
@Stability(Stable) public KubeApiServiceProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KubeApiServiceProps>- Returns:
- a new instance of
KubeApiServiceProps - Throws:
NullPointerException- if any required attribute was not provided
-
-