SecurityUserRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. network. models. ChildResource - com.
azure. resourcemanager. network. fluent. models. SecurityUserRuleInner
- com.
- com.
- com.
public final class SecurityUserRuleInner
extends ChildResource
Network security user rule.
Constructor Summary
Constructor | Description |
---|---|
SecurityUserRuleInner() |
Creates an instance of Security |
Method Summary
Modifier and Type | Method and Description |
---|---|
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
Security |
fromJson(JsonReader jsonReader)
Reads an instance of Security |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
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. |
Security |
withDescription(String description)
Set the description property: A description for this rule. |
Security |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destination |
Security |
withDestinations(List<AddressPrefixItem> destinations)
Set the destinations property: The destination address prefixes. |
Security |
withDirection(SecurityConfigurationRuleDirection direction)
Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound. |
Security |
withProtocol(SecurityConfigurationRuleProtocol protocol)
Set the protocol property: Network protocol this rule applies to. |
Security |
withSourcePortRanges(List<String> sourcePortRanges)
Set the source |
Security |
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:
destinationPortRanges
public List
Get the destinationPortRanges property: The destination port ranges.
Returns:
destinations
public List
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:
SecurityUserRuleInner.etag()Returns:
fromJson
public static SecurityUserRuleInner fromJson(JsonReader jsonReader)
Reads an instance of SecurityUserRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SecurityUserRuleInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SecurityUserRuleInner.name()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 security configuration user rule resource.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: Unique identifier for this resource.
Returns:
sourcePortRanges
public List
Get the sourcePortRanges property: The source port ranges.
Returns:
sources
public List
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.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SecurityUserRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SecurityUserRuleInner.type()Returns:
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:
Returns:
withDestinationPortRanges
public SecurityUserRuleInner withDestinationPortRanges(List
Set the destinationPortRanges property: The destination port ranges.
Parameters:
Returns:
withDestinations
public SecurityUserRuleInner withDestinations(List
Set the destinations property: The destination address prefixes. CIDR or destination IP ranges.
Parameters:
Returns:
withDirection
public SecurityUserRuleInner withDirection(SecurityConfigurationRuleDirection direction)
Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound.
Parameters:
Returns:
withProtocol
public SecurityUserRuleInner withProtocol(SecurityConfigurationRuleProtocol protocol)
Set the protocol property: Network protocol this rule applies to.
Parameters:
Returns:
withSourcePortRanges
public SecurityUserRuleInner withSourcePortRanges(List
Set the sourcePortRanges property: The source port ranges.
Parameters:
Returns:
withSources
public SecurityUserRuleInner withSources(List
Set the sources property: The CIDR or source IP ranges.
Parameters:
Returns:
Applies to
Azure SDK for Java