Class CommandOutputInner
java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.CommandOutputInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CommandOutputInner>
public final class CommandOutputInner
extends Object
implements com.azure.json.JsonSerializable<CommandOutputInner>
Response of /command api.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the commandOutput property: Output of the command.static CommandOutputInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CommandOutputInner from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCommandOutput
(String commandOutput) Set the commandOutput property: Output of the command.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
-
CommandOutputInner
public CommandOutputInner()Creates an instance of CommandOutputInner class.
-
-
Method Details
-
commandOutput
Get the commandOutput property: Output of the command.- Returns:
- the commandOutput value.
-
withCommandOutput
Set the commandOutput property: Output of the command.- Parameters:
commandOutput
- the commandOutput value to set.- Returns:
- the CommandOutputInner 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<CommandOutputInner>
- Throws:
IOException
-
fromJson
Reads an instance of CommandOutputInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CommandOutputInner 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 CommandOutputInner.
-