EffectiveDefaultSecurityAdminRule Class

public final class EffectiveDefaultSecurityAdminRule
extends EffectiveBaseSecurityAdminRule

Network default admin rule.

Method Summary

Modifier and Type Method and Description
SecurityConfigurationRuleAccess 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 destinationPortRanges property: The destination port ranges.

List<AddressPrefixItem> destinations()

Get the destinations property: The destination address prefixes.

SecurityConfigurationRuleDirection direction()

Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.

String flag()

Get the flag property: Default rule flag.

static EffectiveDefaultSecurityAdminRule fromJson(JsonReader jsonReader)

Reads an instance of EffectiveDefaultSecurityAdminRule from the JsonReader.

EffectiveAdminRuleKind kind()

Get the kind property: Whether the rule is custom or default.

Integer priority()

Get the priority property: The priority of the rule.

SecurityConfigurationRuleProtocol protocol()

Get the protocol property: Network protocol this rule applies to.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

String resourceGuid()

Get the resourceGuid property: Unique identifier for this resource.

List<String> sourcePortRanges()

Get the sourcePortRanges property: The source port ranges.

List<AddressPrefixItem> sources()

Get the sources property: The CIDR or source IP ranges.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from EffectiveBaseSecurityAdminRule

Methods inherited from java.lang.Object

Method Details

access

public SecurityConfigurationRuleAccess access()

Get the access property: Indicates the access allowed for this particular rule.

Returns:

the access value.

description

public String description()

Get the description property: A description for this rule. Restricted to 140 chars.

Returns:

the description value.

destinationPortRanges

public List<String> destinationPortRanges()

Get the destinationPortRanges property: The destination port ranges.

Returns:

the destinationPortRanges value.

destinations

public List<AddressPrefixItem> destinations()

Get the destinations property: The destination address prefixes. CIDR or destination IP ranges.

Returns:

the destinations value.

direction

public SecurityConfigurationRuleDirection direction()

Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound.

Returns:

the direction value.

flag

public String flag()

Get the flag property: Default rule flag.

Returns:

the flag value.

fromJson

public static EffectiveDefaultSecurityAdminRule fromJson(JsonReader jsonReader)

Reads an instance of EffectiveDefaultSecurityAdminRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EffectiveDefaultSecurityAdminRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the EffectiveDefaultSecurityAdminRule.

kind

public EffectiveAdminRuleKind kind()

Get the kind property: Whether the rule is custom or default.

Overrides:

EffectiveDefaultSecurityAdminRule.kind()

Returns:

the kind value.

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:

the priority value.

protocol

public SecurityConfigurationRuleProtocol protocol()

Get the protocol property: Network protocol this rule applies to.

Returns:

the protocol value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the resource.

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: Unique identifier for this resource.

Returns:

the resourceGuid value.

sourcePortRanges

public List<String> sourcePortRanges()

Get the sourcePortRanges property: The source port ranges.

Returns:

the sourcePortRanges value.

sources

public List<AddressPrefixItem> sources()

Get the sources property: The CIDR or source IP ranges.

Returns:

the sources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

EffectiveDefaultSecurityAdminRule.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

EffectiveDefaultSecurityAdminRule.validate()

Applies to