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

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

import com.pulumi.azurenative.app.inputs.DaprMetadataArgs;
import com.pulumi.azurenative.app.inputs.SecretArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DaprComponentArgs Empty = new DaprComponentArgs();

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

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

    /**
     * Component type
     * 
     */
    @Import(name="componentType")
    private @Nullable Output componentType;

    /**
     * @return Component type
     * 
     */
    public Optional> componentType() {
        return Optional.ofNullable(this.componentType);
    }

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

    /**
     * Boolean describing if the component errors are ignores
     * 
     */
    @Import(name="ignoreErrors")
    private @Nullable Output ignoreErrors;

    /**
     * @return Boolean describing if the component errors are ignores
     * 
     */
    public Optional> ignoreErrors() {
        return Optional.ofNullable(this.ignoreErrors);
    }

    /**
     * Initialization timeout
     * 
     */
    @Import(name="initTimeout")
    private @Nullable Output initTimeout;

    /**
     * @return Initialization timeout
     * 
     */
    public Optional> initTimeout() {
        return Optional.ofNullable(this.initTimeout);
    }

    /**
     * Component metadata
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return Component metadata
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

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

    /**
     * Names of container apps that can use this Dapr component
     * 
     */
    @Import(name="scopes")
    private @Nullable Output> scopes;

    /**
     * @return Names of container apps that can use this Dapr component
     * 
     */
    public Optional>> scopes() {
        return Optional.ofNullable(this.scopes);
    }

    /**
     * Name of a Dapr component to retrieve component secrets from
     * 
     */
    @Import(name="secretStoreComponent")
    private @Nullable Output secretStoreComponent;

    /**
     * @return Name of a Dapr component to retrieve component secrets from
     * 
     */
    public Optional> secretStoreComponent() {
        return Optional.ofNullable(this.secretStoreComponent);
    }

    /**
     * Collection of secrets used by a Dapr component
     * 
     */
    @Import(name="secrets")
    private @Nullable Output> secrets;

    /**
     * @return Collection of secrets used by a Dapr component
     * 
     */
    public Optional>> secrets() {
        return Optional.ofNullable(this.secrets);
    }

    /**
     * Component version
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Component version
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private DaprComponentArgs() {}

    private DaprComponentArgs(DaprComponentArgs $) {
        this.componentName = $.componentName;
        this.componentType = $.componentType;
        this.environmentName = $.environmentName;
        this.ignoreErrors = $.ignoreErrors;
        this.initTimeout = $.initTimeout;
        this.metadata = $.metadata;
        this.resourceGroupName = $.resourceGroupName;
        this.scopes = $.scopes;
        this.secretStoreComponent = $.secretStoreComponent;
        this.secrets = $.secrets;
        this.version = $.version;
    }

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

    public static final class Builder {
        private DaprComponentArgs $;

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

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

        /**
         * @param componentName Name of the Dapr Component.
         * 
         * @return builder
         * 
         */
        public Builder componentName(@Nullable 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 componentType Component type
         * 
         * @return builder
         * 
         */
        public Builder componentType(@Nullable Output componentType) {
            $.componentType = componentType;
            return this;
        }

        /**
         * @param componentType Component type
         * 
         * @return builder
         * 
         */
        public Builder componentType(String componentType) {
            return componentType(Output.of(componentType));
        }

        /**
         * @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 ignoreErrors Boolean describing if the component errors are ignores
         * 
         * @return builder
         * 
         */
        public Builder ignoreErrors(@Nullable Output ignoreErrors) {
            $.ignoreErrors = ignoreErrors;
            return this;
        }

        /**
         * @param ignoreErrors Boolean describing if the component errors are ignores
         * 
         * @return builder
         * 
         */
        public Builder ignoreErrors(Boolean ignoreErrors) {
            return ignoreErrors(Output.of(ignoreErrors));
        }

        /**
         * @param initTimeout Initialization timeout
         * 
         * @return builder
         * 
         */
        public Builder initTimeout(@Nullable Output initTimeout) {
            $.initTimeout = initTimeout;
            return this;
        }

        /**
         * @param initTimeout Initialization timeout
         * 
         * @return builder
         * 
         */
        public Builder initTimeout(String initTimeout) {
            return initTimeout(Output.of(initTimeout));
        }

        /**
         * @param metadata Component metadata
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Component metadata
         * 
         * @return builder
         * 
         */
        public Builder metadata(List metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param metadata Component metadata
         * 
         * @return builder
         * 
         */
        public Builder metadata(DaprMetadataArgs... metadata) {
            return metadata(List.of(metadata));
        }

        /**
         * @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 scopes Names of container apps that can use this Dapr component
         * 
         * @return builder
         * 
         */
        public Builder scopes(@Nullable Output> scopes) {
            $.scopes = scopes;
            return this;
        }

        /**
         * @param scopes Names of container apps that can use this Dapr component
         * 
         * @return builder
         * 
         */
        public Builder scopes(List scopes) {
            return scopes(Output.of(scopes));
        }

        /**
         * @param scopes Names of container apps that can use this Dapr component
         * 
         * @return builder
         * 
         */
        public Builder scopes(String... scopes) {
            return scopes(List.of(scopes));
        }

        /**
         * @param secretStoreComponent Name of a Dapr component to retrieve component secrets from
         * 
         * @return builder
         * 
         */
        public Builder secretStoreComponent(@Nullable Output secretStoreComponent) {
            $.secretStoreComponent = secretStoreComponent;
            return this;
        }

        /**
         * @param secretStoreComponent Name of a Dapr component to retrieve component secrets from
         * 
         * @return builder
         * 
         */
        public Builder secretStoreComponent(String secretStoreComponent) {
            return secretStoreComponent(Output.of(secretStoreComponent));
        }

        /**
         * @param secrets Collection of secrets used by a Dapr component
         * 
         * @return builder
         * 
         */
        public Builder secrets(@Nullable Output> secrets) {
            $.secrets = secrets;
            return this;
        }

        /**
         * @param secrets Collection of secrets used by a Dapr component
         * 
         * @return builder
         * 
         */
        public Builder secrets(List secrets) {
            return secrets(Output.of(secrets));
        }

        /**
         * @param secrets Collection of secrets used by a Dapr component
         * 
         * @return builder
         * 
         */
        public Builder secrets(SecretArgs... secrets) {
            return secrets(List.of(secrets));
        }

        /**
         * @param version Component version
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Component version
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public DaprComponentArgs build() {
            if ($.environmentName == null) {
                throw new MissingRequiredPropertyException("DaprComponentArgs", "environmentName");
            }
            $.ignoreErrors = Codegen.booleanProp("ignoreErrors").output().arg($.ignoreErrors).def(false).getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DaprComponentArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy