Class AcknowledgeResult

java.lang.Object
com.azure.messaging.eventgrid.namespaces.models.AcknowledgeResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcknowledgeResult>

public final class AcknowledgeResult extends Object implements com.azure.json.JsonSerializable<AcknowledgeResult>
The result of the Acknowledge operation.
  • Method Details

    • getFailedLockTokens

      public List<FailedLockToken> getFailedLockTokens()
      Get the failedLockTokens property: Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description).
      Returns:
      the failedLockTokens value.
    • getSucceededLockTokens

      public List<String> getSucceededLockTokens()
      Get the succeededLockTokens property: Array of lock tokens for the successfully acknowledged cloud events.
      Returns:
      the succeededLockTokens value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcknowledgeResult>
      Throws:
      IOException
    • fromJson

      public static AcknowledgeResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcknowledgeResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcknowledgeResult 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 AcknowledgeResult.