Class ClientEncryptionKeyCreateUpdateParameters

java.lang.Object
com.azure.resourcemanager.cosmos.models.ClientEncryptionKeyCreateUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<ClientEncryptionKeyCreateUpdateParameters>

public final class ClientEncryptionKeyCreateUpdateParameters extends Object implements com.azure.json.JsonSerializable<ClientEncryptionKeyCreateUpdateParameters>
Parameters to create and update ClientEncryptionKey.
  • Constructor Details

    • ClientEncryptionKeyCreateUpdateParameters

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

    • resource

      public ClientEncryptionKeyResource resource()
      Get the resource property: The standard JSON format of a ClientEncryptionKey.
      Returns:
      the resource value.
    • withResource

      Set the resource property: The standard JSON format of a ClientEncryptionKey.
      Parameters:
      resource - the resource value to set.
      Returns:
      the ClientEncryptionKeyCreateUpdateParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      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<ClientEncryptionKeyCreateUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static ClientEncryptionKeyCreateUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ClientEncryptionKeyCreateUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ClientEncryptionKeyCreateUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ClientEncryptionKeyCreateUpdateParameters.