Class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyIntrusionDetectionBypassTrafficSpecifications>
public final class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications
extends Object
implements com.azure.json.JsonSerializable<FirewallPolicyIntrusionDetectionBypassTrafficSpecifications>
Intrusion detection bypass traffic specification.
-
Constructor Summary
ConstructorDescriptionCreates an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Description of the bypass traffic rule.Get the destinationAddresses property: List of destination IP addresses or ranges for this rule.Get the destinationIpGroups property: List of destination IpGroups for this rule.Get the destinationPorts property: List of destination ports or ranges.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications from the JsonReader.name()
Get the name property: Name of the bypass traffic rule.protocol()
Get the protocol property: The rule bypass protocol.Get the sourceAddresses property: List of source IP addresses or ranges for this rule.Get the sourceIpGroups property: List of source IpGroups for this rule.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDescription
(String description) Set the description property: Description of the bypass traffic rule.withDestinationAddresses
(List<String> destinationAddresses) Set the destinationAddresses property: List of destination IP addresses or ranges for this rule.withDestinationIpGroups
(List<String> destinationIpGroups) Set the destinationIpGroups property: List of destination IpGroups for this rule.withDestinationPorts
(List<String> destinationPorts) Set the destinationPorts property: List of destination ports or ranges.Set the name property: Name of the bypass traffic rule.Set the protocol property: The rule bypass protocol.withSourceAddresses
(List<String> sourceAddresses) Set the sourceAddresses property: List of source IP addresses or ranges for this rule.withSourceIpGroups
(List<String> sourceIpGroups) Set the sourceIpGroups property: List of source IpGroups for this rule.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FirewallPolicyIntrusionDetectionBypassTrafficSpecifications
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications()Creates an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications class.
-
-
Method Details
-
name
Get the name property: Name of the bypass traffic rule.- Returns:
- the name value.
-
withName
Set the name property: Name of the bypass traffic rule.- Parameters:
name
- the name value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
description
Get the description property: Description of the bypass traffic rule.- Returns:
- the description value.
-
withDescription
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDescription(String description) Set the description property: Description of the bypass traffic rule.- Parameters:
description
- the description value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
protocol
Get the protocol property: The rule bypass protocol.- Returns:
- the protocol value.
-
withProtocol
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withProtocol(FirewallPolicyIntrusionDetectionProtocol protocol) Set the protocol property: The rule bypass protocol.- Parameters:
protocol
- the protocol value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
sourceAddresses
Get the sourceAddresses property: List of source IP addresses or ranges for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withSourceAddresses(List<String> sourceAddresses) Set the sourceAddresses property: List of source IP addresses or ranges for this rule.- Parameters:
sourceAddresses
- the sourceAddresses value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
destinationAddresses
Get the destinationAddresses property: List of destination IP addresses or ranges for this rule.- Returns:
- the destinationAddresses value.
-
withDestinationAddresses
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationAddresses(List<String> destinationAddresses) Set the destinationAddresses property: List of destination IP addresses or ranges for this rule.- Parameters:
destinationAddresses
- the destinationAddresses value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
destinationPorts
Get the destinationPorts property: List of destination ports or ranges.- Returns:
- the destinationPorts value.
-
withDestinationPorts
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationPorts(List<String> destinationPorts) Set the destinationPorts property: List of destination ports or ranges.- Parameters:
destinationPorts
- the destinationPorts value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
sourceIpGroups
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withSourceIpGroups(List<String> sourceIpGroups) Set the sourceIpGroups property: List of source IpGroups for this rule.- Parameters:
sourceIpGroups
- the sourceIpGroups value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
destinationIpGroups
Get the destinationIpGroups property: List of destination IpGroups for this rule.- Returns:
- the destinationIpGroups value.
-
withDestinationIpGroups
public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationIpGroups(List<String> destinationIpGroups) Set the destinationIpGroups property: List of destination IpGroups for this rule.- Parameters:
destinationIpGroups
- the destinationIpGroups value to set.- Returns:
- the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FirewallPolicyIntrusionDetectionBypassTrafficSpecifications>
- Throws:
IOException
-
fromJson
public static FirewallPolicyIntrusionDetectionBypassTrafficSpecifications fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications 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 FirewallPolicyIntrusionDetectionBypassTrafficSpecifications.
-