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

com.pulumi.azurenative.app.outputs.JobScaleRuleResponse 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.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class JobScaleRuleResponse {
    /**
     * @return Authentication secrets for the scale rule.
     * 
     */
    private @Nullable List auth;
    /**
     * @return Metadata properties to describe the scale rule.
     * 
     */
    private @Nullable Object metadata;
    /**
     * @return Scale Rule Name
     * 
     */
    private @Nullable String name;
    /**
     * @return Type of the scale rule
     * eg: azure-servicebus, redis etc.
     * 
     */
    private @Nullable String type;

    private JobScaleRuleResponse() {}
    /**
     * @return Authentication secrets for the scale rule.
     * 
     */
    public List auth() {
        return this.auth == null ? List.of() : this.auth;
    }
    /**
     * @return Metadata properties to describe the scale rule.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return Scale Rule Name
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Type of the scale rule
     * eg: azure-servicebus, redis etc.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(JobScaleRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List auth;
        private @Nullable Object metadata;
        private @Nullable String name;
        private @Nullable String type;
        public Builder() {}
        public Builder(JobScaleRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.auth = defaults.auth;
    	      this.metadata = defaults.metadata;
    	      this.name = defaults.name;
    	      this.type = defaults.type;
        }

        @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 Object metadata) {

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

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

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