AdminRule Class
- 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. AdminRule
- com.
- com.
- com.
- com.
public final class AdminRule
extends BaseAdminRuleInner
Network admin rule.
Constructor Summary
| Constructor | Description |
|---|---|
| AdminRule() |
Creates an instance of Admin |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Security |
access()
Get the access property: Indicates the access allowed for this particular rule. |
| String |
description()
Get the description property: A description for this rule. |
| List<String> |
destinationPortRanges()
Get the destination |
|
List<Address |
destinations()
Get the destinations property: The destination address prefixes. |
|
Security |
direction()
Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. |
| String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
|
static
Admin |
fromJson(JsonReader jsonReader)
Reads an instance of Admin |
|
Admin |
kind()
Get the kind property: Whether the rule is custom or default. |
| String |
name()
Get the name property: The name of the resource. |
| Integer |
priority()
Get the priority property: The priority of the rule. |
|
Security |
protocol()
Get the protocol property: Network protocol this rule applies to. |
|
Provisioning |
provisioningState()
Get the provisioning |
| String |
resourceGuid()
Get the resource |
| List<String> |
sourcePortRanges()
Get the source |
|
List<Address |
sources()
Get the sources property: The CIDR or source IP ranges. |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Admin |
withAccess(SecurityConfigurationRuleAccess access)
Set the access property: Indicates the access allowed for this particular rule. |
|
Admin |
withDescription(String description)
Set the description property: A description for this rule. |
|
Admin |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destination |
|
Admin |
withDestinations(List<AddressPrefixItem> destinations)
Set the destinations property: The destination address prefixes. |
|
Admin |
withDirection(SecurityConfigurationRuleDirection direction)
Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound. |
|
Admin |
withId(String id)
Set the id property: Resource ID. |
|
Admin |
withPriority(Integer priority)
Set the priority property: The priority of the rule. |
|
Admin |
withProtocol(SecurityConfigurationRuleProtocol protocol)
Set the protocol property: Network protocol this rule applies to. |
|
Admin |
withSourcePortRanges(List<String> sourcePortRanges)
Set the source |
|
Admin |
withSources(List<AddressPrefixItem> sources)
Set the sources property: The CIDR or source IP ranges. |
Methods inherited from BaseAdminRuleInner
Methods inherited from ChildResource
Methods inherited from java.lang.Object
Constructor Details
AdminRule
public AdminRule()
Creates an instance of AdminRule class.
Method Details
access
public SecurityConfigurationRuleAccess access()
Get the access property: Indicates the access allowed for this particular rule.
Returns:
description
public String description()
Get the description property: A description for this rule. Restricted to 140 chars.
Returns:
destinationPortRanges
public List<String> destinationPortRanges()
Get the destinationPortRanges property: The destination port ranges.
Returns:
destinations
public List<AddressPrefixItem> destinations()
Get the destinations property: The destination address prefixes. CIDR or destination IP ranges.
Returns:
direction
public SecurityConfigurationRuleDirection direction()
Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Overrides:
AdminRule.etag()Returns:
fromJson
public static AdminRule fromJson(JsonReader jsonReader)
Reads an instance of AdminRule from the JsonReader.
Parameters:
Returns:
Throws:
kind
public AdminRuleKind kind()
Get the kind property: Whether the rule is custom or default.
Overrides:
AdminRule.kind()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AdminRule.name()Returns:
priority
public Integer 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:
protocol
public SecurityConfigurationRuleProtocol protocol()
Get the protocol property: Network protocol this rule applies to.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: Unique identifier for this resource.
Returns:
sourcePortRanges
public List<String> sourcePortRanges()
Get the sourcePortRanges property: The source port ranges.
Returns:
sources
public List<AddressPrefixItem> sources()
Get the sources property: The CIDR or source IP ranges.
Returns:
systemData
public SystemData systemData()
Get the systemData property: The system metadata related to this resource.
Overrides:
AdminRule.systemData()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AdminRule.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AdminRule.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
AdminRule.validate()withAccess
public AdminRule withAccess(SecurityConfigurationRuleAccess access)
Set the access property: Indicates the access allowed for this particular rule.
Parameters:
Returns:
withDescription
public AdminRule withDescription(String description)
Set the description property: A description for this rule. Restricted to 140 chars.
Parameters:
Returns:
withDestinationPortRanges
public AdminRule withDestinationPortRanges(List<String> destinationPortRanges)
Set the destinationPortRanges property: The destination port ranges.
Parameters:
Returns:
withDestinations
public AdminRule withDestinations(List<AddressPrefixItem> destinations)
Set the destinations property: The destination address prefixes. CIDR or destination IP ranges.
Parameters:
Returns:
withDirection
public AdminRule withDirection(SecurityConfigurationRuleDirection direction)
Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound.
Parameters:
Returns:
withId
public AdminRule withId(String id)
Set the id property: Resource ID.
Overrides:
AdminRule.withId(String id)Parameters:
withPriority
public AdminRule withPriority(Integer priority)
Set 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.
Parameters:
Returns:
withProtocol
public AdminRule withProtocol(SecurityConfigurationRuleProtocol protocol)
Set the protocol property: Network protocol this rule applies to.
Parameters:
Returns:
withSourcePortRanges
public AdminRule withSourcePortRanges(List<String> sourcePortRanges)
Set the sourcePortRanges property: The source port ranges.
Parameters:
Returns:
withSources
public AdminRule withSources(List<AddressPrefixItem> sources)
Set the sources property: The CIDR or source IP ranges.
Parameters:
Returns: