FirewallPolicyIntrusionDetectionBypassTrafficSpecifications Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.FirewallPolicyIntrusionDetectionBypassTrafficSpecifications

Implements

public final class FirewallPolicyIntrusionDetectionBypassTrafficSpecifications
implements JsonSerializable<FirewallPolicyIntrusionDetectionBypassTrafficSpecifications>

Intrusion detection bypass traffic specification.

Constructor Summary

Constructor Description
FirewallPolicyIntrusionDetectionBypassTrafficSpecifications()

Creates an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the bypass traffic rule.

List<String> destinationAddresses()

Get the destinationAddresses property: List of destination IP addresses or ranges for this rule.

List<String> destinationIpGroups()

Get the destinationIpGroups property: List of destination IpGroups for this rule.

List<String> destinationPorts()

Get the destinationPorts property: List of destination ports or ranges.

static FirewallPolicyIntrusionDetectionBypassTrafficSpecifications fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications from the JsonReader.

String name()

Get the name property: Name of the bypass traffic rule.

FirewallPolicyIntrusionDetectionProtocol protocol()

Get the protocol property: The rule bypass protocol.

List<String> sourceAddresses()

Get the sourceAddresses property: List of source IP addresses or ranges for this rule.

List<String> sourceIpGroups()

Get the sourceIpGroups property: List of source IpGroups for this rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDescription(String description)

Set the description property: Description of the bypass traffic rule.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationAddresses(List<String> destinationAddresses)

Set the destinationAddresses property: List of destination IP addresses or ranges for this rule.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationIpGroups(List<String> destinationIpGroups)

Set the destinationIpGroups property: List of destination IpGroups for this rule.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationPorts(List<String> destinationPorts)

Set the destinationPorts property: List of destination ports or ranges.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withName(String name)

Set the name property: Name of the bypass traffic rule.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withProtocol(FirewallPolicyIntrusionDetectionProtocol protocol)

Set the protocol property: The rule bypass protocol.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withSourceAddresses(List<String> sourceAddresses)

Set the sourceAddresses property: List of source IP addresses or ranges for this rule.

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withSourceIpGroups(List<String> sourceIpGroups)

Set the sourceIpGroups property: List of source IpGroups for this rule.

Methods inherited from java.lang.Object

Constructor Details

FirewallPolicyIntrusionDetectionBypassTrafficSpecifications

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications()

Creates an instance of FirewallPolicyIntrusionDetectionBypassTrafficSpecifications class.

Method Details

description

public String description()

Get the description property: Description of the bypass traffic rule.

Returns:

the description value.

destinationAddresses

public List destinationAddresses()

Get the destinationAddresses property: List of destination IP addresses or ranges for this rule.

Returns:

the destinationAddresses value.

destinationIpGroups

public List destinationIpGroups()

Get the destinationIpGroups property: List of destination IpGroups for this rule.

Returns:

the destinationIpGroups value.

destinationPorts

public List destinationPorts()

Get the destinationPorts property: List of destination ports or ranges.

Returns:

the destinationPorts value.

fromJson

public static FirewallPolicyIntrusionDetectionBypassTrafficSpecifications fromJson(JsonReader jsonReader)

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.

name

public String name()

Get the name property: Name of the bypass traffic rule.

Returns:

the name value.

protocol

public FirewallPolicyIntrusionDetectionProtocol protocol()

Get the protocol property: The rule bypass protocol.

Returns:

the protocol value.

sourceAddresses

public List sourceAddresses()

Get the sourceAddresses property: List of source IP addresses or ranges for this rule.

Returns:

the sourceAddresses value.

sourceIpGroups

public List sourceIpGroups()

Get the sourceIpGroups property: List of source IpGroups for this rule.

Returns:

the sourceIpGroups value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withDestinationAddresses

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationAddresses(List 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.

withDestinationIpGroups

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationIpGroups(List destinationIpGroups)

Set the destinationIpGroups property: List of destination IpGroups for this rule.

Parameters:

destinationIpGroups - the destinationIpGroups value to set.

Returns:

the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.

withDestinationPorts

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withDestinationPorts(List destinationPorts)

Set the destinationPorts property: List of destination ports or ranges.

Parameters:

destinationPorts - the destinationPorts value to set.

Returns:

the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.

withName

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withName(String name)

Set the name property: Name of the bypass traffic rule.

Parameters:

name - the name value to set.

Returns:

the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.

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.

withSourceAddresses

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withSourceAddresses(List 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.

withSourceIpGroups

public FirewallPolicyIntrusionDetectionBypassTrafficSpecifications withSourceIpGroups(List sourceIpGroups)

Set the sourceIpGroups property: List of source IpGroups for this rule.

Parameters:

sourceIpGroups - the sourceIpGroups value to set.

Returns:

the FirewallPolicyIntrusionDetectionBypassTrafficSpecifications object itself.

Applies to