public class SecurityRuleInner
extends com.azure.core.management.SubResource
| Constructor and Description |
|---|
SecurityRuleInner() |
| Modifier and Type | Method and Description |
|---|---|
SecurityRuleAccess |
access()
Get the access property: The network traffic is allowed or denied.
|
String |
description()
Get the description property: A description for this rule.
|
String |
destinationAddressPrefix()
Get the destinationAddressPrefix property: The destination address prefix.
|
List<String> |
destinationAddressPrefixes()
Get the destinationAddressPrefixes property: The destination address prefixes.
|
List<ApplicationSecurityGroupInner> |
destinationApplicationSecurityGroups()
Get the destinationApplicationSecurityGroups property: The application security group specified as destination.
|
String |
destinationPortRange()
Get the destinationPortRange property: The destination port or range.
|
List<String> |
destinationPortRanges()
Get the destinationPortRanges property: The destination port ranges.
|
SecurityRuleDirection |
direction()
Get the direction property: The direction of the rule.
|
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
|
String |
name()
Get the name property: The name of the resource that is unique within a resource group.
|
Integer |
priority()
Get the priority property: The priority of the rule.
|
SecurityRuleProtocol |
protocol()
Get the protocol property: Network protocol this rule applies to.
|
ProvisioningState |
provisioningState()
Get the provisioningState property: The provisioning state of the security rule resource.
|
String |
sourceAddressPrefix()
Get the sourceAddressPrefix property: The CIDR or source IP range.
|
List<String> |
sourceAddressPrefixes()
Get the sourceAddressPrefixes property: The CIDR or source IP ranges.
|
List<ApplicationSecurityGroupInner> |
sourceApplicationSecurityGroups()
Get the sourceApplicationSecurityGroups property: The application security group specified as source.
|
String |
sourcePortRange()
Get the sourcePortRange property: The source port or range.
|
List<String> |
sourcePortRanges()
Get the sourcePortRanges property: The source port ranges.
|
String |
type()
Get the type property: The type of the resource.
|
void |
validate()
Validates the instance.
|
SecurityRuleInner |
withAccess(SecurityRuleAccess access)
Set the access property: The network traffic is allowed or denied.
|
SecurityRuleInner |
withDescription(String description)
Set the description property: A description for this rule.
|
SecurityRuleInner |
withDestinationAddressPrefix(String destinationAddressPrefix)
Set the destinationAddressPrefix property: The destination address prefix.
|
SecurityRuleInner |
withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
Set the destinationAddressPrefixes property: The destination address prefixes.
|
SecurityRuleInner |
withDestinationApplicationSecurityGroups(List<ApplicationSecurityGroupInner> destinationApplicationSecurityGroups)
Set the destinationApplicationSecurityGroups property: The application security group specified as destination.
|
SecurityRuleInner |
withDestinationPortRange(String destinationPortRange)
Set the destinationPortRange property: The destination port or range.
|
SecurityRuleInner |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destinationPortRanges property: The destination port ranges.
|
SecurityRuleInner |
withDirection(SecurityRuleDirection direction)
Set the direction property: The direction of the rule.
|
SecurityRuleInner |
withId(String id) |
SecurityRuleInner |
withName(String name)
Set the name property: The name of the resource that is unique within a resource group.
|
SecurityRuleInner |
withPriority(Integer priority)
Set the priority property: The priority of the rule.
|
SecurityRuleInner |
withProtocol(SecurityRuleProtocol protocol)
Set the protocol property: Network protocol this rule applies to.
|
SecurityRuleInner |
withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix property: The CIDR or source IP range.
|
SecurityRuleInner |
withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
Set the sourceAddressPrefixes property: The CIDR or source IP ranges.
|
SecurityRuleInner |
withSourceApplicationSecurityGroups(List<ApplicationSecurityGroupInner> sourceApplicationSecurityGroups)
Set the sourceApplicationSecurityGroups property: The application security group specified as source.
|
SecurityRuleInner |
withSourcePortRange(String sourcePortRange)
Set the sourcePortRange property: The source port or range.
|
SecurityRuleInner |
withSourcePortRanges(List<String> sourcePortRanges)
Set the sourcePortRanges property: The source port ranges.
|
SecurityRuleInner |
withType(String type)
Set the type property: The type of the resource.
|
public String name()
public SecurityRuleInner withName(String name)
name - the name value to set.public String etag()
public String type()
public SecurityRuleInner withType(String type)
type - the type value to set.public String description()
public SecurityRuleInner withDescription(String description)
description - the description value to set.public SecurityRuleProtocol protocol()
public SecurityRuleInner withProtocol(SecurityRuleProtocol protocol)
protocol - the protocol value to set.public String sourcePortRange()
public SecurityRuleInner withSourcePortRange(String sourcePortRange)
sourcePortRange - the sourcePortRange value to set.public String destinationPortRange()
public SecurityRuleInner withDestinationPortRange(String destinationPortRange)
destinationPortRange - the destinationPortRange value to set.public String sourceAddressPrefix()
public SecurityRuleInner withSourceAddressPrefix(String sourceAddressPrefix)
sourceAddressPrefix - the sourceAddressPrefix value to set.public List<String> sourceAddressPrefixes()
public SecurityRuleInner withSourceAddressPrefixes(List<String> sourceAddressPrefixes)
sourceAddressPrefixes - the sourceAddressPrefixes value to set.public List<ApplicationSecurityGroupInner> sourceApplicationSecurityGroups()
public SecurityRuleInner withSourceApplicationSecurityGroups(List<ApplicationSecurityGroupInner> sourceApplicationSecurityGroups)
sourceApplicationSecurityGroups - the sourceApplicationSecurityGroups value to set.public String destinationAddressPrefix()
public SecurityRuleInner withDestinationAddressPrefix(String destinationAddressPrefix)
destinationAddressPrefix - the destinationAddressPrefix value to set.public List<String> destinationAddressPrefixes()
public SecurityRuleInner withDestinationAddressPrefixes(List<String> destinationAddressPrefixes)
destinationAddressPrefixes - the destinationAddressPrefixes value to set.public List<ApplicationSecurityGroupInner> destinationApplicationSecurityGroups()
public SecurityRuleInner withDestinationApplicationSecurityGroups(List<ApplicationSecurityGroupInner> destinationApplicationSecurityGroups)
destinationApplicationSecurityGroups - the destinationApplicationSecurityGroups value to set.public List<String> sourcePortRanges()
public SecurityRuleInner withSourcePortRanges(List<String> sourcePortRanges)
sourcePortRanges - the sourcePortRanges value to set.public List<String> destinationPortRanges()
public SecurityRuleInner withDestinationPortRanges(List<String> destinationPortRanges)
destinationPortRanges - the destinationPortRanges value to set.public SecurityRuleAccess access()
public SecurityRuleInner withAccess(SecurityRuleAccess access)
access - the access value to set.public Integer priority()
public SecurityRuleInner withPriority(Integer priority)
priority - the priority value to set.public SecurityRuleDirection direction()
public SecurityRuleInner withDirection(SecurityRuleDirection direction)
direction - the direction value to set.public ProvisioningState provisioningState()
public SecurityRuleInner withId(String id)
withId in class com.azure.core.management.SubResourcepublic void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.