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 Details

    • CommandOutputInner

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

    • commandOutput

      public String commandOutput()
      Get the commandOutput property: Output of the command.
      Returns:
      the commandOutput value.
    • withCommandOutput

      public CommandOutputInner withCommandOutput(String commandOutput)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CommandOutputInner>
      Throws:
      IOException
    • fromJson

      public static CommandOutputInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.