Class TroubleshootingDetails

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

public final class TroubleshootingDetails extends Object implements com.azure.json.JsonSerializable<TroubleshootingDetails>
Information gained from troubleshooting of specified resource.
  • Constructor Details

    • TroubleshootingDetails

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

    • id

      public String id()
      Get the id property: The id of the get troubleshoot operation.
      Returns:
      the id value.
    • withId

      public TroubleshootingDetails withId(String id)
      Set the id property: The id of the get troubleshoot operation.
      Parameters:
      id - the id value to set.
      Returns:
      the TroubleshootingDetails object itself.
    • reasonType

      public String reasonType()
      Get the reasonType property: Reason type of failure.
      Returns:
      the reasonType value.
    • withReasonType

      public TroubleshootingDetails withReasonType(String reasonType)
      Set the reasonType property: Reason type of failure.
      Parameters:
      reasonType - the reasonType value to set.
      Returns:
      the TroubleshootingDetails object itself.
    • summary

      public String summary()
      Get the summary property: A summary of troubleshooting.
      Returns:
      the summary value.
    • withSummary

      public TroubleshootingDetails withSummary(String summary)
      Set the summary property: A summary of troubleshooting.
      Parameters:
      summary - the summary value to set.
      Returns:
      the TroubleshootingDetails object itself.
    • detail

      public String detail()
      Get the detail property: Details on troubleshooting results.
      Returns:
      the detail value.
    • withDetail

      public TroubleshootingDetails withDetail(String detail)
      Set the detail property: Details on troubleshooting results.
      Parameters:
      detail - the detail value to set.
      Returns:
      the TroubleshootingDetails object itself.
    • recommendedActions

      public List<TroubleshootingRecommendedActions> recommendedActions()
      Get the recommendedActions property: List of recommended actions.
      Returns:
      the recommendedActions value.
    • withRecommendedActions

      public TroubleshootingDetails withRecommendedActions(List<TroubleshootingRecommendedActions> recommendedActions)
      Set the recommendedActions property: List of recommended actions.
      Parameters:
      recommendedActions - the recommendedActions value to set.
      Returns:
      the TroubleshootingDetails 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<TroubleshootingDetails>
      Throws:
      IOException
    • fromJson

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