Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.sql.implementation; import com.microsoft.azure.management.sql.ServerKeyType; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource;
The server encryption protector.
/** * The server encryption protector. */
@JsonFlatten public class EncryptionProtectorInner extends ProxyResource {
Kind of encryption protector. This is metadata used for the Azure portal experience.
/** * Kind of encryption protector. This is metadata used for the Azure portal * experience. */
@JsonProperty(value = "kind") private String kind;
Resource location.
/** * Resource location. */
@JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY) private String location;
Subregion of the encryption protector.
/** * Subregion of the encryption protector. */
@JsonProperty(value = "properties.subregion", access = JsonProperty.Access.WRITE_ONLY) private String subregion;
The name of the server key.
/** * The name of the server key. */
@JsonProperty(value = "properties.serverKeyName") private String serverKeyName;
The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'.
/** * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. * Possible values include: 'ServiceManaged', 'AzureKeyVault'. */
@JsonProperty(value = "properties.serverKeyType", required = true) private ServerKeyType serverKeyType;
The URI of the server key.
/** * The URI of the server key. */
@JsonProperty(value = "properties.uri", access = JsonProperty.Access.WRITE_ONLY) private String uri;
Thumbprint of the server key.
/** * Thumbprint of the server key. */
@JsonProperty(value = "properties.thumbprint", access = JsonProperty.Access.WRITE_ONLY) private String thumbprint;
Get kind of encryption protector. This is metadata used for the Azure portal experience.
Returns:the kind value
/** * Get kind of encryption protector. This is metadata used for the Azure portal experience. * * @return the kind value */
public String kind() { return this.kind; }
Set kind of encryption protector. This is metadata used for the Azure portal experience.
Params:
  • kind – the kind value to set
Returns:the EncryptionProtectorInner object itself.
/** * Set kind of encryption protector. This is metadata used for the Azure portal experience. * * @param kind the kind value to set * @return the EncryptionProtectorInner object itself. */
public EncryptionProtectorInner withKind(String kind) { this.kind = kind; return this; }
Get resource location.
Returns:the location value
/** * Get resource location. * * @return the location value */
public String location() { return this.location; }
Get subregion of the encryption protector.
Returns:the subregion value
/** * Get subregion of the encryption protector. * * @return the subregion value */
public String subregion() { return this.subregion; }
Get the name of the server key.
Returns:the serverKeyName value
/** * Get the name of the server key. * * @return the serverKeyName value */
public String serverKeyName() { return this.serverKeyName; }
Set the name of the server key.
Params:
  • serverKeyName – the serverKeyName value to set
Returns:the EncryptionProtectorInner object itself.
/** * Set the name of the server key. * * @param serverKeyName the serverKeyName value to set * @return the EncryptionProtectorInner object itself. */
public EncryptionProtectorInner withServerKeyName(String serverKeyName) { this.serverKeyName = serverKeyName; return this; }
Get the encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'.
Returns:the serverKeyType value
/** * Get the encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'. * * @return the serverKeyType value */
public ServerKeyType serverKeyType() { return this.serverKeyType; }
Set the encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'.
Params:
  • serverKeyType – the serverKeyType value to set
Returns:the EncryptionProtectorInner object itself.
/** * Set the encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'. * * @param serverKeyType the serverKeyType value to set * @return the EncryptionProtectorInner object itself. */
public EncryptionProtectorInner withServerKeyType(ServerKeyType serverKeyType) { this.serverKeyType = serverKeyType; return this; }
Get the URI of the server key.
Returns:the uri value
/** * Get the URI of the server key. * * @return the uri value */
public String uri() { return this.uri; }
Get thumbprint of the server key.
Returns:the thumbprint value
/** * Get thumbprint of the server key. * * @return the thumbprint value */
public String thumbprint() { return this.thumbprint; } }