Class RunbookDraftUndoEditResultInner

java.lang.Object
com.azure.resourcemanager.automation.fluent.models.RunbookDraftUndoEditResultInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<RunbookDraftUndoEditResultInner>

public final class RunbookDraftUndoEditResultInner extends Object implements com.azure.json.JsonSerializable<RunbookDraftUndoEditResultInner>
The response model for the undo edit runbook operation.
  • Constructor Details

    • RunbookDraftUndoEditResultInner

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

    • statusCode

      public HttpStatusCode statusCode()
      Get the statusCode property: The statusCode property.
      Returns:
      the statusCode value.
    • withStatusCode

      public RunbookDraftUndoEditResultInner withStatusCode(HttpStatusCode statusCode)
      Set the statusCode property: The statusCode property.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the RunbookDraftUndoEditResultInner object itself.
    • requestId

      public String requestId()
      Get the requestId property: The requestId property.
      Returns:
      the requestId value.
    • withRequestId

      public RunbookDraftUndoEditResultInner withRequestId(String requestId)
      Set the requestId property: The requestId property.
      Parameters:
      requestId - the requestId value to set.
      Returns:
      the RunbookDraftUndoEditResultInner 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<RunbookDraftUndoEditResultInner>
      Throws:
      IOException
    • fromJson

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