com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.Webhook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.kubernetes.auditregistration.v1alpha1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.WebhookClientConfig;
import com.pulumi.kubernetes.auditregistration.v1alpha1.outputs.WebhookThrottleConfig;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class Webhook {
/**
* @return ClientConfig holds the connection parameters for the webhook required
*
*/
private WebhookClientConfig clientConfig;
/**
* @return Throttle holds the options for throttling the webhook
*
*/
private @Nullable WebhookThrottleConfig throttle;
private Webhook() {}
/**
* @return ClientConfig holds the connection parameters for the webhook required
*
*/
public WebhookClientConfig clientConfig() {
return this.clientConfig;
}
/**
* @return Throttle holds the options for throttling the webhook
*
*/
public Optional throttle() {
return Optional.ofNullable(this.throttle);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(Webhook defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private WebhookClientConfig clientConfig;
private @Nullable WebhookThrottleConfig throttle;
public Builder() {}
public Builder(Webhook defaults) {
Objects.requireNonNull(defaults);
this.clientConfig = defaults.clientConfig;
this.throttle = defaults.throttle;
}
@CustomType.Setter
public Builder clientConfig(WebhookClientConfig clientConfig) {
if (clientConfig == null) {
throw new MissingRequiredPropertyException("Webhook", "clientConfig");
}
this.clientConfig = clientConfig;
return this;
}
@CustomType.Setter
public Builder throttle(@Nullable WebhookThrottleConfig throttle) {
this.throttle = throttle;
return this;
}
public Webhook build() {
final var _resultValue = new Webhook();
_resultValue.clientConfig = clientConfig;
_resultValue.throttle = throttle;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy