次の方法で共有


Encryption Class

  • java.lang.Object
    • com.azure.resourcemanager.avs.models.Encryption

Implements

public final class Encryption
implements JsonSerializable<Encryption>

The properties of customer managed encryption key.

Constructor Summary

Constructor Description
Encryption()

Creates an instance of Encryption class.

Method Summary

Modifier and Type Method and Description
static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

EncryptionKeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: The key vault where the encryption key is stored.

EncryptionState status()

Get the status property: Status of customer managed encryption key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Encryption withKeyVaultProperties(EncryptionKeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: The key vault where the encryption key is stored.

Encryption withStatus(EncryptionState status)

Set the status property: Status of customer managed encryption key.

Methods inherited from java.lang.Object

Constructor Details

Encryption

public Encryption()

Creates an instance of Encryption class.

Method Details

fromJson

public static Encryption fromJson(JsonReader jsonReader)

Reads an instance of Encryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the Encryption.

keyVaultProperties

public EncryptionKeyVaultProperties keyVaultProperties()

Get the keyVaultProperties property: The key vault where the encryption key is stored.

Returns:

the keyVaultProperties value.

status

public EncryptionState status()

Get the status property: Status of customer managed encryption key.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKeyVaultProperties

public Encryption withKeyVaultProperties(EncryptionKeyVaultProperties keyVaultProperties)

Set the keyVaultProperties property: The key vault where the encryption key is stored.

Parameters:

keyVaultProperties - the keyVaultProperties value to set.

Returns:

the Encryption object itself.

withStatus

public Encryption withStatus(EncryptionState status)

Set the status property: Status of customer managed encryption key.

Parameters:

status - the status value to set.

Returns:

the Encryption object itself.

Applies to