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

com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookPatchArgs 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.kubernetes.auditregistration.v1alpha1.inputs.WebhookClientConfigPatchArgs;
import com.pulumi.kubernetes.auditregistration.v1alpha1.inputs.WebhookThrottleConfigPatchArgs;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WebhookPatchArgs Empty = new WebhookPatchArgs();

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

    /**
     * @return ClientConfig holds the connection parameters for the webhook required
     * 
     */
    public Optional> clientConfig() {
        return Optional.ofNullable(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 WebhookPatchArgs() {}

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

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

    public static final class Builder {
        private WebhookPatchArgs $;

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

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

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

        /**
         * @param clientConfig ClientConfig holds the connection parameters for the webhook required
         * 
         * @return builder
         * 
         */
        public Builder clientConfig(WebhookClientConfigPatchArgs 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(WebhookThrottleConfigPatchArgs throttle) {
            return throttle(Output.of(throttle));
        }

        public WebhookPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy