Class PacketCaptureQueryStatusResultInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.PacketCaptureQueryStatusResultInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PacketCaptureQueryStatusResultInner>
public final class PacketCaptureQueryStatusResultInner
extends Object
implements com.azure.json.JsonSerializable<PacketCaptureQueryStatusResultInner>
Status of packet capture session.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PacketCaptureQueryStatusResultInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the captureStartTime property: The start time of the packet capture session.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PacketCaptureQueryStatusResultInner from the JsonReader.id()Get the id property: The ID of the packet capture resource.name()Get the name property: The name of the packet capture resource.Get the packetCaptureError property: List of errors of packet capture session.Get the packetCaptureStatus property: The status of the packet capture session.Get the stopReason property: The reason the current packet capture session was stopped.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCaptureStartTime(OffsetDateTime captureStartTime) Set the captureStartTime property: The start time of the packet capture session.Set the id property: The ID of the packet capture resource.Set the name property: The name of the packet capture resource.withPacketCaptureError(List<PcError> packetCaptureError) Set the packetCaptureError property: List of errors of packet capture session.withPacketCaptureStatus(PcStatus packetCaptureStatus) Set the packetCaptureStatus property: The status of the packet capture session.withStopReason(String stopReason) Set the stopReason property: The reason the current packet capture session was stopped.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
-
PacketCaptureQueryStatusResultInner
public PacketCaptureQueryStatusResultInner()Creates an instance of PacketCaptureQueryStatusResultInner class.
-
-
Method Details
-
name
Get the name property: The name of the packet capture resource.- Returns:
- the name value.
-
withName
Set the name property: The name of the packet capture resource.- Parameters:
name- the name value to set.- Returns:
- the PacketCaptureQueryStatusResultInner object itself.
-
id
Get the id property: The ID of the packet capture resource.- Returns:
- the id value.
-
withId
Set the id property: The ID of the packet capture resource.- Parameters:
id- the id value to set.- Returns:
- the PacketCaptureQueryStatusResultInner object itself.
-
captureStartTime
Get the captureStartTime property: The start time of the packet capture session.- Returns:
- the captureStartTime value.
-
withCaptureStartTime
Set the captureStartTime property: The start time of the packet capture session.- Parameters:
captureStartTime- the captureStartTime value to set.- Returns:
- the PacketCaptureQueryStatusResultInner object itself.
-
packetCaptureStatus
Get the packetCaptureStatus property: The status of the packet capture session.- Returns:
- the packetCaptureStatus value.
-
withPacketCaptureStatus
Set the packetCaptureStatus property: The status of the packet capture session.- Parameters:
packetCaptureStatus- the packetCaptureStatus value to set.- Returns:
- the PacketCaptureQueryStatusResultInner object itself.
-
stopReason
Get the stopReason property: The reason the current packet capture session was stopped.- Returns:
- the stopReason value.
-
withStopReason
Set the stopReason property: The reason the current packet capture session was stopped.- Parameters:
stopReason- the stopReason value to set.- Returns:
- the PacketCaptureQueryStatusResultInner object itself.
-
packetCaptureError
Get the packetCaptureError property: List of errors of packet capture session.- Returns:
- the packetCaptureError value.
-
withPacketCaptureError
Set the packetCaptureError property: List of errors of packet capture session.- Parameters:
packetCaptureError- the packetCaptureError value to set.- Returns:
- the PacketCaptureQueryStatusResultInner 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<PacketCaptureQueryStatusResultInner>- Throws:
IOException
-
fromJson
public static PacketCaptureQueryStatusResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PacketCaptureQueryStatusResultInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PacketCaptureQueryStatusResultInner 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 PacketCaptureQueryStatusResultInner.
-