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

com.pulumi.azurenative.servicefabricmesh.SecretValueArgs 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.servicefabricmesh;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecretValueArgs Empty = new SecretValueArgs();

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Azure resource group name
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Azure resource group name
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the secret resource.
     * 
     */
    @Import(name="secretResourceName", required=true)
    private Output secretResourceName;

    /**
     * @return The name of the secret resource.
     * 
     */
    public Output secretResourceName() {
        return this.secretResourceName;
    }

    /**
     * The name of the secret resource value which is typically the version identifier for the value.
     * 
     */
    @Import(name="secretValueResourceName")
    private @Nullable Output secretValueResourceName;

    /**
     * @return The name of the secret resource value which is typically the version identifier for the value.
     * 
     */
    public Optional> secretValueResourceName() {
        return Optional.ofNullable(this.secretValueResourceName);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The actual value of the secret.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The actual value of the secret.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private SecretValueArgs() {}

    private SecretValueArgs(SecretValueArgs $) {
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.secretResourceName = $.secretResourceName;
        this.secretValueResourceName = $.secretValueResourceName;
        this.tags = $.tags;
        this.value = $.value;
    }

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

    public static final class Builder {
        private SecretValueArgs $;

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

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

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param resourceGroupName Azure resource group name
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Azure resource group name
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param secretResourceName The name of the secret resource.
         * 
         * @return builder
         * 
         */
        public Builder secretResourceName(Output secretResourceName) {
            $.secretResourceName = secretResourceName;
            return this;
        }

        /**
         * @param secretResourceName The name of the secret resource.
         * 
         * @return builder
         * 
         */
        public Builder secretResourceName(String secretResourceName) {
            return secretResourceName(Output.of(secretResourceName));
        }

        /**
         * @param secretValueResourceName The name of the secret resource value which is typically the version identifier for the value.
         * 
         * @return builder
         * 
         */
        public Builder secretValueResourceName(@Nullable Output secretValueResourceName) {
            $.secretValueResourceName = secretValueResourceName;
            return this;
        }

        /**
         * @param secretValueResourceName The name of the secret resource value which is typically the version identifier for the value.
         * 
         * @return builder
         * 
         */
        public Builder secretValueResourceName(String secretValueResourceName) {
            return secretValueResourceName(Output.of(secretValueResourceName));
        }

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param value The actual value of the secret.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The actual value of the secret.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy