Class AzureFirewallNetworkRule
- java.lang.Object
-
- com.azure.resourcemanager.network.models.AzureFirewallNetworkRule
-
public final class AzureFirewallNetworkRule extends Object
Properties of the network rule.
-
-
Constructor Summary
Constructors Constructor Description AzureFirewallNetworkRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Get the description property: Description of the rule.List<String>destinationAddresses()Get the destinationAddresses property: List of destination IP addresses.List<String>destinationFqdns()Get the destinationFqdns property: List of destination FQDNs.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.Stringname()Get the name property: Name of the network rule.List<AzureFirewallNetworkRuleProtocol>protocols()Get the protocols property: Array of AzureFirewallNetworkRuleProtocols.List<String>sourceAddresses()Get the sourceAddresses property: List of source IP addresses for this rule.List<String>sourceIpGroups()Get the sourceIpGroups property: List of source IpGroups for this rule.voidvalidate()Validates the instance.AzureFirewallNetworkRulewithDescription(String description)Set the description property: Description of the rule.AzureFirewallNetworkRulewithDestinationAddresses(List<String> destinationAddresses)Set the destinationAddresses property: List of destination IP addresses.AzureFirewallNetworkRulewithDestinationFqdns(List<String> destinationFqdns)Set the destinationFqdns property: List of destination FQDNs.AzureFirewallNetworkRulewithDestinationIpGroups(List<String> destinationIpGroups)Set the destinationIpGroups property: List of destination IpGroups for this rule.AzureFirewallNetworkRulewithDestinationPorts(List<String> destinationPorts)Set the destinationPorts property: List of destination ports.AzureFirewallNetworkRulewithName(String name)Set the name property: Name of the network rule.AzureFirewallNetworkRulewithProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)Set the protocols property: Array of AzureFirewallNetworkRuleProtocols.AzureFirewallNetworkRulewithSourceAddresses(List<String> sourceAddresses)Set the sourceAddresses property: List of source IP addresses for this rule.AzureFirewallNetworkRulewithSourceIpGroups(List<String> sourceIpGroups)Set the sourceIpGroups property: List of source IpGroups for this rule.
-
-
-
Method Detail
-
name
public String name()
Get the name property: Name of the network rule.- Returns:
- the name value.
-
withName
public AzureFirewallNetworkRule withName(String name)
Set the name property: Name of the network rule.- Parameters:
name- the name value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
description
public String description()
Get the description property: Description of the rule.- Returns:
- the description value.
-
withDescription
public AzureFirewallNetworkRule withDescription(String description)
Set the description property: Description of the rule.- Parameters:
description- the description value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
protocols
public List<AzureFirewallNetworkRuleProtocol> protocols()
Get the protocols property: Array of AzureFirewallNetworkRuleProtocols.- Returns:
- the protocols value.
-
withProtocols
public AzureFirewallNetworkRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)
Set the protocols property: Array of AzureFirewallNetworkRuleProtocols.- Parameters:
protocols- the protocols value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
sourceAddresses
public List<String> sourceAddresses()
Get the sourceAddresses property: List of source IP addresses for this rule.- Returns:
- the sourceAddresses value.
-
withSourceAddresses
public AzureFirewallNetworkRule withSourceAddresses(List<String> sourceAddresses)
Set the sourceAddresses property: List of source IP addresses for this rule.- Parameters:
sourceAddresses- the sourceAddresses value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
destinationAddresses
public List<String> destinationAddresses()
Get the destinationAddresses property: List of destination IP addresses.- Returns:
- the destinationAddresses value.
-
withDestinationAddresses
public AzureFirewallNetworkRule withDestinationAddresses(List<String> destinationAddresses)
Set the destinationAddresses property: List of destination IP addresses.- Parameters:
destinationAddresses- the destinationAddresses value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
destinationPorts
public List<String> destinationPorts()
Get the destinationPorts property: List of destination ports.- Returns:
- the destinationPorts value.
-
withDestinationPorts
public AzureFirewallNetworkRule withDestinationPorts(List<String> destinationPorts)
Set the destinationPorts property: List of destination ports.- Parameters:
destinationPorts- the destinationPorts value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
destinationFqdns
public List<String> destinationFqdns()
Get the destinationFqdns property: List of destination FQDNs.- Returns:
- the destinationFqdns value.
-
withDestinationFqdns
public AzureFirewallNetworkRule withDestinationFqdns(List<String> destinationFqdns)
Set the destinationFqdns property: List of destination FQDNs.- Parameters:
destinationFqdns- the destinationFqdns value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
sourceIpGroups
public List<String> sourceIpGroups()
Get the sourceIpGroups property: List of source IpGroups for this rule.- Returns:
- the sourceIpGroups value.
-
withSourceIpGroups
public AzureFirewallNetworkRule withSourceIpGroups(List<String> sourceIpGroups)
Set the sourceIpGroups property: List of source IpGroups for this rule.- Parameters:
sourceIpGroups- the sourceIpGroups value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
destinationIpGroups
public List<String> destinationIpGroups()
Get the destinationIpGroups property: List of destination IpGroups for this rule.- Returns:
- the destinationIpGroups value.
-
withDestinationIpGroups
public AzureFirewallNetworkRule withDestinationIpGroups(List<String> destinationIpGroups)
Set the destinationIpGroups property: List of destination IpGroups for this rule.- Parameters:
destinationIpGroups- the destinationIpGroups value to set.- Returns:
- the AzureFirewallNetworkRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-