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

com.pulumi.azurenative.appplatform.outputs.ScaleRuleResponse 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.appplatform.outputs;

import com.pulumi.azurenative.appplatform.outputs.CustomScaleRuleResponse;
import com.pulumi.azurenative.appplatform.outputs.HttpScaleRuleResponse;
import com.pulumi.azurenative.appplatform.outputs.QueueScaleRuleResponse;
import com.pulumi.azurenative.appplatform.outputs.TcpScaleRuleResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ScaleRuleResponse {
    /**
     * @return Azure Queue based scaling.
     * 
     */
    private @Nullable QueueScaleRuleResponse azureQueue;
    /**
     * @return Custom scale rule.
     * 
     */
    private @Nullable CustomScaleRuleResponse custom;
    /**
     * @return HTTP requests based scaling.
     * 
     */
    private @Nullable HttpScaleRuleResponse http;
    /**
     * @return Scale Rule Name
     * 
     */
    private @Nullable String name;
    /**
     * @return Tcp requests based scaling.
     * 
     */
    private @Nullable TcpScaleRuleResponse tcp;

    private ScaleRuleResponse() {}
    /**
     * @return Azure Queue based scaling.
     * 
     */
    public Optional azureQueue() {
        return Optional.ofNullable(this.azureQueue);
    }
    /**
     * @return Custom scale rule.
     * 
     */
    public Optional custom() {
        return Optional.ofNullable(this.custom);
    }
    /**
     * @return HTTP requests based scaling.
     * 
     */
    public Optional http() {
        return Optional.ofNullable(this.http);
    }
    /**
     * @return Scale Rule Name
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Tcp requests based scaling.
     * 
     */
    public Optional tcp() {
        return Optional.ofNullable(this.tcp);
    }

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

    public static Builder builder(ScaleRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable QueueScaleRuleResponse azureQueue;
        private @Nullable CustomScaleRuleResponse custom;
        private @Nullable HttpScaleRuleResponse http;
        private @Nullable String name;
        private @Nullable TcpScaleRuleResponse tcp;
        public Builder() {}
        public Builder(ScaleRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureQueue = defaults.azureQueue;
    	      this.custom = defaults.custom;
    	      this.http = defaults.http;
    	      this.name = defaults.name;
    	      this.tcp = defaults.tcp;
        }

        @CustomType.Setter
        public Builder azureQueue(@Nullable QueueScaleRuleResponse azureQueue) {

            this.azureQueue = azureQueue;
            return this;
        }
        @CustomType.Setter
        public Builder custom(@Nullable CustomScaleRuleResponse custom) {

            this.custom = custom;
            return this;
        }
        @CustomType.Setter
        public Builder http(@Nullable HttpScaleRuleResponse http) {

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

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder tcp(@Nullable TcpScaleRuleResponse tcp) {

            this.tcp = tcp;
            return this;
        }
        public ScaleRuleResponse build() {
            final var _resultValue = new ScaleRuleResponse();
            _resultValue.azureQueue = azureQueue;
            _resultValue.custom = custom;
            _resultValue.http = http;
            _resultValue.name = name;
            _resultValue.tcp = tcp;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy