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>

public final class ClientEncryptionKeyGetPropertiesResource extends ClientEncryptionKeyResource
The ClientEncryptionKeyGetPropertiesResource model.
  • Constructor Details

    • ClientEncryptionKeyGetPropertiesResource

      public ClientEncryptionKeyGetPropertiesResource()
      Creates an instance of ClientEncryptionKeyGetPropertiesResource class.
  • Method Details

    • rid

      public String rid()
      Get the rid property: A system generated property. A unique identifier.
      Returns:
      the rid value.
    • ts

      public Float ts()
      Get the ts property: A system generated property that denotes the last updated timestamp of the resource.
      Returns:
      the ts value.
    • etag

      public String 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:
      withId in class ClientEncryptionKeyResource
      Parameters:
      id - the id value to set.
      Returns:
      the ClientEncryptionKeyResource object itself.
    • withEncryptionAlgorithm

      public ClientEncryptionKeyGetPropertiesResource withEncryptionAlgorithm(String encryptionAlgorithm)
      Set the encryptionAlgorithm property: Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
      Overrides:
      withEncryptionAlgorithm in class ClientEncryptionKeyResource
      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:
      withWrappedDataEncryptionKey in class ClientEncryptionKeyResource
      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:
      withKeyWrapMetadata in class ClientEncryptionKeyResource
      Parameters:
      keyWrapMetadata - the keyWrapMetadata value to set.
      Returns:
      the ClientEncryptionKeyResource object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ClientEncryptionKeyResource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ClientEncryptionKeyResource>
      Overrides:
      toJson in class ClientEncryptionKeyResource
      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.