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

com.pulumi.azurenative.app.inputs.DaprArgs 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.inputs;

import com.pulumi.azurenative.app.enums.AppProtocol;
import com.pulumi.azurenative.app.enums.LogLevel;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Container App Dapr configuration.
 * 
 */
public final class DaprArgs extends com.pulumi.resources.ResourceArgs {

    public static final DaprArgs Empty = new DaprArgs();

    /**
     * Dapr application identifier
     * 
     */
    @Import(name="appId")
    private @Nullable Output appId;

    /**
     * @return Dapr application identifier
     * 
     */
    public Optional> appId() {
        return Optional.ofNullable(this.appId);
    }

    /**
     * Tells Dapr which port your application is listening on
     * 
     */
    @Import(name="appPort")
    private @Nullable Output appPort;

    /**
     * @return Tells Dapr which port your application is listening on
     * 
     */
    public Optional> appPort() {
        return Optional.ofNullable(this.appPort);
    }

    /**
     * Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
     * 
     */
    @Import(name="appProtocol")
    private @Nullable Output> appProtocol;

    /**
     * @return Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
     * 
     */
    public Optional>> appProtocol() {
        return Optional.ofNullable(this.appProtocol);
    }

    /**
     * Enables API logging for the Dapr sidecar
     * 
     */
    @Import(name="enableApiLogging")
    private @Nullable Output enableApiLogging;

    /**
     * @return Enables API logging for the Dapr sidecar
     * 
     */
    public Optional> enableApiLogging() {
        return Optional.ofNullable(this.enableApiLogging);
    }

    /**
     * Boolean indicating if the Dapr side car is enabled
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Boolean indicating if the Dapr side car is enabled
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
     * 
     */
    @Import(name="httpMaxRequestSize")
    private @Nullable Output httpMaxRequestSize;

    /**
     * @return Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
     * 
     */
    public Optional> httpMaxRequestSize() {
        return Optional.ofNullable(this.httpMaxRequestSize);
    }

    /**
     * Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
     * 
     */
    @Import(name="httpReadBufferSize")
    private @Nullable Output httpReadBufferSize;

    /**
     * @return Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
     * 
     */
    public Optional> httpReadBufferSize() {
        return Optional.ofNullable(this.httpReadBufferSize);
    }

    /**
     * Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
     * 
     */
    @Import(name="logLevel")
    private @Nullable Output> logLevel;

    /**
     * @return Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
     * 
     */
    public Optional>> logLevel() {
        return Optional.ofNullable(this.logLevel);
    }

    private DaprArgs() {}

    private DaprArgs(DaprArgs $) {
        this.appId = $.appId;
        this.appPort = $.appPort;
        this.appProtocol = $.appProtocol;
        this.enableApiLogging = $.enableApiLogging;
        this.enabled = $.enabled;
        this.httpMaxRequestSize = $.httpMaxRequestSize;
        this.httpReadBufferSize = $.httpReadBufferSize;
        this.logLevel = $.logLevel;
    }

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

    public static final class Builder {
        private DaprArgs $;

        public Builder() {
            $ = new DaprArgs();
        }

        public Builder(DaprArgs defaults) {
            $ = new DaprArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param appId Dapr application identifier
         * 
         * @return builder
         * 
         */
        public Builder appId(@Nullable Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId Dapr application identifier
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param appPort Tells Dapr which port your application is listening on
         * 
         * @return builder
         * 
         */
        public Builder appPort(@Nullable Output appPort) {
            $.appPort = appPort;
            return this;
        }

        /**
         * @param appPort Tells Dapr which port your application is listening on
         * 
         * @return builder
         * 
         */
        public Builder appPort(Integer appPort) {
            return appPort(Output.of(appPort));
        }

        /**
         * @param appProtocol Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
         * 
         * @return builder
         * 
         */
        public Builder appProtocol(@Nullable Output> appProtocol) {
            $.appProtocol = appProtocol;
            return this;
        }

        /**
         * @param appProtocol Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
         * 
         * @return builder
         * 
         */
        public Builder appProtocol(Either appProtocol) {
            return appProtocol(Output.of(appProtocol));
        }

        /**
         * @param appProtocol Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
         * 
         * @return builder
         * 
         */
        public Builder appProtocol(String appProtocol) {
            return appProtocol(Either.ofLeft(appProtocol));
        }

        /**
         * @param appProtocol Tells Dapr which protocol your application is using. Valid options are http and grpc. Default is http
         * 
         * @return builder
         * 
         */
        public Builder appProtocol(AppProtocol appProtocol) {
            return appProtocol(Either.ofRight(appProtocol));
        }

        /**
         * @param enableApiLogging Enables API logging for the Dapr sidecar
         * 
         * @return builder
         * 
         */
        public Builder enableApiLogging(@Nullable Output enableApiLogging) {
            $.enableApiLogging = enableApiLogging;
            return this;
        }

        /**
         * @param enableApiLogging Enables API logging for the Dapr sidecar
         * 
         * @return builder
         * 
         */
        public Builder enableApiLogging(Boolean enableApiLogging) {
            return enableApiLogging(Output.of(enableApiLogging));
        }

        /**
         * @param enabled Boolean indicating if the Dapr side car is enabled
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Boolean indicating if the Dapr side car is enabled
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param httpMaxRequestSize Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
         * 
         * @return builder
         * 
         */
        public Builder httpMaxRequestSize(@Nullable Output httpMaxRequestSize) {
            $.httpMaxRequestSize = httpMaxRequestSize;
            return this;
        }

        /**
         * @param httpMaxRequestSize Increasing max size of request body http and grpc servers parameter in MB to handle uploading of big files. Default is 4 MB.
         * 
         * @return builder
         * 
         */
        public Builder httpMaxRequestSize(Integer httpMaxRequestSize) {
            return httpMaxRequestSize(Output.of(httpMaxRequestSize));
        }

        /**
         * @param httpReadBufferSize Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
         * 
         * @return builder
         * 
         */
        public Builder httpReadBufferSize(@Nullable Output httpReadBufferSize) {
            $.httpReadBufferSize = httpReadBufferSize;
            return this;
        }

        /**
         * @param httpReadBufferSize Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB.
         * 
         * @return builder
         * 
         */
        public Builder httpReadBufferSize(Integer httpReadBufferSize) {
            return httpReadBufferSize(Output.of(httpReadBufferSize));
        }

        /**
         * @param logLevel Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(@Nullable Output> logLevel) {
            $.logLevel = logLevel;
            return this;
        }

        /**
         * @param logLevel Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(Either logLevel) {
            return logLevel(Output.of(logLevel));
        }

        /**
         * @param logLevel Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(String logLevel) {
            return logLevel(Either.ofLeft(logLevel));
        }

        /**
         * @param logLevel Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info.
         * 
         * @return builder
         * 
         */
        public Builder logLevel(LogLevel logLevel) {
            return logLevel(Either.ofRight(logLevel));
        }

        public DaprArgs build() {
            $.appProtocol = Codegen.stringProp("appProtocol").left(AppProtocol.class).output().arg($.appProtocol).def("http").getNullable();
            $.enabled = Codegen.booleanProp("enabled").output().arg($.enabled).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy