Package com.vmware.nsx_policy.model
Class PolicyTraceflowObservationForwardedLogical.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyTraceflowObservationForwardedLogical.Builder
-
- Enclosing class:
- PolicyTraceflowObservationForwardedLogical
public static final class PolicyTraceflowObservationForwardedLogical.Builder extends java.lang.Object
Builder class forPolicyTraceflowObservationForwardedLogical
.
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String resourceType)
Constructor with parameters for the required properties ofPolicyTraceflowObservationForwardedLogical
.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String resourceType)
Constructor with parameters for the required properties ofPolicyTraceflowObservationForwardedLogical
.
-
-
Method Detail
-
setAclRulePath
public PolicyTraceflowObservationForwardedLogical.Builder setAclRulePath(java.lang.String aclRulePath)
The path of the ACL rule that was applied to forward the traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
aclRulePath
- New value for the property.
-
setComponentPath
public PolicyTraceflowObservationForwardedLogical.Builder setComponentPath(java.lang.String componentPath)
The path of the component that forwarded the traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
componentPath
- New value for the property.
-
setDstComponentPath
public PolicyTraceflowObservationForwardedLogical.Builder setDstComponentPath(java.lang.String dstComponentPath)
The path of the destination component to which the traceflow packet was forwarded This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dstComponentPath
- New value for the property.
-
setInterfacePath
public PolicyTraceflowObservationForwardedLogical.Builder setInterfacePath(java.lang.String interfacePath)
Path of interface This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
interfacePath
- New value for the property.
-
setIpsecVpnPath
public PolicyTraceflowObservationForwardedLogical.Builder setIpsecVpnPath(PolicyTraceflowObservationIpsecVpn ipsecVpnPath)
- Parameters:
ipsecVpnPath
- New value for the property.
-
setJumptoRulePath
public PolicyTraceflowObservationForwardedLogical.Builder setJumptoRulePath(java.lang.String jumptoRulePath)
The path of the jump-to rule that was applied to the traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
jumptoRulePath
- New value for the property.
-
setL2RulePath
public PolicyTraceflowObservationForwardedLogical.Builder setL2RulePath(java.lang.String l2RulePath)
The path of the l2 rule that was applied to the traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
l2RulePath
- New value for the property.
-
setNatRulePath
public PolicyTraceflowObservationForwardedLogical.Builder setNatRulePath(java.lang.String natRulePath)
The path of the NAT rule that was applied to forward the traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
natRulePath
- New value for the property.
-
setSegmentPortPath
public PolicyTraceflowObservationForwardedLogical.Builder setSegmentPortPath(java.lang.String segmentPortPath)
Path of segment port This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
segmentPortPath
- New value for the property.
-
setAclRuleId
public PolicyTraceflowObservationForwardedLogical.Builder setAclRuleId(java.lang.Long aclRuleId)
This field is specified when the traceflow packet matched a L3 firewall rule. 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.- Parameters:
aclRuleId
- New value for the property.
-
setComponentId
public PolicyTraceflowObservationForwardedLogical.Builder setComponentId(java.lang.String componentId)
The id of the component that forwarded the traceflow packet. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
componentId
- New value for the property.
-
setDstComponentId
public PolicyTraceflowObservationForwardedLogical.Builder setDstComponentId(java.lang.String dstComponentId)
The id of the destination component to which the traceflow packet was forwarded. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dstComponentId
- New value for the property.
-
setDstComponentName
public PolicyTraceflowObservationForwardedLogical.Builder setDstComponentName(java.lang.String dstComponentName)
The name of the destination component to which the traceflow packet was forwarded. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
dstComponentName
- New value for the property.
-
setDstComponentType
public PolicyTraceflowObservationForwardedLogical.Builder setDstComponentType(java.lang.String dstComponentType)
Possible values are:-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_PHYSICAL
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_LR
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_LS
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_DFW
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_BRIDGE
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_EDGE_TUNNEL
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_EDGE_HOSTSWITCH
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_FW_BRIDGE
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_EDGE_RTEP_TUNNEL
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_LOAD_BALANCER
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_NAT
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_IPSEC
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_SERVICE_INSERTION
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_VMC
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_SPOOFGUARD
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_EDGE_FW
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_DLB
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_ANTREA_SPOOFGUARD
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_ANTREA_LB
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_ANTREA_ROUTING
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_ANTREA_DFW
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_ANTREA_FORWARDING
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_HOST_SWITCH
-
TraceflowObservationForwardedLogical.DST_COMPONENT_TYPE_UNKNOWN
- Parameters:
dstComponentType
- New value for the property.
-
-
setIpsecVpn
public PolicyTraceflowObservationForwardedLogical.Builder setIpsecVpn(TraceflowObservationIpsecVpn ipsecVpn)
- Parameters:
ipsecVpn
- New value for the property.
-
setJumptoRuleId
public PolicyTraceflowObservationForwardedLogical.Builder setJumptoRuleId(java.lang.Long jumptoRuleId)
This field is specified when the traceflow packet matched a jump-to rule. 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.- Parameters:
jumptoRuleId
- New value for the property.
-
setL2RuleId
public PolicyTraceflowObservationForwardedLogical.Builder setL2RuleId(java.lang.Long l2RuleId)
This field is specified when the traceflow packet matched a l2 rule. 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.- Parameters:
l2RuleId
- New value for the property.
-
setLportId
public PolicyTraceflowObservationForwardedLogical.Builder setLportId(java.lang.String lportId)
The id of the logical port through which the traceflow packet was forwarded. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
lportId
- New value for the property.
-
setLportName
public PolicyTraceflowObservationForwardedLogical.Builder setLportName(java.lang.String lportName)
The name of the logical port through which the traceflow packet was forwarded. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
lportName
- New value for the property.
-
setNatRuleId
public PolicyTraceflowObservationForwardedLogical.Builder setNatRuleId(java.lang.Long natRuleId)
This field is specified when the traceflow packet matched a NAT rule. 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.- Parameters:
natRuleId
- New value for the property.
-
setNextHop
public PolicyTraceflowObservationForwardedLogical.Builder setNextHop(java.lang.String nextHop)
This field is specified when the traceflow packet was routed by logical router. format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
nextHop
- New value for the property.
-
setResendType
public PolicyTraceflowObservationForwardedLogical.Builder setResendType(java.lang.String resendType)
Possible values are: ARP_UNKNOWN_FROM_CP - Unknown ARP query result emitted by control plane ND_NS_UNKNOWN_FROM_CP - Unknown neighbor solicitation query result emitted by control plane UNKNOWN - Unknown resend type This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
resendType
- New value for the property.
-
setRoutePrefix
public PolicyTraceflowObservationForwardedLogical.Builder setRoutePrefix(java.lang.String routePrefix)
This field is specified when the traceflow packet was routed by logical router. format: ip-cidr-block This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
routePrefix
- New value for the property.
-
setServiceIndex
public PolicyTraceflowObservationForwardedLogical.Builder setServiceIndex(java.lang.Long serviceIndex)
The index of the service insertion component 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.- Parameters:
serviceIndex
- New value for the property.
-
setServicePathIndex
public PolicyTraceflowObservationForwardedLogical.Builder setServicePathIndex(java.lang.Long servicePathIndex)
The path index of the service insertion component 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.- Parameters:
servicePathIndex
- New value for the property.
-
setServiceTtl
public PolicyTraceflowObservationForwardedLogical.Builder setServiceTtl(java.lang.Long serviceTtl)
The ttl of the service insertion component 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.- Parameters:
serviceTtl
- New value for the property.
-
setSpoofguardIp
public PolicyTraceflowObservationForwardedLogical.Builder setSpoofguardIp(java.lang.String spoofguardIp)
This field specified the prefix IP address a traceflow packet matched in the whitelist in spoofguard. format: ip-cidr-block This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
spoofguardIp
- New value for the property.
-
setSpoofguardMac
public PolicyTraceflowObservationForwardedLogical.Builder setSpoofguardMac(java.lang.String spoofguardMac)
The source MAC address of form: \"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$\". For example: 00:00:00:00:00:00. format: mac-address This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
spoofguardMac
- New value for the property.
-
setSpoofguardVlanId
public PolicyTraceflowObservationForwardedLogical.Builder setSpoofguardVlanId(java.lang.Long spoofguardVlanId)
This field specified the VLAN id a traceflow packet matched in the whitelist in spoofguard. 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.- Parameters:
spoofguardVlanId
- New value for the property.
-
setSvcNhMac
public PolicyTraceflowObservationForwardedLogical.Builder setSvcNhMac(java.lang.String svcNhMac)
MAC address of nexthop for service insertion(SI) in service VM(SVM) where the traceflow packet was received. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
svcNhMac
- New value for the property.
-
setTranslatedDstIp
public PolicyTraceflowObservationForwardedLogical.Builder setTranslatedDstIp(java.lang.String translatedDstIp)
The translated destination IP address of VNP/NAT format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
translatedDstIp
- New value for the property.
-
setTranslatedSrcIp
public PolicyTraceflowObservationForwardedLogical.Builder setTranslatedSrcIp(java.lang.String translatedSrcIp)
The translated source IP address of VPN/NAT format: ip This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
translatedSrcIp
- New value for the property.
-
setVlan
public PolicyTraceflowObservationForwardedLogical.Builder setVlan(java.lang.Long vlan)
This field is specified when the traceflow packet was forwarded by a VLAN logical network. 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.- Parameters:
vlan
- New value for the property.
-
setVni
public PolicyTraceflowObservationForwardedLogical.Builder setVni(java.lang.Long vni)
This field is specified when the traceflow packet was forwarded by an overlay logical network. format: int32 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
vni
- New value for the property.
-
setComponentName
public PolicyTraceflowObservationForwardedLogical.Builder setComponentName(java.lang.String componentName)
The name of the component that issued the observation. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
componentName
- New value for the property.
-
setComponentSubType
public PolicyTraceflowObservationForwardedLogical.Builder setComponentSubType(java.lang.String componentSubType)
Possible values are:-
TraceflowObservation.COMPONENT_SUB_TYPE_LR_TIER0
-
TraceflowObservation.COMPONENT_SUB_TYPE_LR_TIER1
-
TraceflowObservation.COMPONENT_SUB_TYPE_LR_VRF_TIER0
-
TraceflowObservation.COMPONENT_SUB_TYPE_LS_TRANSIT
-
TraceflowObservation.COMPONENT_SUB_TYPE_SI_CLASSIFIER
-
TraceflowObservation.COMPONENT_SUB_TYPE_SI_PROXY
-
TraceflowObservation.COMPONENT_SUB_TYPE_VDR
-
TraceflowObservation.COMPONENT_SUB_TYPE_ENI
-
TraceflowObservation.COMPONENT_SUB_TYPE_AWS_GATEWAY
-
TraceflowObservation.COMPONENT_SUB_TYPE_TGW_ROUTE
-
TraceflowObservation.COMPONENT_SUB_TYPE_EDGE_UPLINK
-
TraceflowObservation.COMPONENT_SUB_TYPE_DELL_GATEWAY
-
TraceflowObservation.COMPONENT_SUB_TYPE_LGW_ROUTE
-
TraceflowObservation.COMPONENT_SUB_TYPE_LR_KNI
-
TraceflowObservation.COMPONENT_SUB_TYPE_UNKNOWN
- Parameters:
componentSubType
- New value for the property.
-
-
setComponentType
public PolicyTraceflowObservationForwardedLogical.Builder setComponentType(java.lang.String componentType)
Possible values are:-
TraceflowObservation.COMPONENT_TYPE_PHYSICAL
-
TraceflowObservation.COMPONENT_TYPE_LR
-
TraceflowObservation.COMPONENT_TYPE_LS
-
TraceflowObservation.COMPONENT_TYPE_DFW
-
TraceflowObservation.COMPONENT_TYPE_BRIDGE
-
TraceflowObservation.COMPONENT_TYPE_EDGE_TUNNEL
-
TraceflowObservation.COMPONENT_TYPE_EDGE_HOSTSWITCH
-
TraceflowObservation.COMPONENT_TYPE_FW_BRIDGE
-
TraceflowObservation.COMPONENT_TYPE_EDGE_RTEP_TUNNEL
-
TraceflowObservation.COMPONENT_TYPE_LOAD_BALANCER
-
TraceflowObservation.COMPONENT_TYPE_NAT
-
TraceflowObservation.COMPONENT_TYPE_IPSEC
-
TraceflowObservation.COMPONENT_TYPE_SERVICE_INSERTION
-
TraceflowObservation.COMPONENT_TYPE_VMC
-
TraceflowObservation.COMPONENT_TYPE_SPOOFGUARD
-
TraceflowObservation.COMPONENT_TYPE_EDGE_FW
-
TraceflowObservation.COMPONENT_TYPE_DLB
-
TraceflowObservation.COMPONENT_TYPE_ANTREA_SPOOFGUARD
-
TraceflowObservation.COMPONENT_TYPE_ANTREA_LB
-
TraceflowObservation.COMPONENT_TYPE_ANTREA_ROUTING
-
TraceflowObservation.COMPONENT_TYPE_ANTREA_DFW
-
TraceflowObservation.COMPONENT_TYPE_ANTREA_FORWARDING
-
TraceflowObservation.COMPONENT_TYPE_HOST_SWITCH
-
TraceflowObservation.COMPONENT_TYPE_UNKNOWN
- Parameters:
componentType
- New value for the property.
-
-
setSequenceNo
public PolicyTraceflowObservationForwardedLogical.Builder setSequenceNo(java.lang.Long sequenceNo)
the hop count for observations on the transport node that a traceflow packet is injected in will be 0. The hop count is incremented each time a subsequent transport node receives the traceflow packet. The sequence number of 999 indicates that the hop count could not be determined for the containing observation. 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.- Parameters:
sequenceNo
- New value for the property.
-
setSitePath
public PolicyTraceflowObservationForwardedLogical.Builder setSitePath(java.lang.String sitePath)
This field contains the site path where this observation was generated. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
sitePath
- New value for the property.
-
setTimestamp
public PolicyTraceflowObservationForwardedLogical.Builder setTimestamp(java.lang.Long timestamp)
Timestamp when the observation was created by the transport node (milliseconds epoch) 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.- Parameters:
timestamp
- New value for the property.
-
setTimestampMicro
public PolicyTraceflowObservationForwardedLogical.Builder setTimestampMicro(java.lang.Long timestampMicro)
Timestamp when the observation was created by the transport node (microseconds epoch) 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.- Parameters:
timestampMicro
- New value for the property.
-
setTransportNodeId
public PolicyTraceflowObservationForwardedLogical.Builder setTransportNodeId(java.lang.String transportNodeId)
id of the transport node that observed a traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
transportNodeId
- New value for the property.
-
setTransportNodeName
public PolicyTraceflowObservationForwardedLogical.Builder setTransportNodeName(java.lang.String transportNodeName)
name of the transport node that observed a traceflow packet This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
transportNodeName
- New value for the property.
-
setTransportNodeType
public PolicyTraceflowObservationForwardedLogical.Builder setTransportNodeType(java.lang.String transportNodeType)
Possible values are:-
TraceflowObservation.TRANSPORT_NODE_TYPE_ESX
-
TraceflowObservation.TRANSPORT_NODE_TYPE_RHELKVM
-
TraceflowObservation.TRANSPORT_NODE_TYPE_UBUNTUKVM
-
TraceflowObservation.TRANSPORT_NODE_TYPE_CENTOSKVM
-
TraceflowObservation.TRANSPORT_NODE_TYPE_RHELCONTAINER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_CENTOSCONTAINER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_RHELSERVER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_UBUNTUSERVER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_CENTOSSERVER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_SLESKVM
-
TraceflowObservation.TRANSPORT_NODE_TYPE_SLESSERVER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_WINDOWSSERVER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_RHELSMARTNIC
-
TraceflowObservation.TRANSPORT_NODE_TYPE_OELSERVER
-
TraceflowObservation.TRANSPORT_NODE_TYPE_UBUNTUSMARTNIC
-
TraceflowObservation.TRANSPORT_NODE_TYPE_EDGE
-
TraceflowObservation.TRANSPORT_NODE_TYPE_PUBLIC_CLOUD_GATEWAY_NODE
-
TraceflowObservation.TRANSPORT_NODE_TYPE_OTHERS
-
TraceflowObservation.TRANSPORT_NODE_TYPE_HYPERV
- Parameters:
transportNodeType
- New value for the property.
-
-
build
public PolicyTraceflowObservationForwardedLogical build()
-
-