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

com.pulumi.azurenative.hybridnetwork.inputs.ConfigurationValueWithSecretsArgs Maven / Gradle / Ivy

// *** 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.hybridnetwork.inputs;

import com.pulumi.azurenative.hybridnetwork.inputs.OpenDeploymentResourceReferenceArgs;
import com.pulumi.azurenative.hybridnetwork.inputs.SecretDeploymentResourceReferenceArgs;
import com.pulumi.core.Either;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The ConfigurationValue with secrets.
 * 
 */
public final class ConfigurationValueWithSecretsArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigurationValueWithSecretsArgs Empty = new ConfigurationValueWithSecretsArgs();

    /**
     * The configuration group schema resource reference.
     * 
     */
    @Import(name="configurationGroupSchemaResourceReference")
    private @Nullable Output> configurationGroupSchemaResourceReference;

    /**
     * @return The configuration group schema resource reference.
     * 
     */
    public Optional>> configurationGroupSchemaResourceReference() {
        return Optional.ofNullable(this.configurationGroupSchemaResourceReference);
    }

    /**
     * The secret type which indicates if secret or not.
     * Expected value is 'Secret'.
     * 
     */
    @Import(name="configurationType", required=true)
    private Output configurationType;

    /**
     * @return The secret type which indicates if secret or not.
     * Expected value is 'Secret'.
     * 
     */
    public Output configurationType() {
        return this.configurationType;
    }

    /**
     * Name and value pairs that define the configuration value secrets. It can be a well formed escaped JSON string.
     * 
     */
    @Import(name="secretConfigurationValue")
    private @Nullable Output secretConfigurationValue;

    /**
     * @return Name and value pairs that define the configuration value secrets. It can be a well formed escaped JSON string.
     * 
     */
    public Optional> secretConfigurationValue() {
        return Optional.ofNullable(this.secretConfigurationValue);
    }

    private ConfigurationValueWithSecretsArgs() {}

    private ConfigurationValueWithSecretsArgs(ConfigurationValueWithSecretsArgs $) {
        this.configurationGroupSchemaResourceReference = $.configurationGroupSchemaResourceReference;
        this.configurationType = $.configurationType;
        this.secretConfigurationValue = $.secretConfigurationValue;
    }

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

    public static final class Builder {
        private ConfigurationValueWithSecretsArgs $;

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

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

        /**
         * @param configurationGroupSchemaResourceReference The configuration group schema resource reference.
         * 
         * @return builder
         * 
         */
        public Builder configurationGroupSchemaResourceReference(@Nullable Output> configurationGroupSchemaResourceReference) {
            $.configurationGroupSchemaResourceReference = configurationGroupSchemaResourceReference;
            return this;
        }

        /**
         * @param configurationGroupSchemaResourceReference The configuration group schema resource reference.
         * 
         * @return builder
         * 
         */
        public Builder configurationGroupSchemaResourceReference(Either configurationGroupSchemaResourceReference) {
            return configurationGroupSchemaResourceReference(Output.of(configurationGroupSchemaResourceReference));
        }

        /**
         * @param configurationGroupSchemaResourceReference The configuration group schema resource reference.
         * 
         * @return builder
         * 
         */
        public Builder configurationGroupSchemaResourceReference(OpenDeploymentResourceReferenceArgs configurationGroupSchemaResourceReference) {
            return configurationGroupSchemaResourceReference(Either.ofLeft(configurationGroupSchemaResourceReference));
        }

        /**
         * @param configurationGroupSchemaResourceReference The configuration group schema resource reference.
         * 
         * @return builder
         * 
         */
        public Builder configurationGroupSchemaResourceReference(SecretDeploymentResourceReferenceArgs configurationGroupSchemaResourceReference) {
            return configurationGroupSchemaResourceReference(Either.ofRight(configurationGroupSchemaResourceReference));
        }

        /**
         * @param configurationType The secret type which indicates if secret or not.
         * Expected value is 'Secret'.
         * 
         * @return builder
         * 
         */
        public Builder configurationType(Output configurationType) {
            $.configurationType = configurationType;
            return this;
        }

        /**
         * @param configurationType The secret type which indicates if secret or not.
         * Expected value is 'Secret'.
         * 
         * @return builder
         * 
         */
        public Builder configurationType(String configurationType) {
            return configurationType(Output.of(configurationType));
        }

        /**
         * @param secretConfigurationValue Name and value pairs that define the configuration value secrets. It can be a well formed escaped JSON string.
         * 
         * @return builder
         * 
         */
        public Builder secretConfigurationValue(@Nullable Output secretConfigurationValue) {
            $.secretConfigurationValue = secretConfigurationValue;
            return this;
        }

        /**
         * @param secretConfigurationValue Name and value pairs that define the configuration value secrets. It can be a well formed escaped JSON string.
         * 
         * @return builder
         * 
         */
        public Builder secretConfigurationValue(String secretConfigurationValue) {
            return secretConfigurationValue(Output.of(secretConfigurationValue));
        }

        public ConfigurationValueWithSecretsArgs build() {
            $.configurationType = Codegen.stringProp("configurationType").output().arg($.configurationType).require();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy