Class ClientEncryptionKeyGetPropertiesResource
java.lang.Object
com.azure.resourcemanager.cosmos.models.ClientEncryptionKeyResource
com.azure.resourcemanager.cosmos.models.ClientEncryptionKeyGetPropertiesResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClientEncryptionKeyResource>
The ClientEncryptionKeyGetPropertiesResource model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClientEncryptionKeyGetPropertiesResource class. -
Method Summary
Modifier and TypeMethodDescriptionetag()Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClientEncryptionKeyGetPropertiesResource from the JsonReader.rid()Get the rid property: A system generated property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) ts()Get the ts property: A system generated property that denotes the last updated timestamp of the resource.voidvalidate()Validates the instance.withEncryptionAlgorithm(String encryptionAlgorithm) Set the encryptionAlgorithm property: Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.Set the id property: Name of the ClientEncryptionKey.withKeyWrapMetadata(KeyWrapMetadata keyWrapMetadata) Set the keyWrapMetadata property: Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.withWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey) Set the wrappedDataEncryptionKey property: Wrapped (encrypted) form of the key represented as a byte array.Methods inherited from class com.azure.resourcemanager.cosmos.models.ClientEncryptionKeyResource
encryptionAlgorithm, id, keyWrapMetadata, wrappedDataEncryptionKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ClientEncryptionKeyGetPropertiesResource
public ClientEncryptionKeyGetPropertiesResource()Creates an instance of ClientEncryptionKeyGetPropertiesResource class.
-
-
Method Details
-
rid
Get the rid property: A system generated property. A unique identifier.- Returns:
- the rid value.
-
ts
Get the ts property: A system generated property that denotes the last updated timestamp of the resource.- Returns:
- the ts value.
-
etag
Get the etag property: A system generated property representing the resource etag required for optimistic concurrency control.- Returns:
- the etag value.
-
withId
Set the id property: Name of the ClientEncryptionKey.- Overrides:
withIdin classClientEncryptionKeyResource- Parameters:
id- the id value to set.- Returns:
- the ClientEncryptionKeyResource object itself.
-
withEncryptionAlgorithm
Set the encryptionAlgorithm property: Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.- Overrides:
withEncryptionAlgorithmin classClientEncryptionKeyResource- Parameters:
encryptionAlgorithm- the encryptionAlgorithm value to set.- Returns:
- the ClientEncryptionKeyResource object itself.
-
withWrappedDataEncryptionKey
public ClientEncryptionKeyGetPropertiesResource withWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey) Set the wrappedDataEncryptionKey property: Wrapped (encrypted) form of the key represented as a byte array.- Overrides:
withWrappedDataEncryptionKeyin classClientEncryptionKeyResource- Parameters:
wrappedDataEncryptionKey- the wrappedDataEncryptionKey value to set.- Returns:
- the ClientEncryptionKeyResource object itself.
-
withKeyWrapMetadata
public ClientEncryptionKeyGetPropertiesResource withKeyWrapMetadata(KeyWrapMetadata keyWrapMetadata) Set the keyWrapMetadata property: Metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.- Overrides:
withKeyWrapMetadatain classClientEncryptionKeyResource- Parameters:
keyWrapMetadata- the keyWrapMetadata value to set.- Returns:
- the ClientEncryptionKeyResource object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClientEncryptionKeyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClientEncryptionKeyResource>- Overrides:
toJsonin classClientEncryptionKeyResource- Throws:
IOException
-
fromJson
public static ClientEncryptionKeyGetPropertiesResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClientEncryptionKeyGetPropertiesResource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClientEncryptionKeyGetPropertiesResource 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 ClientEncryptionKeyGetPropertiesResource.
-