Class TroubleshootingResultInner

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

public final class TroubleshootingResultInner extends Object implements com.azure.json.JsonSerializable<TroubleshootingResultInner>
Troubleshooting information gained from specified resource.
  • Constructor Details

    • TroubleshootingResultInner

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

    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time of the troubleshooting.
      Returns:
      the startTime value.
    • withStartTime

      public TroubleshootingResultInner withStartTime(OffsetDateTime startTime)
      Set the startTime property: The start time of the troubleshooting.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the TroubleshootingResultInner object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: The end time of the troubleshooting.
      Returns:
      the endTime value.
    • withEndTime

      public TroubleshootingResultInner withEndTime(OffsetDateTime endTime)
      Set the endTime property: The end time of the troubleshooting.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the TroubleshootingResultInner object itself.
    • code

      public String code()
      Get the code property: The result code of the troubleshooting.
      Returns:
      the code value.
    • withCode

      public TroubleshootingResultInner withCode(String code)
      Set the code property: The result code of the troubleshooting.
      Parameters:
      code - the code value to set.
      Returns:
      the TroubleshootingResultInner object itself.
    • results

      public List<TroubleshootingDetails> results()
      Get the results property: Information from troubleshooting.
      Returns:
      the results value.
    • withResults

      Set the results property: Information from troubleshooting.
      Parameters:
      results - the results value to set.
      Returns:
      the TroubleshootingResultInner 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<TroubleshootingResultInner>
      Throws:
      IOException
    • fromJson

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