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 Summary
ConstructorsConstructorDescriptionCreates an instance of TroubleshootingDetails class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Get the detail property: Details on troubleshooting results.static TroubleshootingDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TroubleshootingDetails from the JsonReader.id()Get the id property: The id of the get troubleshoot operation.Get the reasonType property: Reason type of failure.Get the recommendedActions property: List of recommended actions.summary()Get the summary property: A summary of troubleshooting.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDetail(String detail) Set the detail property: Details on troubleshooting results.Set the id property: The id of the get troubleshoot operation.withReasonType(String reasonType) Set the reasonType property: Reason type of failure.withRecommendedActions(List<TroubleshootingRecommendedActions> recommendedActions) Set the recommendedActions property: List of recommended actions.withSummary(String summary) Set the summary property: A summary of troubleshooting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TroubleshootingDetails
public TroubleshootingDetails()Creates an instance of TroubleshootingDetails class.
-
-
Method Details
-
id
Get the id property: The id of the get troubleshoot operation.- Returns:
- the id value.
-
withId
Set the id property: The id of the get troubleshoot operation.- Parameters:
id- the id value to set.- Returns:
- the TroubleshootingDetails object itself.
-
reasonType
Get the reasonType property: Reason type of failure.- Returns:
- the reasonType value.
-
withReasonType
Set the reasonType property: Reason type of failure.- Parameters:
reasonType- the reasonType value to set.- Returns:
- the TroubleshootingDetails object itself.
-
summary
Get the summary property: A summary of troubleshooting.- Returns:
- the summary value.
-
withSummary
Set the summary property: A summary of troubleshooting.- Parameters:
summary- the summary value to set.- Returns:
- the TroubleshootingDetails object itself.
-
detail
Get the detail property: Details on troubleshooting results.- Returns:
- the detail value.
-
withDetail
Set the detail property: Details on troubleshooting results.- Parameters:
detail- the detail value to set.- Returns:
- the TroubleshootingDetails object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-