Class PacketCaptureMachineScope
java.lang.Object
com.azure.resourcemanager.network.models.PacketCaptureMachineScope
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PacketCaptureMachineScope>
public final class PacketCaptureMachineScope
extends Object
implements com.azure.json.JsonSerializable<PacketCaptureMachineScope>
A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded
are empty, then the packet capture will run on all instances of AzureVMSS.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PacketCaptureMachineScope class. -
Method Summary
Modifier and TypeMethodDescriptionexclude()Get the exclude property: List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet capture.static PacketCaptureMachineScopefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PacketCaptureMachineScope from the JsonReader.include()Get the include property: List of AzureVMSS instances to run packet capture on.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withExclude(List<String> exclude) Set the exclude property: List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet capture.withInclude(List<String> include) Set the include property: List of AzureVMSS instances to run packet capture on.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
-
PacketCaptureMachineScope
public PacketCaptureMachineScope()Creates an instance of PacketCaptureMachineScope class.
-
-
Method Details
-
include
Get the include property: List of AzureVMSS instances to run packet capture on.- Returns:
- the include value.
-
withInclude
Set the include property: List of AzureVMSS instances to run packet capture on.- Parameters:
include- the include value to set.- Returns:
- the PacketCaptureMachineScope object itself.
-
exclude
Get the exclude property: List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet capture.- Returns:
- the exclude value.
-
withExclude
Set the exclude property: List of AzureVMSS instances which has to be excluded from the AzureVMSS from running packet capture.- Parameters:
exclude- the exclude value to set.- Returns:
- the PacketCaptureMachineScope 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<PacketCaptureMachineScope>- Throws:
IOException
-
fromJson
public static PacketCaptureMachineScope fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PacketCaptureMachineScope from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of PacketCaptureMachineScope 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 PacketCaptureMachineScope.
-