// *** 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.storage.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class AccountCustomerManagedKey {
    /**
     * @return The ID of the Key Vault Key, supplying a version-less key ID will enable auto-rotation of this key.
     * 
     */
    private String keyVaultKeyId;
    /**
     * @return The ID of a user assigned identity.
     * 
     * &gt; **NOTE:** `customer_managed_key` can only be set when the `account_kind` is set to `StorageV2` or `account_tier` set to `Premium`, and the identity type is `UserAssigned`.
     * 
     */
    private String userAssignedIdentityId;

    private AccountCustomerManagedKey() {}
    /**
     * @return The ID of the Key Vault Key, supplying a version-less key ID will enable auto-rotation of this key.
     * 
     */
    public String keyVaultKeyId() {
        return this.keyVaultKeyId;
    }
    /**
     * @return The ID of a user assigned identity.
     * 
     * &gt; **NOTE:** `customer_managed_key` can only be set when the `account_kind` is set to `StorageV2` or `account_tier` set to `Premium`, and the identity type is `UserAssigned`.
     * 
     */
    public String userAssignedIdentityId() {
        return this.userAssignedIdentityId;
    }

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

    public static Builder builder(AccountCustomerManagedKey defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String keyVaultKeyId;
        private String userAssignedIdentityId;
        public Builder() {}
        public Builder(AccountCustomerManagedKey defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.keyVaultKeyId = defaults.keyVaultKeyId;
    	      this.userAssignedIdentityId = defaults.userAssignedIdentityId;
        }

        @CustomType.Setter
        public Builder keyVaultKeyId(String keyVaultKeyId) {
            this.keyVaultKeyId = Objects.requireNonNull(keyVaultKeyId);
            return this;
        }
        @CustomType.Setter
        public Builder userAssignedIdentityId(String userAssignedIdentityId) {
            this.userAssignedIdentityId = Objects.requireNonNull(userAssignedIdentityId);
            return this;
        }
        public AccountCustomerManagedKey build() {
            final var o = new AccountCustomerManagedKey();
            o.keyVaultKeyId = keyVaultKeyId;
            o.userAssignedIdentityId = userAssignedIdentityId;
            return o;
        }
    }
}
