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

com.pulumi.azurenative.hybriddata.inputs.CustomerSecretArgs 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.hybriddata.inputs;

import com.pulumi.azurenative.hybriddata.enums.SupportedAlgorithm;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * The pair of customer secret.
 * 
 */
public final class CustomerSecretArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomerSecretArgs Empty = new CustomerSecretArgs();

    /**
     * The encryption algorithm used to encrypt data.
     * 
     */
    @Import(name="algorithm", required=true)
    private Output algorithm;

    /**
     * @return The encryption algorithm used to encrypt data.
     * 
     */
    public Output algorithm() {
        return this.algorithm;
    }

    /**
     * The identifier to the data service input object which this secret corresponds to.
     * 
     */
    @Import(name="keyIdentifier", required=true)
    private Output keyIdentifier;

    /**
     * @return The identifier to the data service input object which this secret corresponds to.
     * 
     */
    public Output keyIdentifier() {
        return this.keyIdentifier;
    }

    /**
     * It contains the encrypted customer secret.
     * 
     */
    @Import(name="keyValue", required=true)
    private Output keyValue;

    /**
     * @return It contains the encrypted customer secret.
     * 
     */
    public Output keyValue() {
        return this.keyValue;
    }

    private CustomerSecretArgs() {}

    private CustomerSecretArgs(CustomerSecretArgs $) {
        this.algorithm = $.algorithm;
        this.keyIdentifier = $.keyIdentifier;
        this.keyValue = $.keyValue;
    }

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

    public static final class Builder {
        private CustomerSecretArgs $;

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

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

        /**
         * @param algorithm The encryption algorithm used to encrypt data.
         * 
         * @return builder
         * 
         */
        public Builder algorithm(Output algorithm) {
            $.algorithm = algorithm;
            return this;
        }

        /**
         * @param algorithm The encryption algorithm used to encrypt data.
         * 
         * @return builder
         * 
         */
        public Builder algorithm(SupportedAlgorithm algorithm) {
            return algorithm(Output.of(algorithm));
        }

        /**
         * @param keyIdentifier The identifier to the data service input object which this secret corresponds to.
         * 
         * @return builder
         * 
         */
        public Builder keyIdentifier(Output keyIdentifier) {
            $.keyIdentifier = keyIdentifier;
            return this;
        }

        /**
         * @param keyIdentifier The identifier to the data service input object which this secret corresponds to.
         * 
         * @return builder
         * 
         */
        public Builder keyIdentifier(String keyIdentifier) {
            return keyIdentifier(Output.of(keyIdentifier));
        }

        /**
         * @param keyValue It contains the encrypted customer secret.
         * 
         * @return builder
         * 
         */
        public Builder keyValue(Output keyValue) {
            $.keyValue = keyValue;
            return this;
        }

        /**
         * @param keyValue It contains the encrypted customer secret.
         * 
         * @return builder
         * 
         */
        public Builder keyValue(String keyValue) {
            return keyValue(Output.of(keyValue));
        }

        public CustomerSecretArgs build() {
            if ($.algorithm == null) {
                throw new MissingRequiredPropertyException("CustomerSecretArgs", "algorithm");
            }
            if ($.keyIdentifier == null) {
                throw new MissingRequiredPropertyException("CustomerSecretArgs", "keyIdentifier");
            }
            if ($.keyValue == null) {
                throw new MissingRequiredPropertyException("CustomerSecretArgs", "keyValue");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy