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

com.pulumi.azure.keyvault.inputs.GetEncryptedValueArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.keyvault.inputs;

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


public final class GetEncryptedValueArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetEncryptedValueArgs Empty = new GetEncryptedValueArgs();

    /**
     * The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are `RSA1_5`, `RSA-OAEP` and `RSA-OAEP-256`.
     * 
     */
    @Import(name="algorithm", required=true)
    private Output algorithm;

    /**
     * @return The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are `RSA1_5`, `RSA-OAEP` and `RSA-OAEP-256`.
     * 
     */
    public Output algorithm() {
        return this.algorithm;
    }

    /**
     * The Base64 URL Encoded Encrypted Data which should be decrypted into `plain_text_value`.
     * 
     */
    @Import(name="encryptedData")
    private @Nullable Output encryptedData;

    /**
     * @return The Base64 URL Encoded Encrypted Data which should be decrypted into `plain_text_value`.
     * 
     */
    public Optional> encryptedData() {
        return Optional.ofNullable(this.encryptedData);
    }

    /**
     * The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
     * 
     */
    @Import(name="keyVaultKeyId", required=true)
    private Output keyVaultKeyId;

    /**
     * @return The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
     * 
     */
    public Output keyVaultKeyId() {
        return this.keyVaultKeyId;
    }

    /**
     * The plain-text value which should be Encrypted into `encrypted_data`.
     * 
     * > **Note:** One of either `encrypted_data` or `plain_text_value` must be specified and is used to populate the encrypted/decrypted value for the other field.
     * 
     */
    @Import(name="plainTextValue")
    private @Nullable Output plainTextValue;

    /**
     * @return The plain-text value which should be Encrypted into `encrypted_data`.
     * 
     * > **Note:** One of either `encrypted_data` or `plain_text_value` must be specified and is used to populate the encrypted/decrypted value for the other field.
     * 
     */
    public Optional> plainTextValue() {
        return Optional.ofNullable(this.plainTextValue);
    }

    private GetEncryptedValueArgs() {}

    private GetEncryptedValueArgs(GetEncryptedValueArgs $) {
        this.algorithm = $.algorithm;
        this.encryptedData = $.encryptedData;
        this.keyVaultKeyId = $.keyVaultKeyId;
        this.plainTextValue = $.plainTextValue;
    }

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

    public static final class Builder {
        private GetEncryptedValueArgs $;

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

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

        /**
         * @param algorithm The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are `RSA1_5`, `RSA-OAEP` and `RSA-OAEP-256`.
         * 
         * @return builder
         * 
         */
        public Builder algorithm(Output algorithm) {
            $.algorithm = algorithm;
            return this;
        }

        /**
         * @param algorithm The Algorithm which should be used to Decrypt/Encrypt this Value. Possible values are `RSA1_5`, `RSA-OAEP` and `RSA-OAEP-256`.
         * 
         * @return builder
         * 
         */
        public Builder algorithm(String algorithm) {
            return algorithm(Output.of(algorithm));
        }

        /**
         * @param encryptedData The Base64 URL Encoded Encrypted Data which should be decrypted into `plain_text_value`.
         * 
         * @return builder
         * 
         */
        public Builder encryptedData(@Nullable Output encryptedData) {
            $.encryptedData = encryptedData;
            return this;
        }

        /**
         * @param encryptedData The Base64 URL Encoded Encrypted Data which should be decrypted into `plain_text_value`.
         * 
         * @return builder
         * 
         */
        public Builder encryptedData(String encryptedData) {
            return encryptedData(Output.of(encryptedData));
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(Output keyVaultKeyId) {
            $.keyVaultKeyId = keyVaultKeyId;
            return this;
        }

        /**
         * @param keyVaultKeyId The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultKeyId(String keyVaultKeyId) {
            return keyVaultKeyId(Output.of(keyVaultKeyId));
        }

        /**
         * @param plainTextValue The plain-text value which should be Encrypted into `encrypted_data`.
         * 
         * > **Note:** One of either `encrypted_data` or `plain_text_value` must be specified and is used to populate the encrypted/decrypted value for the other field.
         * 
         * @return builder
         * 
         */
        public Builder plainTextValue(@Nullable Output plainTextValue) {
            $.plainTextValue = plainTextValue;
            return this;
        }

        /**
         * @param plainTextValue The plain-text value which should be Encrypted into `encrypted_data`.
         * 
         * > **Note:** One of either `encrypted_data` or `plain_text_value` must be specified and is used to populate the encrypted/decrypted value for the other field.
         * 
         * @return builder
         * 
         */
        public Builder plainTextValue(String plainTextValue) {
            return plainTextValue(Output.of(plainTextValue));
        }

        public GetEncryptedValueArgs build() {
            if ($.algorithm == null) {
                throw new MissingRequiredPropertyException("GetEncryptedValueArgs", "algorithm");
            }
            if ($.keyVaultKeyId == null) {
                throw new MissingRequiredPropertyException("GetEncryptedValueArgs", "keyVaultKeyId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy