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

public final class ReleaseResult extends Object implements com.azure.json.JsonSerializable<ReleaseResult>
The result of the Release 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 released 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<ReleaseResult>
      Throws:
      IOException
    • fromJson

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