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 Summary
ConstructorsConstructorDescriptionCreates an instance of RunbookDraftUndoEditResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of RunbookDraftUndoEditResultInner from the JsonReader.Get the requestId property: The requestId property.Get the statusCode property: The statusCode property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withRequestId
(String requestId) Set the requestId property: The requestId property.withStatusCode
(HttpStatusCode statusCode) Set the statusCode property: The statusCode property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RunbookDraftUndoEditResultInner
public RunbookDraftUndoEditResultInner()Creates an instance of RunbookDraftUndoEditResultInner class.
-
-
Method Details
-
statusCode
Get the statusCode property: The statusCode property.- Returns:
- the statusCode value.
-
withStatusCode
Set the statusCode property: The statusCode property.- Parameters:
statusCode
- the statusCode value to set.- Returns:
- the RunbookDraftUndoEditResultInner object itself.
-
requestId
Get the requestId property: The requestId property.- Returns:
- the requestId value.
-
withRequestId
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
- Specified by:
toJson
in interfacecom.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.
-