public static final class PortMirroringSession.Builder
extends java.lang.Object
PortMirroringSession
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
PortMirroringSession . |
Modifier and Type | Method and Description |
---|---|
PortMirroringSession |
build() |
PortMirroringSession.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.
|
PortMirroringSession.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.
|
PortMirroringSession.Builder |
setDescription(java.lang.String description)
Description of this resource
|
PortMirroringSession.Builder |
setDirection(java.lang.String direction)
Possible values are:
PortMirroringSession.DIRECTION_INGRESS PortMirroringSession.DIRECTION_EGRESS PortMirroringSession.DIRECTION_BIDIRECTIONAL
Port mirroring session direction |
PortMirroringSession.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
PortMirroringSession.Builder |
setEncapsulationVlanId(java.lang.Long encapsulationVlanId)
Only for Remote SPAN Port Mirror.
|
PortMirroringSession.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
PortMirroringSession.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.
|
PortMirroringSession.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.
|
PortMirroringSession.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
PortMirroringSession.Builder |
setMirrorDestination(com.vmware.vapi.bindings.Structure mirrorDestination) |
PortMirroringSession.Builder |
setMirrorSources(java.util.List<com.vmware.vapi.bindings.Structure> mirrorSources)
Mirror sources
|
PortMirroringSession.Builder |
setPortMirroringFilters(java.util.List<PortMirroringFilter> portMirroringFilters)
An array of 5-tuples used to filter packets for the mirror session, if not
provided, all the packets will be mirrored.
|
PortMirroringSession.Builder |
setPreserveOriginalVlan(java.lang.Boolean preserveOriginalVlan)
Only for Remote SPAN Port Mirror.
|
PortMirroringSession.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.
|
PortMirroringSession.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
PortMirroringSession.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
PortMirroringSession.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.
|
PortMirroringSession.Builder |
setSelf(SelfResourceLink self) |
PortMirroringSession.Builder |
setSessionType(java.lang.String sessionType)
Possible values are:
PortMirroringSession.SESSION_TYPE_LOGICALPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_UPLINKPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_RSPANSRCMIRRORSESSION
PortMirroringSession.SESSION_TYPE_RSPANDSTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_LOCALPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_LOGICALLOCALPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_L3PORTMIRRORSESSION
If this property is unset, this session will be treated as
LocalPortMirrorSession. |
PortMirroringSession.Builder |
setSnapLength(java.lang.Long snapLength)
If this property is set, the packet will be truncated to the provided length.
|
PortMirroringSession.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.
|
PortMirroringSession.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
PortMirroringSession.Builder |
setTcpIpStack(java.lang.String tcpIpStack)
Possible values are:
PortMirroringSession.TCP_IP_STACK_DEFAULT PortMirroringSession.TCP_IP_STACK_MIRROR If set
to mirror, mirror packet will be sent via dedicated mirror stack to destination;
If set to default, mirror packet will be sent via default stack; So far, the
value mirror can only be chosen in L3PortMirrorSession. |
public Builder()
PortMirroringSession
.public PortMirroringSession.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public PortMirroringSession.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public PortMirroringSession.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public PortMirroringSession.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public PortMirroringSession.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public PortMirroringSession.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public PortMirroringSession.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public PortMirroringSession.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public PortMirroringSession.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public PortMirroringSession.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public PortMirroringSession.Builder setDescription(java.lang.String description)
description
- New value for the property.public PortMirroringSession.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public PortMirroringSession.Builder setId(java.lang.String id)
id
- New value for the property.public PortMirroringSession.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public PortMirroringSession.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public PortMirroringSession.Builder setDirection(java.lang.String direction)
direction
- New value for the property.public PortMirroringSession.Builder setEncapsulationVlanId(java.lang.Long encapsulationVlanId)
encapsulationVlanId
- New value for the property.public PortMirroringSession.Builder setMirrorDestination(com.vmware.vapi.bindings.Structure mirrorDestination)
mirrorDestination
- 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 MirrorDestination
. When methods return a value of this
class as a return value, the property will contain all the properties defined in
MirrorDestination
.public PortMirroringSession.Builder setMirrorSources(java.util.List<com.vmware.vapi.bindings.Structure> mirrorSources)
mirrorSources
- 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 MirrorSource
.
When methods return a value of this class as a return value, the property will
contain all the properties defined in MirrorSource
.public PortMirroringSession.Builder setPortMirroringFilters(java.util.List<PortMirroringFilter> portMirroringFilters)
portMirroringFilters
- New value for the property.public PortMirroringSession.Builder setPreserveOriginalVlan(java.lang.Boolean preserveOriginalVlan)
preserveOriginalVlan
- New value for the property.public PortMirroringSession.Builder setSessionType(java.lang.String sessionType)
PortMirroringSession.SESSION_TYPE_LOGICALPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_UPLINKPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_RSPANSRCMIRRORSESSION
PortMirroringSession.SESSION_TYPE_RSPANDSTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_LOCALPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_LOGICALLOCALPORTMIRRORSESSION
PortMirroringSession.SESSION_TYPE_L3PORTMIRRORSESSION
sessionType
- New value for the property.public PortMirroringSession.Builder setSnapLength(java.lang.Long snapLength)
snapLength
- New value for the property.public PortMirroringSession.Builder setTcpIpStack(java.lang.String tcpIpStack)
tcpIpStack
- New value for the property.public PortMirroringSession build()