SecurityUserRuleInner Class

public final class SecurityUserRuleInner
extends ChildResource

Network security user rule.

Constructor Summary

Constructor Description
SecurityUserRuleInner()

Creates an instance of SecurityUserRuleInner class.

Method Summary

Modifier and Type Method and Description
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 etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

static SecurityUserRuleInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityUserRuleInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

SecurityConfigurationRuleProtocol protocol()

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

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the security configuration user rule 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.

SystemData systemData()

Get the systemData property: The system metadata related to this resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SecurityUserRuleInner withDescription(String description)

Set the description property: A description for this rule.

SecurityUserRuleInner withDestinationPortRanges(List<String> destinationPortRanges)

Set the destinationPortRanges property: The destination port ranges.

SecurityUserRuleInner withDestinations(List<AddressPrefixItem> destinations)

Set the destinations property: The destination address prefixes.

SecurityUserRuleInner withDirection(SecurityConfigurationRuleDirection direction)

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

SecurityUserRuleInner withProtocol(SecurityConfigurationRuleProtocol protocol)

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

SecurityUserRuleInner withSourcePortRanges(List<String> sourcePortRanges)

Set the sourcePortRanges property: The source port ranges.

SecurityUserRuleInner withSources(List<AddressPrefixItem> sources)

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

Methods inherited from ChildResource

Methods inherited from java.lang.Object

Constructor Details

SecurityUserRuleInner

public SecurityUserRuleInner()

Creates an instance of SecurityUserRuleInner class.

Method Details

description

public String description()

Get the description property: A description for this rule.

Returns:

the description value.

destinationPortRanges

public List destinationPortRanges()

Get the destinationPortRanges property: The destination port ranges.

Returns:

the destinationPortRanges value.

destinations

public List 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.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Overrides:

SecurityUserRuleInner.etag()

Returns:

the etag value.

fromJson

public static SecurityUserRuleInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityUserRuleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SecurityUserRuleInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SecurityUserRuleInner.name()

Returns:

the name 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 security configuration user rule 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 sourcePortRanges()

Get the sourcePortRanges property: The source port ranges.

Returns:

the sourcePortRanges value.

sources

public List sources()

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

Returns:

the sources value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata related to this resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SecurityUserRuleInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SecurityUserRuleInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SecurityUserRuleInner.validate()

withDescription

public SecurityUserRuleInner withDescription(String description)

Set the description property: A description for this rule.

Parameters:

description - the description value to set.

Returns:

the SecurityUserRuleInner object itself.

withDestinationPortRanges

public SecurityUserRuleInner withDestinationPortRanges(List destinationPortRanges)

Set the destinationPortRanges property: The destination port ranges.

Parameters:

destinationPortRanges - the destinationPortRanges value to set.

Returns:

the SecurityUserRuleInner object itself.

withDestinations

public SecurityUserRuleInner withDestinations(List destinations)

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

Parameters:

destinations - the destinations value to set.

Returns:

the SecurityUserRuleInner object itself.

withDirection

public SecurityUserRuleInner withDirection(SecurityConfigurationRuleDirection direction)

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

Parameters:

direction - the direction value to set.

Returns:

the SecurityUserRuleInner object itself.

withProtocol

public SecurityUserRuleInner withProtocol(SecurityConfigurationRuleProtocol protocol)

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

Parameters:

protocol - the protocol value to set.

Returns:

the SecurityUserRuleInner object itself.

withSourcePortRanges

public SecurityUserRuleInner withSourcePortRanges(List sourcePortRanges)

Set the sourcePortRanges property: The source port ranges.

Parameters:

sourcePortRanges - the sourcePortRanges value to set.

Returns:

the SecurityUserRuleInner object itself.

withSources

public SecurityUserRuleInner withSources(List sources)

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

Parameters:

sources - the sources value to set.

Returns:

the SecurityUserRuleInner object itself.

Applies to