Package org.cdk8s.plus24.k8s
Class WebhookConversion.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.WebhookConversion.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebhookConversion>
- Enclosing interface:
- WebhookConversion
@Stability(Stable) public static final class WebhookConversion.Builder extends Object implements software.amazon.jsii.Builder<WebhookConversion>
A builder forWebhookConversion
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookConversion
build()
Builds the configured instance.WebhookConversion.Builder
clientConfig(WebhookClientConfig clientConfig)
Sets the value ofWebhookConversion.getClientConfig()
WebhookConversion.Builder
conversionReviewVersions(List<String> conversionReviewVersions)
Sets the value ofWebhookConversion.getConversionReviewVersions()
-
-
-
Method Detail
-
conversionReviewVersions
@Stability(Stable) public WebhookConversion.Builder conversionReviewVersions(List<String> conversionReviewVersions)
Sets the value ofWebhookConversion.getConversionReviewVersions()
- Parameters:
conversionReviewVersions
- conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. This parameter is required. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail.- Returns:
this
-
clientConfig
@Stability(Stable) public WebhookConversion.Builder clientConfig(WebhookClientConfig clientConfig)
Sets the value ofWebhookConversion.getClientConfig()
- Parameters:
clientConfig
- clientConfig is the instructions for how to call the webhook if strategy is `Webhook`.- Returns:
this
-
build
@Stability(Stable) public WebhookConversion build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WebhookConversion>
- Returns:
- a new instance of
WebhookConversion
- Throws:
NullPointerException
- if any required attribute was not provided
-
-