Class AzureFirewallPacketCaptureResponseInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.AzureFirewallPacketCaptureResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFirewallPacketCaptureResponseInner>
public final class AzureFirewallPacketCaptureResponseInner
extends Object
implements com.azure.json.JsonSerializable<AzureFirewallPacketCaptureResponseInner>
Response of an Azure Firewall Packet Capture Operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureFirewallPacketCaptureResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFirewallPacketCaptureResponseInner from the JsonReader.message()Get the message property: Localized Message String of The Result Of The Azure Firewall Packet Capture Operation.Get the statusCode property: The response code of the performed packet capture operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMessage(String message) Set the message property: Localized Message String of The Result Of The Azure Firewall Packet Capture Operation.withStatusCode(AzureFirewallPacketCaptureResponseCode statusCode) Set the statusCode property: The response code of the performed packet capture operation.Methods inherited from class 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
-
AzureFirewallPacketCaptureResponseInner
public AzureFirewallPacketCaptureResponseInner()Creates an instance of AzureFirewallPacketCaptureResponseInner class.
-
-
Method Details
-
statusCode
Get the statusCode property: The response code of the performed packet capture operation.- Returns:
- the statusCode value.
-
withStatusCode
public AzureFirewallPacketCaptureResponseInner withStatusCode(AzureFirewallPacketCaptureResponseCode statusCode) Set the statusCode property: The response code of the performed packet capture operation.- Parameters:
statusCode- the statusCode value to set.- Returns:
- the AzureFirewallPacketCaptureResponseInner object itself.
-
message
Get the message property: Localized Message String of The Result Of The Azure Firewall Packet Capture Operation.- Returns:
- the message value.
-
withMessage
Set the message property: Localized Message String of The Result Of The Azure Firewall Packet Capture Operation.- Parameters:
message- the message value to set.- Returns:
- the AzureFirewallPacketCaptureResponseInner 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<AzureFirewallPacketCaptureResponseInner>- Throws:
IOException
-
fromJson
public static AzureFirewallPacketCaptureResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureFirewallPacketCaptureResponseInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureFirewallPacketCaptureResponseInner 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 AzureFirewallPacketCaptureResponseInner.
-