public static class LldpTlv.Builder extends Object
Constructor and Description |
---|
LldpTlv.Builder()
Create a new builder using the defaults:
|
LldpTlv.Builder(LldpTlv.Type type)
Create a new builder based on the specified type.
|
Modifier and Type | Method and Description |
---|---|
LldpTlv |
build()
Creates a new TLV instance from this builder.
|
LldpTlv.Builder |
bytes(byte[] bytes)
Sets the bytes array.
|
LldpTlv.Builder |
chassisIdSubType(LldpTlv.ChassisIdSubType chassisIdSubType)
Sets the Chassis ID sub-type.
|
LldpTlv.Builder |
enabled(LldpTlv.Capability... enabled)
Sets the list of enabled capabilities.
|
LldpTlv.Builder |
enabledMask(int enabledMask)
Sets the list of enabled capabilities.
|
LldpTlv.Builder |
ipAddr(IpAddress ipAddr)
Sets the IP address.
|
LldpTlv.Builder |
macAddr(MacAddress macAddr)
Sets the MAC address.
|
LldpTlv.Builder |
name(String name)
Sets the name.
|
LldpTlv.Builder |
number(int number)
Sets the number (scalar).
|
LldpTlv.Builder |
portIdSubType(LldpTlv.PortIdSubType portIdSubType)
Sets the Port ID sub-type.
|
LldpTlv.Builder |
supported(LldpTlv.Capability... supported)
Sets the list of supported capabilities.
|
LldpTlv.Builder |
supportedMask(int supportedMask)
Sets the list of supported capabilities.
|
LldpTlv.Builder |
type(LldpTlv.Type type)
Sets the TLV type.
|
public LldpTlv.Builder()
type = END bytes = EMPTY_BYTES supported = NO_CAPS enabled = NO_CAPS
public LldpTlv.Builder(LldpTlv.Type type)
type
- TLV typepublic LldpTlv build()
public LldpTlv.Builder type(LldpTlv.Type type)
type
- TLV typepublic LldpTlv.Builder bytes(byte[] bytes)
bytes
- array of bytespublic LldpTlv.Builder name(String name)
name
- string namepublic LldpTlv.Builder number(int number)
number
- numeric valuepublic LldpTlv.Builder ipAddr(IpAddress ipAddr)
ipAddr
- IP addresspublic LldpTlv.Builder macAddr(MacAddress macAddr)
macAddr
- MAC addresspublic LldpTlv.Builder supportedMask(int supportedMask)
supportedMask
- capability maskpublic LldpTlv.Builder supported(LldpTlv.Capability... supported)
supported
- capability arraypublic LldpTlv.Builder enabledMask(int enabledMask)
LldpTlv.supported()
capabilities.enabledMask
- capability maskpublic LldpTlv.Builder enabled(LldpTlv.Capability... enabled)
LldpTlv.supported()
capabilities.enabled
- capability arraypublic LldpTlv.Builder chassisIdSubType(LldpTlv.ChassisIdSubType chassisIdSubType)
chassisIdSubType
- Chassis ID sub-typepublic LldpTlv.Builder portIdSubType(LldpTlv.PortIdSubType portIdSubType)
portIdSubType
- port ID sub-typeCopyright © 2015. All Rights Reserved.