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

com.pulumi.azurenative.containerstorage.inputs.EncryptionArgs 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.containerstorage.inputs;

import com.pulumi.azurenative.containerstorage.inputs.ManagedServiceIdentityArgs;
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;


/**
 * Encryption key properties for the pool.
 * 
 */
public final class EncryptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionArgs Empty = new EncryptionArgs();

    /**
     * The managed service identities assigned to this resource.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The name of the key vault key.
     * 
     */
    @Import(name="keyName", required=true)
    private Output keyName;

    /**
     * @return The name of the key vault key.
     * 
     */
    public Output keyName() {
        return this.keyName;
    }

    /**
     * The URI of the key vault.
     * 
     */
    @Import(name="keyVaultUri", required=true)
    private Output keyVaultUri;

    /**
     * @return The URI of the key vault.
     * 
     */
    public Output keyVaultUri() {
        return this.keyVaultUri;
    }

    private EncryptionArgs() {}

    private EncryptionArgs(EncryptionArgs $) {
        this.identity = $.identity;
        this.keyName = $.keyName;
        this.keyVaultUri = $.keyVaultUri;
    }

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

    public static final class Builder {
        private EncryptionArgs $;

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

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

        /**
         * @param identity The managed service identities assigned to this resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The managed service identities assigned to this resource.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param keyName The name of the key vault key.
         * 
         * @return builder
         * 
         */
        public Builder keyName(Output keyName) {
            $.keyName = keyName;
            return this;
        }

        /**
         * @param keyName The name of the key vault key.
         * 
         * @return builder
         * 
         */
        public Builder keyName(String keyName) {
            return keyName(Output.of(keyName));
        }

        /**
         * @param keyVaultUri The URI of the key vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultUri(Output keyVaultUri) {
            $.keyVaultUri = keyVaultUri;
            return this;
        }

        /**
         * @param keyVaultUri The URI of the key vault.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultUri(String keyVaultUri) {
            return keyVaultUri(Output.of(keyVaultUri));
        }

        public EncryptionArgs build() {
            if ($.keyName == null) {
                throw new MissingRequiredPropertyException("EncryptionArgs", "keyName");
            }
            if ($.keyVaultUri == null) {
                throw new MissingRequiredPropertyException("EncryptionArgs", "keyVaultUri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy