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

com.pulumi.azurenative.synapse.inputs.SecureStringArgs 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.synapse.inputs;

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;


/**
 * Azure Synapse secure string definition. The string value will be masked with asterisks '*' during Get or List API calls.
 * 
 */
public final class SecureStringArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecureStringArgs Empty = new SecureStringArgs();

    /**
     * Type of the secret.
     * Expected value is 'SecureString'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of the secret.
     * Expected value is 'SecureString'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Value of secure string.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Value of secure string.
     * 
     */
    public Output value() {
        return this.value;
    }

    private SecureStringArgs() {}

    private SecureStringArgs(SecureStringArgs $) {
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private SecureStringArgs $;

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

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

        /**
         * @param type Type of the secret.
         * Expected value is 'SecureString'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the secret.
         * Expected value is 'SecureString'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value Value of secure string.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Value of secure string.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public SecureStringArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            if ($.value == null) {
                throw new MissingRequiredPropertyException("SecureStringArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy