public static class DefaultPortDescription.Builder extends Object
Modifier and Type | Method and Description |
---|---|
DefaultPortDescription.Builder |
annotations(SparseAnnotations annotations)
Sets annotations.
|
DefaultPortDescription |
build()
Builds the port description.
|
DefaultPortDescription.Builder |
isEnabled(boolean enabled)
Sets enabled state.
|
DefaultPortDescription.Builder |
isRemoved(boolean removed)
Sets removed state.
|
DefaultPortDescription.Builder |
portSpeed(long mbps)
Sets port speed.
|
DefaultPortDescription.Builder |
type(Port.Type type)
Sets port type.
|
DefaultPortDescription.Builder |
withPortNumber(PortNumber number)
Sets mandatory field PortNumber.
|
DefaultPortDescription.Builder |
withPortNumer(PortNumber number)
Deprecated.
in 1.13.0 use withPortNumber() instead.
|
@Deprecated public DefaultPortDescription.Builder withPortNumer(PortNumber number)
number
- to setpublic DefaultPortDescription.Builder withPortNumber(PortNumber number)
number
- to setpublic DefaultPortDescription.Builder isEnabled(boolean enabled)
enabled
- statepublic DefaultPortDescription.Builder isRemoved(boolean removed)
removed
- statepublic DefaultPortDescription.Builder type(Port.Type type)
type
- of the portpublic DefaultPortDescription.Builder portSpeed(long mbps)
mbps
- port speed in Mbpspublic DefaultPortDescription.Builder annotations(SparseAnnotations annotations)
annotations
- of the portpublic DefaultPortDescription build()