Constructor and Description |
---|
Lldp.Builder()
Create a new builder using the defaults:
|
Lldp.Builder(Lldp lldp)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
Lldp |
build()
Creates a new protocol instance from this builder.
|
Lldp.Builder |
chassisId(LldpTlv chassisId)
Sets the chassis ID.
|
Lldp.Builder |
options(LldpTlv[] options)
Sets the options array.
|
Lldp.Builder |
portId(LldpTlv portId)
Sets the port ID.
|
Lldp.Builder |
privateOptions(LldpTlv[] privateOptions)
Sets the private options array.
|
Lldp.Builder |
ttl(LldpTlv ttl)
Sets the time to live value.
|
public Lldp.Builder()
options = NO_OPTIONS privateOptions = NO_OPTIONS
public Lldp.Builder(Lldp lldp)
lldp
- builder is initialed from this protocol's datapublic Lldp build()
public Lldp.Builder chassisId(LldpTlv chassisId)
chassisId
- chassis IDpublic Lldp.Builder portId(LldpTlv portId)
portId
- port IDpublic Lldp.Builder ttl(LldpTlv ttl)
ttl
- time to live valuepublic Lldp.Builder options(LldpTlv[] options)
privateOptions(LldpTlv[])
used to set the private
options.options
- array of optionspublic Lldp.Builder privateOptions(LldpTlv[] privateOptions)
options(LldpTlv[])
used to set the non-private
options.privateOptions
- array of private optionsCopyright © 2015. All Rights Reserved.