azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.managem...

276 строки
21 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule"
name: "NsgSecurityRule"
nameWithType: "NsgSecurityRule"
summary: "Security Rule data model for Network Security Groups."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"java.lang.Object.clone()?alt=java.lang.Object.clone&text=clone\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.equals(java.lang.Object)?alt=java.lang.Object.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.finalize()?alt=java.lang.Object.finalize&text=finalize\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.getClass()?alt=java.lang.Object.getClass&text=getClass\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.hashCode()?alt=java.lang.Object.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notify()?alt=java.lang.Object.notify&text=notify\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notifyAll()?alt=java.lang.Object.notifyAll&text=notifyAll\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.toString()?alt=java.lang.Object.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait()?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long,int)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
syntax: "public class **NsgSecurityRule**"
constructors:
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.NsgSecurityRule()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.NsgSecurityRule()"
name: "NsgSecurityRule()"
nameWithType: "NsgSecurityRule.NsgSecurityRule()"
syntax: "public NsgSecurityRule()"
methods:
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.access()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.access()"
name: "access()"
nameWithType: "NsgSecurityRule.access()"
summary: "Get gets or sets whether network traffic is allowed or denied."
syntax: "public String access()"
desc: "Get gets or sets whether network traffic is allowed or denied. Possible values are \\\\u201cAllow\\\\u201d and \\\\u201cDeny\\\\u201d."
returns:
description: "the access value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.description()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.description()"
name: "description()"
nameWithType: "NsgSecurityRule.description()"
summary: "Get gets or sets a description for this rule."
syntax: "public String description()"
desc: "Get gets or sets a description for this rule. Restricted to 140 chars."
returns:
description: "the description value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationAddressPrefix()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationAddressPrefix()"
name: "destinationAddressPrefix()"
nameWithType: "NsgSecurityRule.destinationAddressPrefix()"
summary: "Get gets or sets destination address prefix."
syntax: "public String destinationAddressPrefix()"
desc: "Get gets or sets destination address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used."
returns:
description: "the destinationAddressPrefix value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationPortRange()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationPortRange()"
name: "destinationPortRange()"
nameWithType: "NsgSecurityRule.destinationPortRange()"
summary: "Get gets or sets Destination Port or Range."
syntax: "public String destinationPortRange()"
desc: "Get gets or sets Destination Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports."
returns:
description: "the destinationPortRange value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.direction()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.direction()"
name: "direction()"
nameWithType: "NsgSecurityRule.direction()"
summary: "Get gets or sets the direction of the rule.<wbr>In<wbr>Bound or Outbound."
syntax: "public String direction()"
desc: "Get gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic."
returns:
description: "the direction value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.name()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.name()"
name: "name()"
nameWithType: "NsgSecurityRule.name()"
summary: "Get gets or sets the Security rule name."
syntax: "public String name()"
desc: "Get gets or sets the Security rule name."
returns:
description: "the name value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.priority()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.priority()"
name: "priority()"
nameWithType: "NsgSecurityRule.priority()"
summary: "Get gets or sets the priority of the rule."
syntax: "public Integer priority()"
desc: "Get gets or sets the priority of the rule. The value can be between 100 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: "<xref href=\"java.lang.Integer?alt=java.lang.Integer&text=Integer\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.protocol()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.protocol()"
name: "protocol()"
nameWithType: "NsgSecurityRule.protocol()"
summary: "Get gets or sets Network protocol this rule applies to."
syntax: "public String protocol()"
desc: "Get gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(\\*)."
returns:
description: "the protocol value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourceAddressPrefix()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourceAddressPrefix()"
name: "sourceAddressPrefix()"
nameWithType: "NsgSecurityRule.sourceAddressPrefix()"
summary: "Get gets or sets source address prefix."
syntax: "public String sourceAddressPrefix()"
desc: "Get gets or sets source address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used. If this is an ingress rule, specifies where network traffic originates from."
returns:
description: "the sourceAddressPrefix value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourcePortRange()"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourcePortRange()"
name: "sourcePortRange()"
nameWithType: "NsgSecurityRule.sourcePortRange()"
summary: "Get gets or sets Source Port or Range."
syntax: "public String sourcePortRange()"
desc: "Get gets or sets Source Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports."
returns:
description: "the sourcePortRange value"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withAccess(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withAccess(String access)"
name: "withAccess(String access)"
nameWithType: "NsgSecurityRule.withAccess(String access)"
summary: "Set gets or sets whether network traffic is allowed or denied."
parameters:
- description: "the access value to set"
name: "access"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withAccess(String access)"
desc: "Set gets or sets whether network traffic is allowed or denied. Possible values are \\\\u201cAllow\\\\u201d and \\\\u201cDeny\\\\u201d."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDescription(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDescription(String description)"
name: "withDescription(String description)"
nameWithType: "NsgSecurityRule.withDescription(String description)"
summary: "Set gets or sets a description for this rule."
parameters:
- description: "the description value to set"
name: "description"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withDescription(String description)"
desc: "Set gets or sets a description for this rule. Restricted to 140 chars."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationAddressPrefix(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationAddressPrefix(String destinationAddressPrefix)"
name: "withDestinationAddressPrefix(String destinationAddressPrefix)"
nameWithType: "NsgSecurityRule.withDestinationAddressPrefix(String destinationAddressPrefix)"
summary: "Set gets or sets destination address prefix."
parameters:
- description: "the destinationAddressPrefix value to set"
name: "destinationAddressPrefix"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)"
desc: "Set gets or sets destination address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationPortRange(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationPortRange(String destinationPortRange)"
name: "withDestinationPortRange(String destinationPortRange)"
nameWithType: "NsgSecurityRule.withDestinationPortRange(String destinationPortRange)"
summary: "Set gets or sets Destination Port or Range."
parameters:
- description: "the destinationPortRange value to set"
name: "destinationPortRange"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withDestinationPortRange(String destinationPortRange)"
desc: "Set gets or sets Destination Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDirection(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDirection(String direction)"
name: "withDirection(String direction)"
nameWithType: "NsgSecurityRule.withDirection(String direction)"
summary: "Set gets or sets the direction of the rule.<wbr>In<wbr>Bound or Outbound."
parameters:
- description: "the direction value to set"
name: "direction"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withDirection(String direction)"
desc: "Set gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withName(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withName(String name)"
name: "withName(String name)"
nameWithType: "NsgSecurityRule.withName(String name)"
summary: "Set gets or sets the Security rule name."
parameters:
- description: "the name value to set"
name: "name"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withName(String name)"
desc: "Set gets or sets the Security rule name."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withPriority(java.lang.Integer)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withPriority(Integer priority)"
name: "withPriority(Integer priority)"
nameWithType: "NsgSecurityRule.withPriority(Integer priority)"
summary: "Set gets or sets the priority of the rule."
parameters:
- description: "the priority value to set"
name: "priority"
type: "<xref href=\"java.lang.Integer?alt=java.lang.Integer&text=Integer\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withPriority(Integer priority)"
desc: "Set gets or sets the priority of the rule. The value can be between 100 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 NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withProtocol(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withProtocol(String protocol)"
name: "withProtocol(String protocol)"
nameWithType: "NsgSecurityRule.withProtocol(String protocol)"
summary: "Set gets or sets Network protocol this rule applies to."
parameters:
- description: "the protocol value to set"
name: "protocol"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withProtocol(String protocol)"
desc: "Set gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(\\*)."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourceAddressPrefix(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourceAddressPrefix(String sourceAddressPrefix)"
name: "withSourceAddressPrefix(String sourceAddressPrefix)"
nameWithType: "NsgSecurityRule.withSourceAddressPrefix(String sourceAddressPrefix)"
summary: "Set gets or sets source address prefix."
parameters:
- description: "the sourceAddressPrefix value to set"
name: "sourceAddressPrefix"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)"
desc: "Set gets or sets source address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used. If this is an ingress rule, specifies where network traffic originates from."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourcePortRange(java.lang.String)"
fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourcePortRange(String sourcePortRange)"
name: "withSourcePortRange(String sourcePortRange)"
nameWithType: "NsgSecurityRule.withSourcePortRange(String sourcePortRange)"
summary: "Set gets or sets Source Port or Range."
parameters:
- description: "the sourcePortRange value to set"
name: "sourcePortRange"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public NsgSecurityRule withSourcePortRange(String sourcePortRange)"
desc: "Set gets or sets Source Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports."
returns:
description: "the NsgSecurityRule object itself."
type: "<xref href=\"com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule?alt=com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule&text=NsgSecurityRule\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Security Rule data model for Network Security Groups."
metadata: {}
package: "com.microsoft.azure.management.resourcemover.v2021_01_01"
artifact: com.microsoft.azure.resourcemover.v2021_01_01:azure-mgmt-resourcemover:1.0.0