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

com.pulumi.azurenative.app.AppResiliencyArgs Maven / Gradle / Ivy

The 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;

import com.pulumi.azurenative.app.inputs.CircuitBreakerPolicyArgs;
import com.pulumi.azurenative.app.inputs.HttpConnectionPoolArgs;
import com.pulumi.azurenative.app.inputs.HttpRetryPolicyArgs;
import com.pulumi.azurenative.app.inputs.TcpConnectionPoolArgs;
import com.pulumi.azurenative.app.inputs.TcpRetryPolicyArgs;
import com.pulumi.azurenative.app.inputs.TimeoutPolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AppResiliencyArgs extends com.pulumi.resources.ResourceArgs {

    public static final AppResiliencyArgs Empty = new AppResiliencyArgs();

    /**
     * Name of the Container App.
     * 
     */
    @Import(name="appName", required=true)
    private Output appName;

    /**
     * @return Name of the Container App.
     * 
     */
    public Output appName() {
        return this.appName;
    }

    /**
     * Policy that defines circuit breaker conditions
     * 
     */
    @Import(name="circuitBreakerPolicy")
    private @Nullable Output circuitBreakerPolicy;

    /**
     * @return Policy that defines circuit breaker conditions
     * 
     */
    public Optional> circuitBreakerPolicy() {
        return Optional.ofNullable(this.circuitBreakerPolicy);
    }

    /**
     * Defines parameters for http connection pooling
     * 
     */
    @Import(name="httpConnectionPool")
    private @Nullable Output httpConnectionPool;

    /**
     * @return Defines parameters for http connection pooling
     * 
     */
    public Optional> httpConnectionPool() {
        return Optional.ofNullable(this.httpConnectionPool);
    }

    /**
     * Policy that defines http request retry conditions
     * 
     */
    @Import(name="httpRetryPolicy")
    private @Nullable Output httpRetryPolicy;

    /**
     * @return Policy that defines http request retry conditions
     * 
     */
    public Optional> httpRetryPolicy() {
        return Optional.ofNullable(this.httpRetryPolicy);
    }

    /**
     * Name of the resiliency policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the resiliency policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Defines parameters for tcp connection pooling
     * 
     */
    @Import(name="tcpConnectionPool")
    private @Nullable Output tcpConnectionPool;

    /**
     * @return Defines parameters for tcp connection pooling
     * 
     */
    public Optional> tcpConnectionPool() {
        return Optional.ofNullable(this.tcpConnectionPool);
    }

    /**
     * Policy that defines tcp request retry conditions
     * 
     */
    @Import(name="tcpRetryPolicy")
    private @Nullable Output tcpRetryPolicy;

    /**
     * @return Policy that defines tcp request retry conditions
     * 
     */
    public Optional> tcpRetryPolicy() {
        return Optional.ofNullable(this.tcpRetryPolicy);
    }

    /**
     * Policy to set request timeouts
     * 
     */
    @Import(name="timeoutPolicy")
    private @Nullable Output timeoutPolicy;

    /**
     * @return Policy to set request timeouts
     * 
     */
    public Optional> timeoutPolicy() {
        return Optional.ofNullable(this.timeoutPolicy);
    }

    private AppResiliencyArgs() {}

    private AppResiliencyArgs(AppResiliencyArgs $) {
        this.appName = $.appName;
        this.circuitBreakerPolicy = $.circuitBreakerPolicy;
        this.httpConnectionPool = $.httpConnectionPool;
        this.httpRetryPolicy = $.httpRetryPolicy;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.tcpConnectionPool = $.tcpConnectionPool;
        this.tcpRetryPolicy = $.tcpRetryPolicy;
        this.timeoutPolicy = $.timeoutPolicy;
    }

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

    public static final class Builder {
        private AppResiliencyArgs $;

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

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

        /**
         * @param appName Name of the Container App.
         * 
         * @return builder
         * 
         */
        public Builder appName(Output appName) {
            $.appName = appName;
            return this;
        }

        /**
         * @param appName Name of the Container App.
         * 
         * @return builder
         * 
         */
        public Builder appName(String appName) {
            return appName(Output.of(appName));
        }

        /**
         * @param circuitBreakerPolicy Policy that defines circuit breaker conditions
         * 
         * @return builder
         * 
         */
        public Builder circuitBreakerPolicy(@Nullable Output circuitBreakerPolicy) {
            $.circuitBreakerPolicy = circuitBreakerPolicy;
            return this;
        }

        /**
         * @param circuitBreakerPolicy Policy that defines circuit breaker conditions
         * 
         * @return builder
         * 
         */
        public Builder circuitBreakerPolicy(CircuitBreakerPolicyArgs circuitBreakerPolicy) {
            return circuitBreakerPolicy(Output.of(circuitBreakerPolicy));
        }

        /**
         * @param httpConnectionPool Defines parameters for http connection pooling
         * 
         * @return builder
         * 
         */
        public Builder httpConnectionPool(@Nullable Output httpConnectionPool) {
            $.httpConnectionPool = httpConnectionPool;
            return this;
        }

        /**
         * @param httpConnectionPool Defines parameters for http connection pooling
         * 
         * @return builder
         * 
         */
        public Builder httpConnectionPool(HttpConnectionPoolArgs httpConnectionPool) {
            return httpConnectionPool(Output.of(httpConnectionPool));
        }

        /**
         * @param httpRetryPolicy Policy that defines http request retry conditions
         * 
         * @return builder
         * 
         */
        public Builder httpRetryPolicy(@Nullable Output httpRetryPolicy) {
            $.httpRetryPolicy = httpRetryPolicy;
            return this;
        }

        /**
         * @param httpRetryPolicy Policy that defines http request retry conditions
         * 
         * @return builder
         * 
         */
        public Builder httpRetryPolicy(HttpRetryPolicyArgs httpRetryPolicy) {
            return httpRetryPolicy(Output.of(httpRetryPolicy));
        }

        /**
         * @param name Name of the resiliency policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the resiliency policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tcpConnectionPool Defines parameters for tcp connection pooling
         * 
         * @return builder
         * 
         */
        public Builder tcpConnectionPool(@Nullable Output tcpConnectionPool) {
            $.tcpConnectionPool = tcpConnectionPool;
            return this;
        }

        /**
         * @param tcpConnectionPool Defines parameters for tcp connection pooling
         * 
         * @return builder
         * 
         */
        public Builder tcpConnectionPool(TcpConnectionPoolArgs tcpConnectionPool) {
            return tcpConnectionPool(Output.of(tcpConnectionPool));
        }

        /**
         * @param tcpRetryPolicy Policy that defines tcp request retry conditions
         * 
         * @return builder
         * 
         */
        public Builder tcpRetryPolicy(@Nullable Output tcpRetryPolicy) {
            $.tcpRetryPolicy = tcpRetryPolicy;
            return this;
        }

        /**
         * @param tcpRetryPolicy Policy that defines tcp request retry conditions
         * 
         * @return builder
         * 
         */
        public Builder tcpRetryPolicy(TcpRetryPolicyArgs tcpRetryPolicy) {
            return tcpRetryPolicy(Output.of(tcpRetryPolicy));
        }

        /**
         * @param timeoutPolicy Policy to set request timeouts
         * 
         * @return builder
         * 
         */
        public Builder timeoutPolicy(@Nullable Output timeoutPolicy) {
            $.timeoutPolicy = timeoutPolicy;
            return this;
        }

        /**
         * @param timeoutPolicy Policy to set request timeouts
         * 
         * @return builder
         * 
         */
        public Builder timeoutPolicy(TimeoutPolicyArgs timeoutPolicy) {
            return timeoutPolicy(Output.of(timeoutPolicy));
        }

        public AppResiliencyArgs build() {
            if ($.appName == null) {
                throw new MissingRequiredPropertyException("AppResiliencyArgs", "appName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AppResiliencyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy