Class DefaultAdminRule
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.network.models.ChildResource
com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner
com.azure.resourcemanager.network.models.DefaultAdminRule
Network default admin rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess()Get the access property: Indicates the access allowed for this particular rule.Get the description property: A description for this rule.Get the destinationPortRanges property: The destination port ranges.Get the destinations property: The destination address prefixes.Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.flag()Get the flag property: Default rule flag.priority()Get the priority property: The priority of the rule.protocol()Get the protocol property: Network protocol this rule applies to.Get the provisioningState property: The provisioning state of the resource.Get the sourcePortRanges property: The source port ranges.sources()Get the sources property: The CIDR or source IP ranges.voidvalidate()Validates the instance.Set the flag property: Default rule flag.Methods inherited from class com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner
systemDataMethods inherited from class com.azure.resourcemanager.network.models.ChildResource
etagMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
DefaultAdminRule
public DefaultAdminRule()Creates an instance of DefaultAdminRule class.
-
-
Method Details
-
description
Get the description property: A description for this rule. Restricted to 140 chars.- Returns:
- the description value.
-
flag
Get the flag property: Default rule flag.- Returns:
- the flag value.
-
withFlag
Set the flag property: Default rule flag.- Parameters:
flag- the flag value to set.- Returns:
- the DefaultAdminRule object itself.
-
protocol
Get the protocol property: Network protocol this rule applies to.- Returns:
- the protocol value.
-
sources
Get the sources property: The CIDR or source IP ranges.- Returns:
- the sources value.
-
destinations
Get the destinations property: The destination address prefixes. CIDR or destination IP ranges.- Returns:
- the destinations value.
-
sourcePortRanges
Get the sourcePortRanges property: The source port ranges.- Returns:
- the sourcePortRanges value.
-
destinationPortRanges
Get the destinationPortRanges property: The destination port ranges.- Returns:
- the destinationPortRanges value.
-
access
Get the access property: Indicates the access allowed for this particular rule.- Returns:
- the access value.
-
priority
Get the priority property: The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.- Returns:
- the priority value.
-
direction
Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.- Returns:
- the direction value.
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classBaseAdminRuleInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-