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

com.pulumi.azurenative.sql.EncryptionProtectorArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.sql;

import com.pulumi.azurenative.sql.enums.ServerKeyType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class EncryptionProtectorArgs extends com.pulumi.resources.ResourceArgs {

    public static final EncryptionProtectorArgs Empty = new EncryptionProtectorArgs();

    /**
     * Key auto rotation opt-in flag. Either true or false.
     * 
     */
    @Import(name="autoRotationEnabled")
    private @Nullable Output autoRotationEnabled;

    /**
     * @return Key auto rotation opt-in flag. Either true or false.
     * 
     */
    public Optional> autoRotationEnabled() {
        return Optional.ofNullable(this.autoRotationEnabled);
    }

    /**
     * The name of the encryption protector to be updated.
     * 
     */
    @Import(name="encryptionProtectorName")
    private @Nullable Output encryptionProtectorName;

    /**
     * @return The name of the encryption protector to be updated.
     * 
     */
    public Optional> encryptionProtectorName() {
        return Optional.ofNullable(this.encryptionProtectorName);
    }

    /**
     * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the server key.
     * 
     */
    @Import(name="serverKeyName")
    private @Nullable Output serverKeyName;

    /**
     * @return The name of the server key.
     * 
     */
    public Optional> serverKeyName() {
        return Optional.ofNullable(this.serverKeyName);
    }

    /**
     * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
     * 
     */
    @Import(name="serverKeyType", required=true)
    private Output> serverKeyType;

    /**
     * @return The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
     * 
     */
    public Output> serverKeyType() {
        return this.serverKeyType;
    }

    /**
     * The name of the server.
     * 
     */
    @Import(name="serverName", required=true)
    private Output serverName;

    /**
     * @return The name of the server.
     * 
     */
    public Output serverName() {
        return this.serverName;
    }

    private EncryptionProtectorArgs() {}

    private EncryptionProtectorArgs(EncryptionProtectorArgs $) {
        this.autoRotationEnabled = $.autoRotationEnabled;
        this.encryptionProtectorName = $.encryptionProtectorName;
        this.resourceGroupName = $.resourceGroupName;
        this.serverKeyName = $.serverKeyName;
        this.serverKeyType = $.serverKeyType;
        this.serverName = $.serverName;
    }

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

    public static final class Builder {
        private EncryptionProtectorArgs $;

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

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

        /**
         * @param autoRotationEnabled Key auto rotation opt-in flag. Either true or false.
         * 
         * @return builder
         * 
         */
        public Builder autoRotationEnabled(@Nullable Output autoRotationEnabled) {
            $.autoRotationEnabled = autoRotationEnabled;
            return this;
        }

        /**
         * @param autoRotationEnabled Key auto rotation opt-in flag. Either true or false.
         * 
         * @return builder
         * 
         */
        public Builder autoRotationEnabled(Boolean autoRotationEnabled) {
            return autoRotationEnabled(Output.of(autoRotationEnabled));
        }

        /**
         * @param encryptionProtectorName The name of the encryption protector to be updated.
         * 
         * @return builder
         * 
         */
        public Builder encryptionProtectorName(@Nullable Output encryptionProtectorName) {
            $.encryptionProtectorName = encryptionProtectorName;
            return this;
        }

        /**
         * @param encryptionProtectorName The name of the encryption protector to be updated.
         * 
         * @return builder
         * 
         */
        public Builder encryptionProtectorName(String encryptionProtectorName) {
            return encryptionProtectorName(Output.of(encryptionProtectorName));
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

        /**
         * @param serverKeyType The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
         * 
         * @return builder
         * 
         */
        public Builder serverKeyType(Output> serverKeyType) {
            $.serverKeyType = serverKeyType;
            return this;
        }

        /**
         * @param serverKeyType The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
         * 
         * @return builder
         * 
         */
        public Builder serverKeyType(Either serverKeyType) {
            return serverKeyType(Output.of(serverKeyType));
        }

        /**
         * @param serverKeyType The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
         * 
         * @return builder
         * 
         */
        public Builder serverKeyType(String serverKeyType) {
            return serverKeyType(Either.ofLeft(serverKeyType));
        }

        /**
         * @param serverKeyType The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.
         * 
         * @return builder
         * 
         */
        public Builder serverKeyType(ServerKeyType serverKeyType) {
            return serverKeyType(Either.ofRight(serverKeyType));
        }

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

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

        public EncryptionProtectorArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("EncryptionProtectorArgs", "resourceGroupName");
            }
            if ($.serverKeyType == null) {
                throw new MissingRequiredPropertyException("EncryptionProtectorArgs", "serverKeyType");
            }
            if ($.serverName == null) {
                throw new MissingRequiredPropertyException("EncryptionProtectorArgs", "serverName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy