public static class DefaultPortDescription.Builder
extends java.lang.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 |
withPortNumer(PortNumber number)
Sets mandatory field PortNumber.
|
public DefaultPortDescription.Builder withPortNumer(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()