Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NatRule . |
Modifier and Type | Method and Description |
---|---|
NatRule |
build() |
NatRule.Builder |
setAction(java.lang.String action)
Possible values are:
NatRule.ACTION_SNAT NatRule.ACTION_DNAT NatRule.ACTION_REFLEXIVE NatRule.ACTION_NO_SNAT NatRule.ACTION_NO_DNAT NatRule.ACTION_NAT64 Valid actions: SNAT, DNAT,
NO_SNAT, NO_DNAT, REFLEXIVE, NAT64. |
NatRule.Builder |
setAppliedTos(java.util.List<ResourceReference> appliedTos)
Holds the list of LogicalRouterPort Ids that a NAT rule can be applied to.
|
NatRule.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NatRule.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NatRule.Builder |
setDescription(java.lang.String description)
Description of this resource
|
NatRule.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
NatRule.Builder |
setEnabled(java.lang.Boolean enabled)
Indicator to enable/disable the rule.
|
NatRule.Builder |
setFirewallMatch(java.lang.String firewallMatch)
Possible values are:
NatRule.FIREWALL_MATCH_MATCH_EXTERNAL_ADDRESS
NatRule.FIREWALL_MATCH_MATCH_INTERNAL_ADDRESS
NatRule.FIREWALL_MATCH_BYPASS
Indicate how firewall is applied to a traffic packet. |
NatRule.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
NatRule.Builder |
setInternalRuleId(java.lang.String internalRuleId)
Internal NAT rule uuid for debug used in Controller and backend.
|
NatRule.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NatRule.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NatRule.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NatRule.Builder |
setLogging(java.lang.Boolean logging)
Enable/disable the logging of rule.
|
NatRule.Builder |
setLogicalRouterId(java.lang.String logicalRouterId)
The logical router id which the nat rule runs on.
|
NatRule.Builder |
setMatchDestinationNetwork(java.lang.String matchDestinationNetwork)
IP Address | CIDR | (null implies Any)
|
NatRule.Builder |
setMatchService(com.vmware.vapi.bindings.Structure matchService) |
NatRule.Builder |
setMatchSourceNetwork(java.lang.String matchSourceNetwork)
IP Address | CIDR | (null implies Any)
|
NatRule.Builder |
setPbVpnMode(java.lang.String pbVpnMode)
Possible values are:
NatRule.PB_VPN_MODE_BYPASS NatRule.PB_VPN_MODE_EXCLUSIVE Indicate how the
rule applies to Policy-Based VPN traffic. |
NatRule.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
NatRule.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
NatRule.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
NatRule.Builder |
setRulePriority(java.lang.Long rulePriority)
Ascending, valid range [0-2147483647].
|
NatRule.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NatRule.Builder |
setSelf(SelfResourceLink self) |
NatRule.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NatRule.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
NatRule.Builder |
setTranslatedNetwork(java.lang.String translatedNetwork)
The translated address for the matched IP packet.
|
NatRule.Builder |
setTranslatedPorts(java.lang.String translatedPorts)
The translated port(s) for the mtached IP packet.
|
public Builder()
NatRule
.public NatRule.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public NatRule.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public NatRule.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public NatRule.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public NatRule.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public NatRule.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public NatRule.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public NatRule.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public NatRule.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public NatRule.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public NatRule.Builder setDescription(java.lang.String description)
description
- New value for the property.public NatRule.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public NatRule.Builder setId(java.lang.String id)
id
- New value for the property.public NatRule.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public NatRule.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public NatRule.Builder setAction(java.lang.String action)
action
- New value for the property.public NatRule.Builder setAppliedTos(java.util.List<ResourceReference> appliedTos)
appliedTos
- New value for the property.public NatRule.Builder setEnabled(java.lang.Boolean enabled)
enabled
- New value for the property.public NatRule.Builder setFirewallMatch(java.lang.String firewallMatch)
firewallMatch
- New value for the property.public NatRule.Builder setInternalRuleId(java.lang.String internalRuleId)
internalRuleId
- New value for the property.public NatRule.Builder setLogging(java.lang.Boolean logging)
logging
- New value for the property.public NatRule.Builder setLogicalRouterId(java.lang.String logicalRouterId)
logicalRouterId
- New value for the property.public NatRule.Builder setMatchDestinationNetwork(java.lang.String matchDestinationNetwork)
matchDestinationNetwork
- New value for the property.public NatRule.Builder setMatchService(com.vmware.vapi.bindings.Structure matchService)
matchService
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain all the properties defined in NSServiceElement
. When methods return a value of this
class as a return value, the property will contain all the properties defined in
NSServiceElement
.public NatRule.Builder setMatchSourceNetwork(java.lang.String matchSourceNetwork)
matchSourceNetwork
- New value for the property.public NatRule.Builder setPbVpnMode(java.lang.String pbVpnMode)
pbVpnMode
- New value for the property.public NatRule.Builder setRulePriority(java.lang.Long rulePriority)
rulePriority
- New value for the property.public NatRule.Builder setTranslatedNetwork(java.lang.String translatedNetwork)
translatedNetwork
- New value for the property.public NatRule.Builder setTranslatedPorts(java.lang.String translatedPorts)
translatedPorts
- New value for the property.public NatRule build()