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

com.pulumi.azurenative.fluidrelay.outputs.CustomerManagedKeyEncryptionPropertiesResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.fluidrelay.outputs.CustomerManagedKeyEncryptionPropertiesResponseKeyEncryptionKeyIdentity;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CustomerManagedKeyEncryptionPropertiesResponse {
    /**
     * @return All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
     * 
     */
    private @Nullable CustomerManagedKeyEncryptionPropertiesResponseKeyEncryptionKeyIdentity keyEncryptionKeyIdentity;
    /**
     * @return key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
     * 
     */
    private @Nullable String keyEncryptionKeyUrl;

    private CustomerManagedKeyEncryptionPropertiesResponse() {}
    /**
     * @return All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.
     * 
     */
    public Optional keyEncryptionKeyIdentity() {
        return Optional.ofNullable(this.keyEncryptionKeyIdentity);
    }
    /**
     * @return key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.
     * 
     */
    public Optional keyEncryptionKeyUrl() {
        return Optional.ofNullable(this.keyEncryptionKeyUrl);
    }

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

    public static Builder builder(CustomerManagedKeyEncryptionPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CustomerManagedKeyEncryptionPropertiesResponseKeyEncryptionKeyIdentity keyEncryptionKeyIdentity;
        private @Nullable String keyEncryptionKeyUrl;
        public Builder() {}
        public Builder(CustomerManagedKeyEncryptionPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.keyEncryptionKeyIdentity = defaults.keyEncryptionKeyIdentity;
    	      this.keyEncryptionKeyUrl = defaults.keyEncryptionKeyUrl;
        }

        @CustomType.Setter
        public Builder keyEncryptionKeyIdentity(@Nullable CustomerManagedKeyEncryptionPropertiesResponseKeyEncryptionKeyIdentity keyEncryptionKeyIdentity) {

            this.keyEncryptionKeyIdentity = keyEncryptionKeyIdentity;
            return this;
        }
        @CustomType.Setter
        public Builder keyEncryptionKeyUrl(@Nullable String keyEncryptionKeyUrl) {

            this.keyEncryptionKeyUrl = keyEncryptionKeyUrl;
            return this;
        }
        public CustomerManagedKeyEncryptionPropertiesResponse build() {
            final var _resultValue = new CustomerManagedKeyEncryptionPropertiesResponse();
            _resultValue.keyEncryptionKeyIdentity = keyEncryptionKeyIdentity;
            _resultValue.keyEncryptionKeyUrl = keyEncryptionKeyUrl;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy