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

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

// *** 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.core.annotations.CustomType;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AbusePenaltyResponse {
    /**
     * @return The action of AbusePenalty.
     * 
     */
    private @Nullable String action;
    /**
     * @return The datetime of expiration of the AbusePenalty.
     * 
     */
    private @Nullable String expiration;
    /**
     * @return The percentage of rate limit.
     * 
     */
    private @Nullable Double rateLimitPercentage;

    private AbusePenaltyResponse() {}
    /**
     * @return The action of AbusePenalty.
     * 
     */
    public Optional action() {
        return Optional.ofNullable(this.action);
    }
    /**
     * @return The datetime of expiration of the AbusePenalty.
     * 
     */
    public Optional expiration() {
        return Optional.ofNullable(this.expiration);
    }
    /**
     * @return The percentage of rate limit.
     * 
     */
    public Optional rateLimitPercentage() {
        return Optional.ofNullable(this.rateLimitPercentage);
    }

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

    public static Builder builder(AbusePenaltyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String action;
        private @Nullable String expiration;
        private @Nullable Double rateLimitPercentage;
        public Builder() {}
        public Builder(AbusePenaltyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.expiration = defaults.expiration;
    	      this.rateLimitPercentage = defaults.rateLimitPercentage;
        }

        @CustomType.Setter
        public Builder action(@Nullable String action) {

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

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

            this.rateLimitPercentage = rateLimitPercentage;
            return this;
        }
        public AbusePenaltyResponse build() {
            final var _resultValue = new AbusePenaltyResponse();
            _resultValue.action = action;
            _resultValue.expiration = expiration;
            _resultValue.rateLimitPercentage = rateLimitPercentage;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy