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

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

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

import com.pulumi.azurenative.app.inputs.DaprComponentResiliencyPolicyConfigurationArgs;
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 DaprComponentResiliencyPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final DaprComponentResiliencyPolicyArgs Empty = new DaprComponentResiliencyPolicyArgs();

    /**
     * Name of the Dapr Component.
     * 
     */
    @Import(name="componentName", required=true)
    private Output componentName;

    /**
     * @return Name of the Dapr Component.
     * 
     */
    public Output componentName() {
        return this.componentName;
    }

    /**
     * Name of the Managed Environment.
     * 
     */
    @Import(name="environmentName", required=true)
    private Output environmentName;

    /**
     * @return Name of the Managed Environment.
     * 
     */
    public Output environmentName() {
        return this.environmentName;
    }

    /**
     * The optional inbound component resiliency policy configuration
     * 
     */
    @Import(name="inboundPolicy")
    private @Nullable Output inboundPolicy;

    /**
     * @return The optional inbound component resiliency policy configuration
     * 
     */
    public Optional> inboundPolicy() {
        return Optional.ofNullable(this.inboundPolicy);
    }

    /**
     * Name of the Dapr Component Resiliency Policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the Dapr Component Resiliency Policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The optional outbound component resiliency policy configuration
     * 
     */
    @Import(name="outboundPolicy")
    private @Nullable Output outboundPolicy;

    /**
     * @return The optional outbound component resiliency policy configuration
     * 
     */
    public Optional> outboundPolicy() {
        return Optional.ofNullable(this.outboundPolicy);
    }

    /**
     * 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;
    }

    private DaprComponentResiliencyPolicyArgs() {}

    private DaprComponentResiliencyPolicyArgs(DaprComponentResiliencyPolicyArgs $) {
        this.componentName = $.componentName;
        this.environmentName = $.environmentName;
        this.inboundPolicy = $.inboundPolicy;
        this.name = $.name;
        this.outboundPolicy = $.outboundPolicy;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private DaprComponentResiliencyPolicyArgs $;

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

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

        /**
         * @param componentName Name of the Dapr Component.
         * 
         * @return builder
         * 
         */
        public Builder componentName(Output componentName) {
            $.componentName = componentName;
            return this;
        }

        /**
         * @param componentName Name of the Dapr Component.
         * 
         * @return builder
         * 
         */
        public Builder componentName(String componentName) {
            return componentName(Output.of(componentName));
        }

        /**
         * @param environmentName Name of the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(Output environmentName) {
            $.environmentName = environmentName;
            return this;
        }

        /**
         * @param environmentName Name of the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(String environmentName) {
            return environmentName(Output.of(environmentName));
        }

        /**
         * @param inboundPolicy The optional inbound component resiliency policy configuration
         * 
         * @return builder
         * 
         */
        public Builder inboundPolicy(@Nullable Output inboundPolicy) {
            $.inboundPolicy = inboundPolicy;
            return this;
        }

        /**
         * @param inboundPolicy The optional inbound component resiliency policy configuration
         * 
         * @return builder
         * 
         */
        public Builder inboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs inboundPolicy) {
            return inboundPolicy(Output.of(inboundPolicy));
        }

        /**
         * @param name Name of the Dapr Component Resiliency Policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the Dapr Component Resiliency Policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param outboundPolicy The optional outbound component resiliency policy configuration
         * 
         * @return builder
         * 
         */
        public Builder outboundPolicy(@Nullable Output outboundPolicy) {
            $.outboundPolicy = outboundPolicy;
            return this;
        }

        /**
         * @param outboundPolicy The optional outbound component resiliency policy configuration
         * 
         * @return builder
         * 
         */
        public Builder outboundPolicy(DaprComponentResiliencyPolicyConfigurationArgs outboundPolicy) {
            return outboundPolicy(Output.of(outboundPolicy));
        }

        /**
         * @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));
        }

        public DaprComponentResiliencyPolicyArgs build() {
            if ($.componentName == null) {
                throw new MissingRequiredPropertyException("DaprComponentResiliencyPolicyArgs", "componentName");
            }
            if ($.environmentName == null) {
                throw new MissingRequiredPropertyException("DaprComponentResiliencyPolicyArgs", "environmentName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DaprComponentResiliencyPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy