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 Summary
ConstructorsConstructorDescriptionCreates an instance of TroubleshootingResultInner class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: The result code of the troubleshooting.endTime()Get the endTime property: The end time of the troubleshooting.static TroubleshootingResultInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TroubleshootingResultInner from the JsonReader.results()Get the results property: Information from troubleshooting.Get the startTime property: The start time of the troubleshooting.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the code property: The result code of the troubleshooting.withEndTime(OffsetDateTime endTime) Set the endTime property: The end time of the troubleshooting.withResults(List<TroubleshootingDetails> results) Set the results property: Information from troubleshooting.withStartTime(OffsetDateTime startTime) Set the startTime property: The start time of the 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
-
TroubleshootingResultInner
public TroubleshootingResultInner()Creates an instance of TroubleshootingResultInner class.
-
-
Method Details
-
startTime
Get the startTime property: The start time of the troubleshooting.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The start time of the troubleshooting.- Parameters:
startTime- the startTime value to set.- Returns:
- the TroubleshootingResultInner object itself.
-
endTime
Get the endTime property: The end time of the troubleshooting.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: The end time of the troubleshooting.- Parameters:
endTime- the endTime value to set.- Returns:
- the TroubleshootingResultInner object itself.
-
code
Get the code property: The result code of the troubleshooting.- Returns:
- the code value.
-
withCode
Set the code property: The result code of the troubleshooting.- Parameters:
code- the code value to set.- Returns:
- the TroubleshootingResultInner object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-