EncryptionProtectorInner Class

public final class EncryptionProtectorInner
extends ProxyResource

The server encryption protector.

Constructor Summary

Constructor Description
EncryptionProtectorInner()

Creates an instance of EncryptionProtectorInner class.

Method Summary

Modifier and Type Method and Description
Boolean autoRotationEnabled()

Get the autoRotationEnabled property: Key auto rotation opt-in flag.

static EncryptionProtectorInner fromJson(JsonReader jsonReader)

Reads an instance of EncryptionProtectorInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Kind of encryption protector.

String location()

Get the location property: Resource location.

String name()

Get the name property: The name of the resource.

String serverKeyName()

Get the serverKeyName property: The name of the server key.

ServerKeyType serverKeyType()

Get the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.

String subregion()

Get the subregion property: Subregion of the encryption protector.

String thumbprint()

Get the thumbprint property: Thumbprint of the server key.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String uri()

Get the uri property: The URI of the server key.

void validate()

Validates the instance.

EncryptionProtectorInner withAutoRotationEnabled(Boolean autoRotationEnabled)

Set the autoRotationEnabled property: Key auto rotation opt-in flag.

EncryptionProtectorInner withServerKeyName(String serverKeyName)

Set the serverKeyName property: The name of the server key.

EncryptionProtectorInner withServerKeyType(ServerKeyType serverKeyType)

Set the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

EncryptionProtectorInner

public EncryptionProtectorInner()

Creates an instance of EncryptionProtectorInner class.

Method Details

autoRotationEnabled

public Boolean autoRotationEnabled()

Get the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.

Returns:

the autoRotationEnabled value.

fromJson

public static EncryptionProtectorInner fromJson(JsonReader jsonReader)

Reads an instance of EncryptionProtectorInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EncryptionProtectorInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

EncryptionProtectorInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Kind of encryption protector. This is metadata used for the Azure portal experience.

Returns:

the kind value.

location

public String location()

Get the location property: Resource location.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

EncryptionProtectorInner.name()

Returns:

the name value.

serverKeyName

public String serverKeyName()

Get the serverKeyName property: The name of the server key.

Returns:

the serverKeyName value.

serverKeyType

public ServerKeyType serverKeyType()

Get the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.

Returns:

the serverKeyType value.

subregion

public String subregion()

Get the subregion property: Subregion of the encryption protector.

Returns:

the subregion value.

thumbprint

public String thumbprint()

Get the thumbprint property: Thumbprint of the server key.

Returns:

the thumbprint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EncryptionProtectorInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

EncryptionProtectorInner.type()

Returns:

the type value.

uri

public String uri()

Get the uri property: The URI of the server key.

Returns:

the uri value.

validate

public void validate()

Validates the instance.

withAutoRotationEnabled

public EncryptionProtectorInner withAutoRotationEnabled(Boolean autoRotationEnabled)

Set the autoRotationEnabled property: Key auto rotation opt-in flag. Either true or false.

Parameters:

autoRotationEnabled - the autoRotationEnabled value to set.

Returns:

the EncryptionProtectorInner object itself.

withServerKeyName

public EncryptionProtectorInner withServerKeyName(String serverKeyName)

Set the serverKeyName property: The name of the server key.

Parameters:

serverKeyName - the serverKeyName value to set.

Returns:

the EncryptionProtectorInner object itself.

withServerKeyType

public EncryptionProtectorInner withServerKeyType(ServerKeyType serverKeyType)

Set the serverKeyType property: The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.

Parameters:

serverKeyType - the serverKeyType value to set.

Returns:

the EncryptionProtectorInner object itself.

Applies to