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

com.pulumi.azurenative.web.outputs.HttpScaleRuleResponse Maven / Gradle / Ivy

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

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

@CustomType
public final class HttpScaleRuleResponse {
    /**
     * @return Authentication secrets for the custom scale rule.
     * 
     */
    private @Nullable List auth;
    /**
     * @return Metadata properties to describe http scale rule.
     * 
     */
    private @Nullable Map metadata;

    private HttpScaleRuleResponse() {}
    /**
     * @return Authentication secrets for the custom scale rule.
     * 
     */
    public List auth() {
        return this.auth == null ? List.of() : this.auth;
    }
    /**
     * @return Metadata properties to describe http scale rule.
     * 
     */
    public Map metadata() {
        return this.metadata == null ? Map.of() : this.metadata;
    }

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

    public static Builder builder(HttpScaleRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List auth;
        private @Nullable Map metadata;
        public Builder() {}
        public Builder(HttpScaleRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auth = defaults.auth;
    	      this.metadata = defaults.metadata;
        }

        @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 metadata(@Nullable Map metadata) {

            this.metadata = metadata;
            return this;
        }
        public HttpScaleRuleResponse build() {
            final var _resultValue = new HttpScaleRuleResponse();
            _resultValue.auth = auth;
            _resultValue.metadata = metadata;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy