public static final class PacketCaptureSession.Builder
extends java.lang.Object
PacketCaptureSession
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
PacketCaptureSession . |
Modifier and Type | Method and Description |
---|---|
PacketCaptureSession |
build() |
PacketCaptureSession.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.
|
PacketCaptureSession.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.
|
PacketCaptureSession.Builder |
setDescription(java.lang.String description)
Description of this resource
|
PacketCaptureSession.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
PacketCaptureSession.Builder |
setEndtime(java.lang.Long endtime)
Timestamp when session was stopped in epoch millisecond.
|
PacketCaptureSession.Builder |
setErrormsg(java.lang.String errormsg)
Error messasge in capture.
|
PacketCaptureSession.Builder |
setFilelocation(java.lang.String filelocation)
Packet capture file location.
|
PacketCaptureSession.Builder |
setFilesize(java.lang.Long filesize)
Packet capture file Size in bytes.
|
PacketCaptureSession.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
PacketCaptureSession.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.
|
PacketCaptureSession.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.
|
PacketCaptureSession.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
PacketCaptureSession.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.
|
PacketCaptureSession.Builder |
setRequest(PacketCaptureRequest request) |
PacketCaptureSession.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
PacketCaptureSession.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
PacketCaptureSession.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.
|
PacketCaptureSession.Builder |
setSelf(SelfResourceLink self) |
PacketCaptureSession.Builder |
setSessionid(java.lang.String sessionid)
Packet capture session id.
|
PacketCaptureSession.Builder |
setSessionname(java.lang.String sessionname)
Packet capture session name.
|
PacketCaptureSession.Builder |
setSessionstatus(java.lang.String sessionstatus)
Possible values are:
PacketCaptureSession.SESSIONSTATUS_CREATED
PacketCaptureSession.SESSIONSTATUS_STARTED
PacketCaptureSession.SESSIONSTATUS_STOPPED
PacketCaptureSession.SESSIONSTATUS_FINISHED
PacketCaptureSession.SESSIONSTATUS_ERROR
Packet capture session status. |
PacketCaptureSession.Builder |
setStarttime(java.lang.Long starttime)
Timestamp when session was created in epoch millisecond.
|
PacketCaptureSession.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.
|
PacketCaptureSession.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
PacketCaptureSession
.public PacketCaptureSession.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public PacketCaptureSession.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public PacketCaptureSession.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public PacketCaptureSession.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public PacketCaptureSession.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public PacketCaptureSession.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public PacketCaptureSession.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public PacketCaptureSession.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public PacketCaptureSession.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public PacketCaptureSession.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public PacketCaptureSession.Builder setDescription(java.lang.String description)
description
- New value for the property.public PacketCaptureSession.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public PacketCaptureSession.Builder setId(java.lang.String id)
id
- New value for the property.public PacketCaptureSession.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public PacketCaptureSession.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public PacketCaptureSession.Builder setEndtime(java.lang.Long endtime)
endtime
- New value for the property.public PacketCaptureSession.Builder setErrormsg(java.lang.String errormsg)
errormsg
- New value for the property.public PacketCaptureSession.Builder setFilelocation(java.lang.String filelocation)
filelocation
- New value for the property.public PacketCaptureSession.Builder setFilesize(java.lang.Long filesize)
filesize
- New value for the property.public PacketCaptureSession.Builder setRequest(PacketCaptureRequest request)
request
- New value for the property.public PacketCaptureSession.Builder setSessionid(java.lang.String sessionid)
sessionid
- New value for the property.public PacketCaptureSession.Builder setSessionname(java.lang.String sessionname)
sessionname
- New value for the property.public PacketCaptureSession.Builder setSessionstatus(java.lang.String sessionstatus)
sessionstatus
- New value for the property.public PacketCaptureSession.Builder setStarttime(java.lang.Long starttime)
starttime
- New value for the property.public PacketCaptureSession build()