Class WebhookConversion
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apiextensionsapiserver.pkg.apis.apiextensions.v1.WebhookConversion
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class WebhookConversion extends java.lang.Object implements com.marcnuri.yakc.model.Model
WebhookConversion describes how to call a conversion webhook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebhookConversion.Builder
-
Constructor Summary
Constructors Constructor Description WebhookConversion()
WebhookConversion(WebhookClientConfig clientConfig, @NonNull java.util.List<java.lang.String> conversionReviewVersions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookConversion.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
WebhookClientConfig
getClientConfig()
@NonNull java.util.List<java.lang.String>
getConversionReviewVersions()
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.int
hashCode()
void
setClientConfig(WebhookClientConfig clientConfig)
void
setConversionReviewVersions(@NonNull java.util.List<java.lang.String> conversionReviewVersions)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects.WebhookConversion.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
WebhookConversion
public WebhookConversion(WebhookClientConfig clientConfig, @NonNull @NonNull java.util.List<java.lang.String> conversionReviewVersions)
-
WebhookConversion
public WebhookConversion()
-
-
Method Detail
-
builder
public static WebhookConversion.Builder builder()
-
toBuilder
public WebhookConversion.Builder toBuilder()
-
getClientConfig
public WebhookClientConfig getClientConfig()
-
getConversionReviewVersions
@NonNull public @NonNull java.util.List<java.lang.String> getConversionReviewVersions()
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. 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.
-
setClientConfig
public void setClientConfig(WebhookClientConfig clientConfig)
-
setConversionReviewVersions
public void setConversionReviewVersions(@NonNull @NonNull java.util.List<java.lang.String> conversionReviewVersions)
conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. 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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-