AzureFirewallNetworkRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. AzureFirewallNetworkRule
- com.
Implements
public final class AzureFirewallNetworkRule
implements JsonSerializable<AzureFirewallNetworkRule>
Properties of the network rule.
Constructor Summary
Constructor | Description |
---|---|
AzureFirewallNetworkRule() |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: Description of the rule. |
List<String> |
destinationAddresses()
Get the destination |
List<String> |
destinationFqdns()
Get the destination |
List<String> |
destinationIpGroups()
Get the destination |
List<String> |
destinationPorts()
Get the destination |
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
String |
name()
Get the name property: Name of the network rule. |
List<Azure |
protocols()
Get the protocols property: Array of Azure |
List<String> |
sourceAddresses()
Get the source |
List<String> |
sourceIpGroups()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Azure |
withDescription(String description)
Set the description property: Description of the rule. |
Azure |
withDestinationAddresses(List<String> destinationAddresses)
Set the destination |
Azure |
withDestinationFqdns(List<String> destinationFqdns)
Set the destination |
Azure |
withDestinationIpGroups(List<String> destinationIpGroups)
Set the destination |
Azure |
withDestinationPorts(List<String> destinationPorts)
Set the destination |
Azure |
withName(String name)
Set the name property: Name of the network rule. |
Azure |
withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols)
Set the protocols property: Array of Azure |
Azure |
withSourceAddresses(List<String> sourceAddresses)
Set the source |
Azure |
withSourceIpGroups(List<String> sourceIpGroups)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
AzureFirewallNetworkRule
public AzureFirewallNetworkRule()
Creates an instance of AzureFirewallNetworkRule class.
Method Details
description
public String description()
Get the description property: Description of the rule.
Returns:
destinationAddresses
public List
Get the destinationAddresses property: List of destination IP addresses.
Returns:
destinationFqdns
public List
Get the destinationFqdns property: List of destination FQDNs.
Returns:
destinationIpGroups
public List
Get the destinationIpGroups property: List of destination IpGroups for this rule.
Returns:
destinationPorts
public List
Get the destinationPorts property: List of destination ports.
Returns:
fromJson
public static AzureFirewallNetworkRule fromJson(JsonReader jsonReader)
Reads an instance of AzureFirewallNetworkRule from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the network rule.
Returns:
protocols
public List
Get the protocols property: Array of AzureFirewallNetworkRuleProtocols.
Returns:
sourceAddresses
public List
Get the sourceAddresses property: List of source IP addresses for this rule.
Returns:
sourceIpGroups
public List
Get the sourceIpGroups property: List of source IpGroups for this rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public AzureFirewallNetworkRule withDescription(String description)
Set the description property: Description of the rule.
Parameters:
Returns:
withDestinationAddresses
public AzureFirewallNetworkRule withDestinationAddresses(List
Set the destinationAddresses property: List of destination IP addresses.
Parameters:
Returns:
withDestinationFqdns
public AzureFirewallNetworkRule withDestinationFqdns(List
Set the destinationFqdns property: List of destination FQDNs.
Parameters:
Returns:
withDestinationIpGroups
public AzureFirewallNetworkRule withDestinationIpGroups(List
Set the destinationIpGroups property: List of destination IpGroups for this rule.
Parameters:
Returns:
withDestinationPorts
public AzureFirewallNetworkRule withDestinationPorts(List
Set the destinationPorts property: List of destination ports.
Parameters:
Returns:
withName
public AzureFirewallNetworkRule withName(String name)
Set the name property: Name of the network rule.
Parameters:
Returns:
withProtocols
public AzureFirewallNetworkRule withProtocols(List
Set the protocols property: Array of AzureFirewallNetworkRuleProtocols.
Parameters:
Returns:
withSourceAddresses
public AzureFirewallNetworkRule withSourceAddresses(List
Set the sourceAddresses property: List of source IP addresses for this rule.
Parameters:
Returns:
withSourceIpGroups
public AzureFirewallNetworkRule withSourceIpGroups(List
Set the sourceIpGroups property: List of source IpGroups for this rule.
Parameters:
Returns:
Applies to
Azure SDK for Java