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

com.pulumi.azurenative.app.outputs.QueueScaleRuleResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.app.outputs;

import com.pulumi.azurenative.app.outputs.ScaleRuleAuthResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class QueueScaleRuleResponse {
    /**
     * @return Authentication secrets for the queue scale rule.
     * 
     */
    private @Nullable List auth;
    /**
     * @return Queue length.
     * 
     */
    private @Nullable Integer queueLength;
    /**
     * @return Queue name.
     * 
     */
    private @Nullable String queueName;

    private QueueScaleRuleResponse() {}
    /**
     * @return Authentication secrets for the queue scale rule.
     * 
     */
    public List auth() {
        return this.auth == null ? List.of() : this.auth;
    }
    /**
     * @return Queue length.
     * 
     */
    public Optional queueLength() {
        return Optional.ofNullable(this.queueLength);
    }
    /**
     * @return Queue name.
     * 
     */
    public Optional queueName() {
        return Optional.ofNullable(this.queueName);
    }

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

    public static Builder builder(QueueScaleRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List auth;
        private @Nullable Integer queueLength;
        private @Nullable String queueName;
        public Builder() {}
        public Builder(QueueScaleRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auth = defaults.auth;
    	      this.queueLength = defaults.queueLength;
    	      this.queueName = defaults.queueName;
        }

        @CustomType.Setter
        public Builder auth(@Nullable List auth) {

            this.auth = auth;
            return this;
        }
        public Builder auth(ScaleRuleAuthResponse... auth) {
            return auth(List.of(auth));
        }
        @CustomType.Setter
        public Builder queueLength(@Nullable Integer queueLength) {

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

            this.queueName = queueName;
            return this;
        }
        public QueueScaleRuleResponse build() {
            final var _resultValue = new QueueScaleRuleResponse();
            _resultValue.auth = auth;
            _resultValue.queueLength = queueLength;
            _resultValue.queueName = queueName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy