DefaultAdminPropertiesFormat Class
- java.
lang. Object - com.
azure. resourcemanager. network. fluent. models. DefaultAdminPropertiesFormat
- com.
Implements
public final class DefaultAdminPropertiesFormat
implements JsonSerializable<DefaultAdminPropertiesFormat>
Security default admin rule resource.
Constructor Summary
| Constructor | Description |
|---|---|
| DefaultAdminPropertiesFormat() |
Creates an instance of Default |
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 |
flag()
Get the flag property: Default rule flag. |
|
static
Default |
fromJson(JsonReader jsonReader)
Reads an instance of Default |
| 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. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Default |
withFlag(String flag)
Set the flag property: Default rule flag. |
Methods inherited from java.lang.Object
Constructor Details
DefaultAdminPropertiesFormat
public DefaultAdminPropertiesFormat()
Creates an instance of DefaultAdminPropertiesFormat 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:
flag
public String flag()
Get the flag property: Default rule flag.
Returns:
fromJson
public static DefaultAdminPropertiesFormat fromJson(JsonReader jsonReader)
Reads an instance of DefaultAdminPropertiesFormat from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
validate
public void validate()
Validates the instance.
withFlag
public DefaultAdminPropertiesFormat withFlag(String flag)
Set the flag property: Default rule flag.
Parameters:
Returns: