你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EffectiveNetworkSecurityRule 类

  • java.lang.Object
    • com.microsoft.azure.management.network.EffectiveNetworkSecurityRule

public class EffectiveNetworkSecurityRule

有效的网络安全规则。

构造函数摘要

构造函数 说明
EffectiveNetworkSecurityRule()

方法摘要

修饰符和类型 方法和描述
SecurityRuleAccess access()

获取是允许还是拒绝网络流量。

java.lang.String destinationAddressPrefix()

获取目标地址前缀。

java.util.List<java.lang.String> destinationAddressPrefixes()

获取目标地址前缀。

java.lang.String destinationPortRange()

获取目标端口或范围。

java.util.List<java.lang.String> destinationPortRanges()

获取目标端口范围。

SecurityRuleDirection direction()

获取规则的方向。

java.util.List<java.lang.String> expandedDestinationAddressPrefix()

获取扩展的目标地址前缀。

java.util.List<java.lang.String> expandedSourceAddressPrefix()

获取扩展的源地址前缀。

java.lang.String name()

获取用户 (指定的安全规则的名称(如果由用户) 创建)。

java.lang.Integer priority()

获取规则的优先级。

EffectiveSecurityRuleProtocol protocol()

获取此规则适用的网络协议。

java.lang.String sourceAddressPrefix()

获取源地址前缀。

java.util.List<java.lang.String> sourceAddressPrefixes()

获取源地址前缀。

java.lang.String sourcePortRange()

获取源端口或范围。

java.util.List<java.lang.String> sourcePortRanges()

获取源端口范围。

EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)

设置是允许还是拒绝网络流量。

EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)

设置目标地址前缀。

EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)

设置目标地址前缀。

EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)

设置目标端口或范围。

EffectiveNetworkSecurityRule withDestinationPortRanges(List<String> destinationPortRanges)

设置目标端口范围。

EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)

设置规则的方向。

EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List<String> expandedDestinationAddressPrefix)

设置展开的目标地址前缀。

EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List<String> expandedSourceAddressPrefix)

设置展开的源地址前缀。

EffectiveNetworkSecurityRule withName(String name)

如果用户) 创建, (设置用户指定的安全规则的名称。

EffectiveNetworkSecurityRule withPriority(Integer priority)

设置规则的优先级。

EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)

设置此规则适用的网络协议。

EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)

设置源地址前缀。

EffectiveNetworkSecurityRule withSourceAddressPrefixes(List<String> sourceAddressPrefixes)

设置源地址前缀。

EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)

设置源端口或范围。

EffectiveNetworkSecurityRule withSourcePortRanges(List<String> sourcePortRanges)

设置源端口范围。

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

构造函数详细信息

EffectiveNetworkSecurityRule

public EffectiveNetworkSecurityRule()

方法详细信息

access

public SecurityRuleAccess access()

获取是允许还是拒绝网络流量。 可能的值包括:“Allow”、“Deny”。

Returns:

访问值

destinationAddressPrefix

public String destinationAddressPrefix()

获取目标地址前缀。

Returns:

destinationAddressPrefix 值

destinationAddressPrefixes

public List destinationAddressPrefixes()

获取目标地址前缀。 预期值包括 CIDR IP 范围、VirtualNetwork (默认标记、AzureLoadBalancer、Internet) 、系统标记和星号 (*) 。

Returns:

destinationAddressPrefixes 值

destinationPortRange

public String destinationPortRange()

获取目标端口或范围。

Returns:

destinationPortRange 值

destinationPortRanges

public List destinationPortRanges()

获取目标端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*) 。

Returns:

destinationPortRanges 值

direction

public SecurityRuleDirection direction()

获取规则的方向。 可能的值包括:“Inbound”、“Outbound”。

Returns:

方向值

expandedDestinationAddressPrefix

public List expandedDestinationAddressPrefix()

获取扩展的目标地址前缀。

Returns:

expandedDestinationAddressPrefix 值

expandedSourceAddressPrefix

public List expandedSourceAddressPrefix()

获取扩展的源地址前缀。

Returns:

expandedSourceAddressPrefix 值

name

public String name()

获取用户 (指定的安全规则的名称(如果由用户) 创建)。

Returns:

名称值

priority

public Integer priority()

获取规则的优先级。

Returns:

优先级值

protocol

public EffectiveSecurityRuleProtocol protocol()

获取此规则适用的网络协议。 可能的值包括:“Tcp”、“Udp”、“All”。

Returns:

协议值

sourceAddressPrefix

public String sourceAddressPrefix()

获取源地址前缀。

Returns:

sourceAddressPrefix 值

sourceAddressPrefixes

public List sourceAddressPrefixes()

获取源地址前缀。 预期值包括 CIDR IP 范围、默认标记 (VirtualNetwork、AzureLoadBalancer、Internet) 、系统标记以及星号 (*) 。

Returns:

sourceAddressPrefixes 值

sourcePortRange

public String sourcePortRange()

获取源端口或范围。

Returns:

sourcePortRange 值

sourcePortRanges

public List sourcePortRanges()

获取源端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*) 。

Returns:

sourcePortRanges 值

withAccess

public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access)

设置是允许还是拒绝网络流量。 可能的值包括:“Allow”、“Deny”。

Parameters:

access - 要设置的访问值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withDestinationAddressPrefix

public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)

设置目标地址前缀。

Parameters:

destinationAddressPrefix - 要设置的 destinationAddressPrefix 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withDestinationAddressPrefixes

public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List destinationAddressPrefixes)

设置目标地址前缀。 预期值包括 CIDR IP 范围、默认标记 (VirtualNetwork、AzureLoadBalancer、Internet) 、系统标记以及星号 (*) 。

Parameters:

destinationAddressPrefixes - destinationAddressPrefixes 要设置的值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withDestinationPortRange

public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationPortRange)

设置目标端口或范围。

Parameters:

destinationPortRange - 要设置的 destinationPortRange 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withDestinationPortRanges

public EffectiveNetworkSecurityRule withDestinationPortRanges(List destinationPortRanges)

设置目标端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*) 。

Parameters:

destinationPortRanges - 要设置的 destinationPortRanges 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withDirection

public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection direction)

设置规则的方向。 可能的值包括:“Inbound”、“Outbound”。

Parameters:

direction - 要设置的方向值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withExpandedDestinationAddressPrefix

public EffectiveNetworkSecurityRule withExpandedDestinationAddressPrefix(List expandedDestinationAddressPrefix)

设置展开的目标地址前缀。

Parameters:

expandedDestinationAddressPrefix - 要设置的 expandedDestinationAddressPrefix 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withExpandedSourceAddressPrefix

public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List expandedSourceAddressPrefix)

设置展开的源地址前缀。

Parameters:

expandedSourceAddressPrefix - 要设置的 expandedSourceAddressPrefix 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withName

public EffectiveNetworkSecurityRule withName(String name)

如果用户) 创建, (设置用户指定的安全规则的名称。

Parameters:

name - 要设置的名称值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withPriority

public EffectiveNetworkSecurityRule withPriority(Integer priority)

设置规则的优先级。

Parameters:

priority - 要设置的优先级值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withProtocol

public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol protocol)

设置此规则适用的网络协议。 可能的值包括:“Tcp”、“Udp”、“All”。

Parameters:

protocol - 要设置的协议值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withSourceAddressPrefix

public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)

设置源地址前缀。

Parameters:

sourceAddressPrefix - 要设置的 sourceAddressPrefix 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withSourceAddressPrefixes

public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List sourceAddressPrefixes)

设置源地址前缀。 预期值包括 CIDR IP 范围、默认标记 (VirtualNetwork、AzureLoadBalancer、Internet) 、系统标记以及星号 (*) 。

Parameters:

sourceAddressPrefixes - sourceAddressPrefixes 值以设置

Returns:

EffectiveNetworkSecurityRule 对象本身。

withSourcePortRange

public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange)

设置源端口或范围。

Parameters:

sourcePortRange - 要设置的 sourcePortRange 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

withSourcePortRanges

public EffectiveNetworkSecurityRule withSourcePortRanges(List sourcePortRanges)

设置源端口范围。 预期值包括介于 0 和 65535 之间的单个整数、使用“-”作为分隔符 (的范围(例如 100-400) )或星号 (*) 。

Parameters:

sourcePortRanges - 要设置的 sourcePortRanges 值

Returns:

EffectiveNetworkSecurityRule 对象本身。

适用于