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

com.pulumi.azurenative.dbformysql.inputs.DataEncryptionArgs 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.dbformysql.inputs;

import com.pulumi.azurenative.dbformysql.enums.DataEncryptionType;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The date encryption for cmk.
 * 
 */
public final class DataEncryptionArgs extends com.pulumi.resources.ResourceArgs {

    public static final DataEncryptionArgs Empty = new DataEncryptionArgs();

    /**
     * Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
     * 
     */
    @Import(name="geoBackupKeyURI")
    private @Nullable Output geoBackupKeyURI;

    /**
     * @return Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
     * 
     */
    public Optional> geoBackupKeyURI() {
        return Optional.ofNullable(this.geoBackupKeyURI);
    }

    /**
     * Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
     * 
     */
    @Import(name="geoBackupUserAssignedIdentityId")
    private @Nullable Output geoBackupUserAssignedIdentityId;

    /**
     * @return Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
     * 
     */
    public Optional> geoBackupUserAssignedIdentityId() {
        return Optional.ofNullable(this.geoBackupUserAssignedIdentityId);
    }

    /**
     * Primary key uri
     * 
     */
    @Import(name="primaryKeyURI")
    private @Nullable Output primaryKeyURI;

    /**
     * @return Primary key uri
     * 
     */
    public Optional> primaryKeyURI() {
        return Optional.ofNullable(this.primaryKeyURI);
    }

    /**
     * Primary user identity resource id
     * 
     */
    @Import(name="primaryUserAssignedIdentityId")
    private @Nullable Output primaryUserAssignedIdentityId;

    /**
     * @return Primary user identity resource id
     * 
     */
    public Optional> primaryUserAssignedIdentityId() {
        return Optional.ofNullable(this.primaryUserAssignedIdentityId);
    }

    /**
     * The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private DataEncryptionArgs() {}

    private DataEncryptionArgs(DataEncryptionArgs $) {
        this.geoBackupKeyURI = $.geoBackupKeyURI;
        this.geoBackupUserAssignedIdentityId = $.geoBackupUserAssignedIdentityId;
        this.primaryKeyURI = $.primaryKeyURI;
        this.primaryUserAssignedIdentityId = $.primaryUserAssignedIdentityId;
        this.type = $.type;
    }

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

    public static final class Builder {
        private DataEncryptionArgs $;

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

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

        /**
         * @param geoBackupKeyURI Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
         * 
         * @return builder
         * 
         */
        public Builder geoBackupKeyURI(@Nullable Output geoBackupKeyURI) {
            $.geoBackupKeyURI = geoBackupKeyURI;
            return this;
        }

        /**
         * @param geoBackupKeyURI Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
         * 
         * @return builder
         * 
         */
        public Builder geoBackupKeyURI(String geoBackupKeyURI) {
            return geoBackupKeyURI(Output.of(geoBackupKeyURI));
        }

        /**
         * @param geoBackupUserAssignedIdentityId Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
         * 
         * @return builder
         * 
         */
        public Builder geoBackupUserAssignedIdentityId(@Nullable Output geoBackupUserAssignedIdentityId) {
            $.geoBackupUserAssignedIdentityId = geoBackupUserAssignedIdentityId;
            return this;
        }

        /**
         * @param geoBackupUserAssignedIdentityId Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
         * 
         * @return builder
         * 
         */
        public Builder geoBackupUserAssignedIdentityId(String geoBackupUserAssignedIdentityId) {
            return geoBackupUserAssignedIdentityId(Output.of(geoBackupUserAssignedIdentityId));
        }

        /**
         * @param primaryKeyURI Primary key uri
         * 
         * @return builder
         * 
         */
        public Builder primaryKeyURI(@Nullable Output primaryKeyURI) {
            $.primaryKeyURI = primaryKeyURI;
            return this;
        }

        /**
         * @param primaryKeyURI Primary key uri
         * 
         * @return builder
         * 
         */
        public Builder primaryKeyURI(String primaryKeyURI) {
            return primaryKeyURI(Output.of(primaryKeyURI));
        }

        /**
         * @param primaryUserAssignedIdentityId Primary user identity resource id
         * 
         * @return builder
         * 
         */
        public Builder primaryUserAssignedIdentityId(@Nullable Output primaryUserAssignedIdentityId) {
            $.primaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
            return this;
        }

        /**
         * @param primaryUserAssignedIdentityId Primary user identity resource id
         * 
         * @return builder
         * 
         */
        public Builder primaryUserAssignedIdentityId(String primaryUserAssignedIdentityId) {
            return primaryUserAssignedIdentityId(Output.of(primaryUserAssignedIdentityId));
        }

        /**
         * @param type The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
         * 
         * @return builder
         * 
         */
        public Builder type(DataEncryptionType type) {
            return type(Output.of(type));
        }

        public DataEncryptionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy