All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
Show newest version
// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookClientConfigArgs;
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Webhook holds the configuration of the webhook
 * 
 */
public final class WebhookArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebhookArgs Empty = new WebhookArgs();

    /**
     * ClientConfig holds the connection parameters for the webhook required
     * 
     */
    @Import(name="clientConfig", required=true)
    private Output clientConfig;

    /**
     * @return ClientConfig holds the connection parameters for the webhook required
     * 
     */
    public Output clientConfig() {
        return this.clientConfig;
    }

    /**
     * Throttle holds the options for throttling the webhook
     * 
     */
    @Import(name="throttle")
    private @Nullable Output throttle;

    /**
     * @return Throttle holds the options for throttling the webhook
     * 
     */
    public Optional> throttle() {
        return Optional.ofNullable(this.throttle);
    }

    private WebhookArgs() {}

    private WebhookArgs(WebhookArgs $) {
        this.clientConfig = $.clientConfig;
        this.throttle = $.throttle;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WebhookArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WebhookArgs $;

        public Builder() {
            $ = new WebhookArgs();
        }

        public Builder(WebhookArgs defaults) {
            $ = new WebhookArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param clientConfig ClientConfig holds the connection parameters for the webhook required
         * 
         * @return builder
         * 
         */
        public Builder clientConfig(Output clientConfig) {
            $.clientConfig = clientConfig;
            return this;
        }

        /**
         * @param clientConfig ClientConfig holds the connection parameters for the webhook required
         * 
         * @return builder
         * 
         */
        public Builder clientConfig(WebhookClientConfigArgs clientConfig) {
            return clientConfig(Output.of(clientConfig));
        }

        /**
         * @param throttle Throttle holds the options for throttling the webhook
         * 
         * @return builder
         * 
         */
        public Builder throttle(@Nullable Output throttle) {
            $.throttle = throttle;
            return this;
        }

        /**
         * @param throttle Throttle holds the options for throttling the webhook
         * 
         * @return builder
         * 
         */
        public Builder throttle(WebhookThrottleConfigArgs throttle) {
            return throttle(Output.of(throttle));
        }

        public WebhookArgs build() {
            if ($.clientConfig == null) {
                throw new MissingRequiredPropertyException("WebhookArgs", "clientConfig");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy