azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.n...

394 строки
30 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.network.models.AdminRule"
fullName: "com.azure.resourcemanager.network.models.AdminRule"
name: "AdminRule"
nameWithType: "AdminRule"
summary: "Network admin rule."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.management.ProxyResource?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.ChildResource?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner&text=BaseAdminRuleInner\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.etag()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.etag&text=etag\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.fromJson(com.azure.json.JsonReader)?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.fromJson&text=fromJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.id()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.id&text=id\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.kind()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.kind&text=kind\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.name()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.name&text=name\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.systemData()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.systemData&text=systemData\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.toJson(com.azure.json.JsonWriter)?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.toJson&text=toJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.type()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.type&text=type\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.validate()?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.validate&text=validate\" data-throw-if-not-resolved=\"False\" />"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **AdminRule**</br> extends <xref href=\"com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner?alt=com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner&text=BaseAdminRuleInner\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.resourcemanager.network.models.AdminRule.AdminRule()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.AdminRule()"
name: "AdminRule()"
nameWithType: "AdminRule.AdminRule()"
summary: "Creates an instance of Admin<wbr>Rule class."
syntax: "public AdminRule()"
desc: "Creates an instance of AdminRule class."
methods:
- uid: "com.azure.resourcemanager.network.models.AdminRule.access()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.access()"
name: "access()"
nameWithType: "AdminRule.access()"
summary: "Get the access property: Indicates the access allowed for this particular rule."
syntax: "public SecurityConfigurationRuleAccess access()"
desc: "Get the access property: Indicates the access allowed for this particular rule."
returns:
description: "the access value."
type: "<xref href=\"com.azure.resourcemanager.network.models.SecurityConfigurationRuleAccess?alt=com.azure.resourcemanager.network.models.SecurityConfigurationRuleAccess&text=SecurityConfigurationRuleAccess\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.description()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.description()"
name: "description()"
nameWithType: "AdminRule.description()"
summary: "Get the description property: A description for this rule."
syntax: "public String description()"
desc: "Get the description property: A description for this rule. Restricted to 140 chars."
returns:
description: "the description value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.destinationPortRanges()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.destinationPortRanges()"
name: "destinationPortRanges()"
nameWithType: "AdminRule.destinationPortRanges()"
summary: "Get the destination<wbr>Port<wbr>Ranges property: The destination port ranges."
syntax: "public List<String> destinationPortRanges()"
desc: "Get the destinationPortRanges property: The destination port ranges."
returns:
description: "the destinationPortRanges value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
- uid: "com.azure.resourcemanager.network.models.AdminRule.destinations()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.destinations()"
name: "destinations()"
nameWithType: "AdminRule.destinations()"
summary: "Get the destinations property: The destination address prefixes."
syntax: "public List<AddressPrefixItem> destinations()"
desc: "Get the destinations property: The destination address prefixes. CIDR or destination IP ranges."
returns:
description: "the destinations value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.AddressPrefixItem?alt=com.azure.resourcemanager.network.models.AddressPrefixItem&text=AddressPrefixItem\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.models.AdminRule.direction()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.direction()"
name: "direction()"
nameWithType: "AdminRule.direction()"
summary: "Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound."
syntax: "public SecurityConfigurationRuleDirection direction()"
desc: "Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound."
returns:
description: "the direction value."
type: "<xref href=\"com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection?alt=com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection&text=SecurityConfigurationRuleDirection\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.etag()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.etag()"
name: "etag()"
nameWithType: "AdminRule.etag()"
summary: "Get the etag property: A unique read-only string that changes whenever the resource is updated."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.etag()"
syntax: "public String etag()"
desc: "Get the etag property: A unique read-only string that changes whenever the resource is updated."
returns:
description: "the etag value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "AdminRule.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Admin<wbr>Rule from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static AdminRule fromJson(JsonReader jsonReader)"
exceptions:
- description: "If the deserialized JSON object was missing any required properties."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of AdminRule from the JsonReader."
returns:
description: "An instance of AdminRule if the JsonReader was pointing to an instance of it, or null if it was pointing\n to JSON null."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.id()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.id()"
name: "id()"
nameWithType: "AdminRule.id()"
summary: "Get the id property: Fully qualified resource Id for the resource."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.id()"
syntax: "public String id()"
desc: "Get the id property: Fully qualified resource Id for the resource."
returns:
description: "the id value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.kind()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.kind()"
name: "kind()"
nameWithType: "AdminRule.kind()"
summary: "Get the kind property: Whether the rule is custom or default."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.kind()"
syntax: "public AdminRuleKind kind()"
desc: "Get the kind property: Whether the rule is custom or default."
returns:
description: "the kind value."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRuleKind?alt=com.azure.resourcemanager.network.models.AdminRuleKind&text=AdminRuleKind\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.name()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.name()"
name: "name()"
nameWithType: "AdminRule.name()"
summary: "Get the name property: The name of the resource."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.name()"
syntax: "public String name()"
desc: "Get the name property: The name of the resource."
returns:
description: "the name value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.priority()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.priority()"
name: "priority()"
nameWithType: "AdminRule.priority()"
summary: "Get the priority property: The priority of the rule."
syntax: "public Integer priority()"
desc: "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:
description: "the priority value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.protocol()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.protocol()"
name: "protocol()"
nameWithType: "AdminRule.protocol()"
summary: "Get the protocol property: Network protocol this rule applies to."
syntax: "public SecurityConfigurationRuleProtocol protocol()"
desc: "Get the protocol property: Network protocol this rule applies to."
returns:
description: "the protocol value."
type: "<xref href=\"com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol?alt=com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol&text=SecurityConfigurationRuleProtocol\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.provisioningState()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.provisioningState()"
name: "provisioningState()"
nameWithType: "AdminRule.provisioningState()"
summary: "Get the provisioning<wbr>State property: The provisioning state of the resource."
syntax: "public ProvisioningState provisioningState()"
desc: "Get the provisioningState property: The provisioning state of the resource."
returns:
description: "the provisioningState value."
type: "<xref href=\"com.azure.resourcemanager.network.models.ProvisioningState?alt=com.azure.resourcemanager.network.models.ProvisioningState&text=ProvisioningState\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.resourceGuid()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.resourceGuid()"
name: "resourceGuid()"
nameWithType: "AdminRule.resourceGuid()"
summary: "Get the resource<wbr>Guid property: Unique identifier for this resource."
syntax: "public String resourceGuid()"
desc: "Get the resourceGuid property: Unique identifier for this resource."
returns:
description: "the resourceGuid value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.sourcePortRanges()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.sourcePortRanges()"
name: "sourcePortRanges()"
nameWithType: "AdminRule.sourcePortRanges()"
summary: "Get the source<wbr>Port<wbr>Ranges property: The source port ranges."
syntax: "public List<String> sourcePortRanges()"
desc: "Get the sourcePortRanges property: The source port ranges."
returns:
description: "the sourcePortRanges value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
- uid: "com.azure.resourcemanager.network.models.AdminRule.sources()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.sources()"
name: "sources()"
nameWithType: "AdminRule.sources()"
summary: "Get the sources property: The CIDR or source IP ranges."
syntax: "public List<AddressPrefixItem> sources()"
desc: "Get the sources property: The CIDR or source IP ranges."
returns:
description: "the sources value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.AddressPrefixItem?alt=com.azure.resourcemanager.network.models.AddressPrefixItem&text=AddressPrefixItem\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.models.AdminRule.systemData()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.systemData()"
name: "systemData()"
nameWithType: "AdminRule.systemData()"
summary: "Get the system<wbr>Data property: The system metadata related to this resource."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.systemData()"
syntax: "public SystemData systemData()"
desc: "Get the systemData property: The system metadata related to this resource."
returns:
description: "the systemData value."
type: "<xref href=\"com.azure.core.management.SystemData?alt=com.azure.core.management.SystemData&text=SystemData\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "AdminRule.toJson(JsonWriter jsonWriter)"
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.toJson(com.azure.json.JsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.type()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.type()"
name: "type()"
nameWithType: "AdminRule.type()"
summary: "Get the type property: The type of the resource."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.type()"
syntax: "public String type()"
desc: "Get the type property: The type of the resource."
returns:
description: "the type value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.AdminRule.validate()"
fullName: "com.azure.resourcemanager.network.models.AdminRule.validate()"
name: "validate()"
nameWithType: "AdminRule.validate()"
summary: "Validates the instance."
overridden: "com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner.validate()"
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.network.models.AdminRule.withAccess(com.azure.resourcemanager.network.models.SecurityConfigurationRuleAccess)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withAccess(SecurityConfigurationRuleAccess access)"
name: "withAccess(SecurityConfigurationRuleAccess access)"
nameWithType: "AdminRule.withAccess(SecurityConfigurationRuleAccess access)"
summary: "Set the access property: Indicates the access allowed for this particular rule."
parameters:
- description: "the access value to set."
name: "access"
type: "<xref href=\"com.azure.resourcemanager.network.models.SecurityConfigurationRuleAccess?alt=com.azure.resourcemanager.network.models.SecurityConfigurationRuleAccess&text=SecurityConfigurationRuleAccess\" data-throw-if-not-resolved=\"False\" />"
syntax: "public AdminRule withAccess(SecurityConfigurationRuleAccess access)"
desc: "Set the access property: Indicates the access allowed for this particular rule."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withDescription(java.lang.String)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withDescription(String description)"
name: "withDescription(String description)"
nameWithType: "AdminRule.withDescription(String description)"
summary: "Set the description property: A description for this rule."
parameters:
- description: "the description value to set."
name: "description"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public AdminRule withDescription(String description)"
desc: "Set the description property: A description for this rule. Restricted to 140 chars."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withDestinationPortRanges(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withDestinationPortRanges(List<String> destinationPortRanges)"
name: "withDestinationPortRanges(List<String> destinationPortRanges)"
nameWithType: "AdminRule.withDestinationPortRanges(List<String> destinationPortRanges)"
summary: "Set the destination<wbr>Port<wbr>Ranges property: The destination port ranges."
parameters:
- description: "the destinationPortRanges value to set."
name: "destinationPortRanges"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
syntax: "public AdminRule withDestinationPortRanges(List<String> destinationPortRanges)"
desc: "Set the destinationPortRanges property: The destination port ranges."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withDestinations(java.util.List<com.azure.resourcemanager.network.models.AddressPrefixItem>)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withDestinations(List<AddressPrefixItem> destinations)"
name: "withDestinations(List<AddressPrefixItem> destinations)"
nameWithType: "AdminRule.withDestinations(List<AddressPrefixItem> destinations)"
summary: "Set the destinations property: The destination address prefixes."
parameters:
- description: "the destinations value to set."
name: "destinations"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.AddressPrefixItem?alt=com.azure.resourcemanager.network.models.AddressPrefixItem&text=AddressPrefixItem\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public AdminRule withDestinations(List<AddressPrefixItem> destinations)"
desc: "Set the destinations property: The destination address prefixes. CIDR or destination IP ranges."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withDirection(com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withDirection(SecurityConfigurationRuleDirection direction)"
name: "withDirection(SecurityConfigurationRuleDirection direction)"
nameWithType: "AdminRule.withDirection(SecurityConfigurationRuleDirection direction)"
summary: "Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound."
parameters:
- description: "the direction value to set."
name: "direction"
type: "<xref href=\"com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection?alt=com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection&text=SecurityConfigurationRuleDirection\" data-throw-if-not-resolved=\"False\" />"
syntax: "public AdminRule withDirection(SecurityConfigurationRuleDirection direction)"
desc: "Set the direction property: Indicates if the traffic matched against the rule in inbound or outbound."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withPriority(java.lang.Integer)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withPriority(Integer priority)"
name: "withPriority(Integer priority)"
nameWithType: "AdminRule.withPriority(Integer priority)"
summary: "Set the priority property: The priority of the rule."
parameters:
- description: "the priority value to set."
name: "priority"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public AdminRule withPriority(Integer priority)"
desc: "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."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withProtocol(com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withProtocol(SecurityConfigurationRuleProtocol protocol)"
name: "withProtocol(SecurityConfigurationRuleProtocol protocol)"
nameWithType: "AdminRule.withProtocol(SecurityConfigurationRuleProtocol protocol)"
summary: "Set the protocol property: Network protocol this rule applies to."
parameters:
- description: "the protocol value to set."
name: "protocol"
type: "<xref href=\"com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol?alt=com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol&text=SecurityConfigurationRuleProtocol\" data-throw-if-not-resolved=\"False\" />"
syntax: "public AdminRule withProtocol(SecurityConfigurationRuleProtocol protocol)"
desc: "Set the protocol property: Network protocol this rule applies to."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withSourcePortRanges(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withSourcePortRanges(List<String> sourcePortRanges)"
name: "withSourcePortRanges(List<String> sourcePortRanges)"
nameWithType: "AdminRule.withSourcePortRanges(List<String> sourcePortRanges)"
summary: "Set the source<wbr>Port<wbr>Ranges property: The source port ranges."
parameters:
- description: "the sourcePortRanges value to set."
name: "sourcePortRanges"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
syntax: "public AdminRule withSourcePortRanges(List<String> sourcePortRanges)"
desc: "Set the sourcePortRanges property: The source port ranges."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.AdminRule.withSources(java.util.List<com.azure.resourcemanager.network.models.AddressPrefixItem>)"
fullName: "com.azure.resourcemanager.network.models.AdminRule.withSources(List<AddressPrefixItem> sources)"
name: "withSources(List<AddressPrefixItem> sources)"
nameWithType: "AdminRule.withSources(List<AddressPrefixItem> sources)"
summary: "Set the sources property: The CIDR or source IP ranges."
parameters:
- description: "the sources value to set."
name: "sources"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.resourcemanager.network.models.AddressPrefixItem?alt=com.azure.resourcemanager.network.models.AddressPrefixItem&text=AddressPrefixItem\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public AdminRule withSources(List<AddressPrefixItem> sources)"
desc: "Set the sources property: The CIDR or source IP ranges."
returns:
description: "the AdminRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.AdminRule?alt=com.azure.resourcemanager.network.models.AdminRule&text=AdminRule\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Network admin rule."
metadata: {}
package: "com.azure.resourcemanager.network.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.42.0