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

com.pulumi.azurenative.cognitiveservices.outputs.ThrottlingRuleResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.cognitiveservices.outputs;

import com.pulumi.azurenative.cognitiveservices.outputs.RequestMatchPatternResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ThrottlingRuleResponse {
    private @Nullable Double count;
    private @Nullable Boolean dynamicThrottlingEnabled;
    private @Nullable String key;
    private @Nullable List matchPatterns;
    private @Nullable Double minCount;
    private @Nullable Double renewalPeriod;

    private ThrottlingRuleResponse() {}
    public Optional count() {
        return Optional.ofNullable(this.count);
    }
    public Optional dynamicThrottlingEnabled() {
        return Optional.ofNullable(this.dynamicThrottlingEnabled);
    }
    public Optional key() {
        return Optional.ofNullable(this.key);
    }
    public List matchPatterns() {
        return this.matchPatterns == null ? List.of() : this.matchPatterns;
    }
    public Optional minCount() {
        return Optional.ofNullable(this.minCount);
    }
    public Optional renewalPeriod() {
        return Optional.ofNullable(this.renewalPeriod);
    }

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

    public static Builder builder(ThrottlingRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double count;
        private @Nullable Boolean dynamicThrottlingEnabled;
        private @Nullable String key;
        private @Nullable List matchPatterns;
        private @Nullable Double minCount;
        private @Nullable Double renewalPeriod;
        public Builder() {}
        public Builder(ThrottlingRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.count = defaults.count;
    	      this.dynamicThrottlingEnabled = defaults.dynamicThrottlingEnabled;
    	      this.key = defaults.key;
    	      this.matchPatterns = defaults.matchPatterns;
    	      this.minCount = defaults.minCount;
    	      this.renewalPeriod = defaults.renewalPeriod;
        }

        @CustomType.Setter
        public Builder count(@Nullable Double count) {

            this.count = count;
            return this;
        }
        @CustomType.Setter
        public Builder dynamicThrottlingEnabled(@Nullable Boolean dynamicThrottlingEnabled) {

            this.dynamicThrottlingEnabled = dynamicThrottlingEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder key(@Nullable String key) {

            this.key = key;
            return this;
        }
        @CustomType.Setter
        public Builder matchPatterns(@Nullable List matchPatterns) {

            this.matchPatterns = matchPatterns;
            return this;
        }
        public Builder matchPatterns(RequestMatchPatternResponse... matchPatterns) {
            return matchPatterns(List.of(matchPatterns));
        }
        @CustomType.Setter
        public Builder minCount(@Nullable Double minCount) {

            this.minCount = minCount;
            return this;
        }
        @CustomType.Setter
        public Builder renewalPeriod(@Nullable Double renewalPeriod) {

            this.renewalPeriod = renewalPeriod;
            return this;
        }
        public ThrottlingRuleResponse build() {
            final var _resultValue = new ThrottlingRuleResponse();
            _resultValue.count = count;
            _resultValue.dynamicThrottlingEnabled = dynamicThrottlingEnabled;
            _resultValue.key = key;
            _resultValue.matchPatterns = matchPatterns;
            _resultValue.minCount = minCount;
            _resultValue.renewalPeriod = renewalPeriod;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy