Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.sql; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.apigeneration.Method; import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasId; import com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup; import com.microsoft.azure.management.resources.fluentcore.model.Appliable; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; import com.microsoft.azure.management.resources.fluentcore.model.Indexable; import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; import com.microsoft.azure.management.resources.fluentcore.model.Updatable; import com.microsoft.azure.management.sql.implementation.EncryptionProtectorInner;
An immutable client-side representation of an Azure SQL Encryption Protector.
/** * An immutable client-side representation of an Azure SQL Encryption Protector. */
@Fluent @Beta(Beta.SinceVersion.V1_9_0) public interface SqlEncryptionProtector extends HasId, HasInner<EncryptionProtectorInner>, HasResourceGroup, Indexable, Refreshable<SqlEncryptionProtector>, Updatable<SqlEncryptionProtector.Update> {
Returns:name of the SQL Server to which this DNS alias belongs
/** * @return name of the SQL Server to which this DNS alias belongs */
String sqlServerName();
Returns:the parent SQL server ID
/** * @return the parent SQL server ID */
String parentId();
Returns: the kind of encryption protector; this is metadata used for the Azure Portal experience
/** * @return the kind of encryption protector; this is metadata used for the Azure Portal experience */
String kind();
Returns:the resource location
/** * @return the resource location */
Region region();
Returns:the name of the server key
/** * @return the name of the server key */
String serverKeyName();
Returns:the encryption protector type
/** * @return the encryption protector type */
ServerKeyType serverKeyType();
Returns:the URI of the server key
/** * @return the URI of the server key */
String uri();
Returns:thumbprint of the server key
/** * @return thumbprint of the server key */
String thumbprint();
The template for a SQL Encryption Protector update operation, containing all the settings that can be modified.
/** * The template for a SQL Encryption Protector update operation, containing all the settings that can be modified. */
interface Update extends SqlEncryptionProtector.UpdateStages.WithServerKeyNameAndType, Appliable<SqlEncryptionProtector> { }
Grouping of all the SQL Encryption Protector update stages.
/** * Grouping of all the SQL Encryption Protector update stages. */
interface UpdateStages {
The SQL Encryption Protector update definition to set the server key name and type.
/** * The SQL Encryption Protector update definition to set the server key name and type. */
@Beta(Beta.SinceVersion.V1_9_0) interface WithServerKeyNameAndType {
Updates the Encryption Protector to use an AzureKeyVault server key.
Params:
  • serverKeyName – the server key name
Returns:The next stage of the definition.
/** * Updates the Encryption Protector to use an AzureKeyVault server key. * * @param serverKeyName the server key name * @return The next stage of the definition. */
SqlEncryptionProtector.Update withAzureKeyVaultServerKey(String serverKeyName);
Updates the Encryption Protector to use the default service managed server key.
Returns:The next stage of the definition.
/** * Updates the Encryption Protector to use the default service managed server key. * * @return The next stage of the definition. */
@Method SqlEncryptionProtector.Update withServiceManagedServerKey(); } } }