Class RunCommandResultInner

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

public final class RunCommandResultInner extends Object implements com.azure.json.JsonSerializable<RunCommandResultInner>
run command result.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RunCommandResultInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the exitCode property: The exit code of the command.
    Get the finishedAt property: The time when the command finished.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RunCommandResultInner from the JsonReader.
    id()
    Get the id property: The command id.
    Get the logs property: The command output.
    Get the provisioningState property: provisioning State.
    Get the reason property: An explanation of why provisioningState is set to failed (if so).
    Get the startedAt property: The time when the command started.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    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

    • RunCommandResultInner

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

    • id

      public String id()
      Get the id property: The command id.
      Returns:
      the id value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: provisioning State.
      Returns:
      the provisioningState value.
    • exitCode

      public Integer exitCode()
      Get the exitCode property: The exit code of the command.
      Returns:
      the exitCode value.
    • startedAt

      public OffsetDateTime startedAt()
      Get the startedAt property: The time when the command started.
      Returns:
      the startedAt value.
    • finishedAt

      public OffsetDateTime finishedAt()
      Get the finishedAt property: The time when the command finished.
      Returns:
      the finishedAt value.
    • logs

      public String logs()
      Get the logs property: The command output.
      Returns:
      the logs value.
    • reason

      public String reason()
      Get the reason property: An explanation of why provisioningState is set to failed (if so).
      Returns:
      the reason value.
    • 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<RunCommandResultInner>
      Throws:
      IOException
    • fromJson

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