Package org.cdk8s.plus24.k8s
Class KubeServiceProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeServiceProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeServiceProps>
- Enclosing interface:
- KubeServiceProps
@Stability(Stable) public static final class KubeServiceProps.Builder extends Object implements software.amazon.jsii.Builder<KubeServiceProps>
A builder forKubeServiceProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeServiceProps
build()
Builds the configured instance.KubeServiceProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeServiceProps.getMetadata()
KubeServiceProps.Builder
spec(ServiceSpec spec)
Sets the value ofKubeServiceProps.getSpec()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeServiceProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeServiceProps.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 KubeServiceProps.Builder spec(ServiceSpec spec)
Sets the value ofKubeServiceProps.getSpec()
- Parameters:
spec
- Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status- Returns:
this
-
build
@Stability(Stable) public KubeServiceProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeServiceProps>
- Returns:
- a new instance of
KubeServiceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-