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

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

There is a newer version: 4.19.0
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 java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * WebhookThrottleConfig holds the configuration for throttling events
 * 
 */
public final class WebhookThrottleConfigPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebhookThrottleConfigPatchArgs Empty = new WebhookThrottleConfigPatchArgs();

    /**
     * ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
     * 
     */
    @Import(name="burst")
    private @Nullable Output burst;

    /**
     * @return ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
     * 
     */
    public Optional> burst() {
        return Optional.ofNullable(this.burst);
    }

    /**
     * ThrottleQPS maximum number of batches per second default 10 QPS
     * 
     */
    @Import(name="qps")
    private @Nullable Output qps;

    /**
     * @return ThrottleQPS maximum number of batches per second default 10 QPS
     * 
     */
    public Optional> qps() {
        return Optional.ofNullable(this.qps);
    }

    private WebhookThrottleConfigPatchArgs() {}

    private WebhookThrottleConfigPatchArgs(WebhookThrottleConfigPatchArgs $) {
        this.burst = $.burst;
        this.qps = $.qps;
    }

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

    public static final class Builder {
        private WebhookThrottleConfigPatchArgs $;

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

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

        /**
         * @param burst ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
         * 
         * @return builder
         * 
         */
        public Builder burst(@Nullable Output burst) {
            $.burst = burst;
            return this;
        }

        /**
         * @param burst ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
         * 
         * @return builder
         * 
         */
        public Builder burst(Integer burst) {
            return burst(Output.of(burst));
        }

        /**
         * @param qps ThrottleQPS maximum number of batches per second default 10 QPS
         * 
         * @return builder
         * 
         */
        public Builder qps(@Nullable Output qps) {
            $.qps = qps;
            return this;
        }

        /**
         * @param qps ThrottleQPS maximum number of batches per second default 10 QPS
         * 
         * @return builder
         * 
         */
        public Builder qps(Integer qps) {
            return qps(Output.of(qps));
        }

        public WebhookThrottleConfigPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy