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

com.pulumi.azure.keyvault.inputs.GetEncryptedValuePlainArgs 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.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 GetEncryptedValuePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetEncryptedValuePlainArgs Empty = new GetEncryptedValuePlainArgs();

    /**
     * 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 String 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 String algorithm() {
        return this.algorithm;
    }

    /**
     * The Base64 URL Encoded Encrypted Data which should be decrypted into `plain_text_value`.
     * 
     */
    @Import(name="encryptedData")
    private @Nullable String 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 String keyVaultKeyId;

    /**
     * @return The ID of the Key Vault Key which should be used to Decrypt/Encrypt this Value.
     * 
     */
    public String 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 String 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 GetEncryptedValuePlainArgs() {}

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

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

    public static final class Builder {
        private GetEncryptedValuePlainArgs $;

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

        public Builder(GetEncryptedValuePlainArgs defaults) {
            $ = new GetEncryptedValuePlainArgs(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(String algorithm) {
            $.algorithm = algorithm;
            return this;
        }

        /**
         * @param encryptedData The Base64 URL Encoded Encrypted Data which should be decrypted into `plain_text_value`.
         * 
         * @return builder
         * 
         */
        public Builder encryptedData(@Nullable String encryptedData) {
            $.encryptedData = encryptedData;
            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) {
            $.keyVaultKeyId = keyVaultKeyId;
            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(@Nullable String plainTextValue) {
            $.plainTextValue = plainTextValue;
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy