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

318 строки
24 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.network.models.NatRule"
fullName: "com.azure.resourcemanager.network.models.NatRule"
name: "NatRule"
nameWithType: "NatRule"
summary: "Rule of type nat."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule&text=FirewallPolicyRule\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.description()?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.description&text=description\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.fromJson(com.azure.json.JsonReader)?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.fromJson&text=fromJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.name()?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.name&text=name\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.ruleType()?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.ruleType&text=ruleType\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.toJson(com.azure.json.JsonWriter)?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.toJson&text=toJson\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.validate()?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.validate&text=validate\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.withDescription(java.lang.String)?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.withDescription&text=withDescription\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule.withName(java.lang.String)?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule.withName&text=withName\" 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 **NatRule**</br> extends <xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRule?alt=com.azure.resourcemanager.network.models.FirewallPolicyRule&text=FirewallPolicyRule\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.resourcemanager.network.models.NatRule.NatRule()"
fullName: "com.azure.resourcemanager.network.models.NatRule.NatRule()"
name: "NatRule()"
nameWithType: "NatRule.NatRule()"
summary: "Creates an instance of Nat<wbr>Rule class."
syntax: "public NatRule()"
desc: "Creates an instance of NatRule class."
methods:
- uid: "com.azure.resourcemanager.network.models.NatRule.destinationAddresses()"
fullName: "com.azure.resourcemanager.network.models.NatRule.destinationAddresses()"
name: "destinationAddresses()"
nameWithType: "NatRule.destinationAddresses()"
summary: "Get the destination<wbr>Addresses property: List of destination IP addresses or Service Tags."
syntax: "public List<String> destinationAddresses()"
desc: "Get the destinationAddresses property: List of destination IP addresses or Service Tags."
returns:
description: "the destinationAddresses 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.NatRule.destinationPorts()"
fullName: "com.azure.resourcemanager.network.models.NatRule.destinationPorts()"
name: "destinationPorts()"
nameWithType: "NatRule.destinationPorts()"
summary: "Get the destination<wbr>Ports property: List of destination ports."
syntax: "public List<String> destinationPorts()"
desc: "Get the destinationPorts property: List of destination ports."
returns:
description: "the destinationPorts 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.NatRule.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.network.models.NatRule.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "NatRule.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Nat<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 NatRule fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the NatRule."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of NatRule from the JsonReader."
returns:
description: "An instance of NatRule if the JsonReader was pointing to an instance of it, or null if it was pointing to\n JSON null."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.ipProtocols()"
fullName: "com.azure.resourcemanager.network.models.NatRule.ipProtocols()"
name: "ipProtocols()"
nameWithType: "NatRule.ipProtocols()"
summary: "Get the ip<wbr>Protocols property: Array of Firewall<wbr>Policy<wbr>Rule<wbr>Network<wbr>Protocols."
syntax: "public List<FirewallPolicyRuleNetworkProtocol> ipProtocols()"
desc: "Get the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols."
returns:
description: "the ipProtocols 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.FirewallPolicyRuleNetworkProtocol?alt=com.azure.resourcemanager.network.models.FirewallPolicyRuleNetworkProtocol&text=FirewallPolicyRuleNetworkProtocol\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.network.models.NatRule.ruleType()"
fullName: "com.azure.resourcemanager.network.models.NatRule.ruleType()"
name: "ruleType()"
nameWithType: "NatRule.ruleType()"
summary: "Get the rule<wbr>Type property: Rule Type."
overridden: "com.azure.resourcemanager.network.models.FirewallPolicyRule.ruleType()"
syntax: "public FirewallPolicyRuleType ruleType()"
desc: "Get the ruleType property: Rule Type."
returns:
description: "the ruleType value."
type: "<xref href=\"com.azure.resourcemanager.network.models.FirewallPolicyRuleType?alt=com.azure.resourcemanager.network.models.FirewallPolicyRuleType&text=FirewallPolicyRuleType\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.sourceAddresses()"
fullName: "com.azure.resourcemanager.network.models.NatRule.sourceAddresses()"
name: "sourceAddresses()"
nameWithType: "NatRule.sourceAddresses()"
summary: "Get the source<wbr>Addresses property: List of source IP addresses for this rule."
syntax: "public List<String> sourceAddresses()"
desc: "Get the sourceAddresses property: List of source IP addresses for this rule."
returns:
description: "the sourceAddresses 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.NatRule.sourceIpGroups()"
fullName: "com.azure.resourcemanager.network.models.NatRule.sourceIpGroups()"
name: "sourceIpGroups()"
nameWithType: "NatRule.sourceIpGroups()"
summary: "Get the source<wbr>IpGroups property: List of source Ip<wbr>Groups for this rule."
syntax: "public List<String> sourceIpGroups()"
desc: "Get the sourceIpGroups property: List of source IpGroups for this rule."
returns:
description: "the sourceIpGroups 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.NatRule.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.network.models.NatRule.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "NatRule.toJson(JsonWriter jsonWriter)"
overridden: "com.azure.resourcemanager.network.models.FirewallPolicyRule.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.NatRule.translatedAddress()"
fullName: "com.azure.resourcemanager.network.models.NatRule.translatedAddress()"
name: "translatedAddress()"
nameWithType: "NatRule.translatedAddress()"
summary: "Get the translated<wbr>Address property: The translated address for this NAT rule."
syntax: "public String translatedAddress()"
desc: "Get the translatedAddress property: The translated address for this NAT rule."
returns:
description: "the translatedAddress value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.NatRule.translatedFqdn()"
fullName: "com.azure.resourcemanager.network.models.NatRule.translatedFqdn()"
name: "translatedFqdn()"
nameWithType: "NatRule.translatedFqdn()"
summary: "Get the translated<wbr>Fqdn property: The translated FQDN for this NAT rule."
syntax: "public String translatedFqdn()"
desc: "Get the translatedFqdn property: The translated FQDN for this NAT rule."
returns:
description: "the translatedFqdn value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.NatRule.translatedPort()"
fullName: "com.azure.resourcemanager.network.models.NatRule.translatedPort()"
name: "translatedPort()"
nameWithType: "NatRule.translatedPort()"
summary: "Get the translated<wbr>Port property: The translated port for this NAT rule."
syntax: "public String translatedPort()"
desc: "Get the translatedPort property: The translated port for this NAT rule."
returns:
description: "the translatedPort value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.network.models.NatRule.validate()"
fullName: "com.azure.resourcemanager.network.models.NatRule.validate()"
name: "validate()"
nameWithType: "NatRule.validate()"
summary: "Validates the instance."
overridden: "com.azure.resourcemanager.network.models.FirewallPolicyRule.validate()"
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.network.models.NatRule.withDescription(java.lang.String)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withDescription(String description)"
name: "withDescription(String description)"
nameWithType: "NatRule.withDescription(String description)"
summary: "Set the description property: Description of the rule."
overridden: "com.azure.resourcemanager.network.models.FirewallPolicyRule.withDescription(java.lang.String)"
parameters:
- name: "description"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public NatRule withDescription(String description)"
desc: "Set the description property: Description of the rule."
returns:
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withDestinationAddresses(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withDestinationAddresses(List<String> destinationAddresses)"
name: "withDestinationAddresses(List<String> destinationAddresses)"
nameWithType: "NatRule.withDestinationAddresses(List<String> destinationAddresses)"
summary: "Set the destination<wbr>Addresses property: List of destination IP addresses or Service Tags."
parameters:
- description: "the destinationAddresses value to set."
name: "destinationAddresses"
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 NatRule withDestinationAddresses(List<String> destinationAddresses)"
desc: "Set the destinationAddresses property: List of destination IP addresses or Service Tags."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withDestinationPorts(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withDestinationPorts(List<String> destinationPorts)"
name: "withDestinationPorts(List<String> destinationPorts)"
nameWithType: "NatRule.withDestinationPorts(List<String> destinationPorts)"
summary: "Set the destination<wbr>Ports property: List of destination ports."
parameters:
- description: "the destinationPorts value to set."
name: "destinationPorts"
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 NatRule withDestinationPorts(List<String> destinationPorts)"
desc: "Set the destinationPorts property: List of destination ports."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withIpProtocols(java.util.List<com.azure.resourcemanager.network.models.FirewallPolicyRuleNetworkProtocol>)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)"
name: "withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)"
nameWithType: "NatRule.withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)"
summary: "Set the ip<wbr>Protocols property: Array of Firewall<wbr>Policy<wbr>Rule<wbr>Network<wbr>Protocols."
parameters:
- description: "the ipProtocols value to set."
name: "ipProtocols"
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.FirewallPolicyRuleNetworkProtocol?alt=com.azure.resourcemanager.network.models.FirewallPolicyRuleNetworkProtocol&text=FirewallPolicyRuleNetworkProtocol\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public NatRule withIpProtocols(List<FirewallPolicyRuleNetworkProtocol> ipProtocols)"
desc: "Set the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withName(java.lang.String)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withName(String name)"
name: "withName(String name)"
nameWithType: "NatRule.withName(String name)"
summary: "Set the name property: Name of the rule."
overridden: "com.azure.resourcemanager.network.models.FirewallPolicyRule.withName(java.lang.String)"
parameters:
- name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public NatRule withName(String name)"
desc: "Set the name property: Name of the rule."
returns:
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withSourceAddresses(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withSourceAddresses(List<String> sourceAddresses)"
name: "withSourceAddresses(List<String> sourceAddresses)"
nameWithType: "NatRule.withSourceAddresses(List<String> sourceAddresses)"
summary: "Set the source<wbr>Addresses property: List of source IP addresses for this rule."
parameters:
- description: "the sourceAddresses value to set."
name: "sourceAddresses"
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 NatRule withSourceAddresses(List<String> sourceAddresses)"
desc: "Set the sourceAddresses property: List of source IP addresses for this rule."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withSourceIpGroups(java.util.List<java.lang.String>)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withSourceIpGroups(List<String> sourceIpGroups)"
name: "withSourceIpGroups(List<String> sourceIpGroups)"
nameWithType: "NatRule.withSourceIpGroups(List<String> sourceIpGroups)"
summary: "Set the source<wbr>IpGroups property: List of source Ip<wbr>Groups for this rule."
parameters:
- description: "the sourceIpGroups value to set."
name: "sourceIpGroups"
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 NatRule withSourceIpGroups(List<String> sourceIpGroups)"
desc: "Set the sourceIpGroups property: List of source IpGroups for this rule."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withTranslatedAddress(java.lang.String)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withTranslatedAddress(String translatedAddress)"
name: "withTranslatedAddress(String translatedAddress)"
nameWithType: "NatRule.withTranslatedAddress(String translatedAddress)"
summary: "Set the translated<wbr>Address property: The translated address for this NAT rule."
parameters:
- description: "the translatedAddress value to set."
name: "translatedAddress"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public NatRule withTranslatedAddress(String translatedAddress)"
desc: "Set the translatedAddress property: The translated address for this NAT rule."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withTranslatedFqdn(java.lang.String)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withTranslatedFqdn(String translatedFqdn)"
name: "withTranslatedFqdn(String translatedFqdn)"
nameWithType: "NatRule.withTranslatedFqdn(String translatedFqdn)"
summary: "Set the translated<wbr>Fqdn property: The translated FQDN for this NAT rule."
parameters:
- description: "the translatedFqdn value to set."
name: "translatedFqdn"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public NatRule withTranslatedFqdn(String translatedFqdn)"
desc: "Set the translatedFqdn property: The translated FQDN for this NAT rule."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.network.models.NatRule.withTranslatedPort(java.lang.String)"
fullName: "com.azure.resourcemanager.network.models.NatRule.withTranslatedPort(String translatedPort)"
name: "withTranslatedPort(String translatedPort)"
nameWithType: "NatRule.withTranslatedPort(String translatedPort)"
summary: "Set the translated<wbr>Port property: The translated port for this NAT rule."
parameters:
- description: "the translatedPort value to set."
name: "translatedPort"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public NatRule withTranslatedPort(String translatedPort)"
desc: "Set the translatedPort property: The translated port for this NAT rule."
returns:
description: "the NatRule object itself."
type: "<xref href=\"com.azure.resourcemanager.network.models.NatRule?alt=com.azure.resourcemanager.network.models.NatRule&text=NatRule\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Rule of type nat."
metadata: {}
package: "com.azure.resourcemanager.network.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.44.0