Package org.cdk8s.plus24.k8s
Class KubeMutatingWebhookConfigurationProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeMutatingWebhookConfigurationProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeMutatingWebhookConfigurationProps>
- Enclosing interface:
- KubeMutatingWebhookConfigurationProps
@Stability(Stable) public static final class KubeMutatingWebhookConfigurationProps.Builder extends Object implements software.amazon.jsii.Builder<KubeMutatingWebhookConfigurationProps>
A builder forKubeMutatingWebhookConfigurationProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeMutatingWebhookConfigurationProps
build()
Builds the configured instance.KubeMutatingWebhookConfigurationProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeMutatingWebhookConfigurationProps.getMetadata()
KubeMutatingWebhookConfigurationProps.Builder
webhooks(List<? extends MutatingWebhook> webhooks)
Sets the value ofKubeMutatingWebhookConfigurationProps.getWebhooks()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeMutatingWebhookConfigurationProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeMutatingWebhookConfigurationProps.getMetadata()
- Parameters:
metadata
- Standard object metadata;. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.- Returns:
this
-
webhooks
@Stability(Stable) public KubeMutatingWebhookConfigurationProps.Builder webhooks(List<? extends MutatingWebhook> webhooks)
Sets the value ofKubeMutatingWebhookConfigurationProps.getWebhooks()
- Parameters:
webhooks
- Webhooks is a list of webhooks and the affected resources and operations.- Returns:
this
-
build
@Stability(Stable) public KubeMutatingWebhookConfigurationProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeMutatingWebhookConfigurationProps>
- Returns:
- a new instance of
KubeMutatingWebhookConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-