Class RenewLocksResult

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

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

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