| Modifier and Type | Method and Description |
|---|---|
NetInfo.Builder |
addAllPorts(Iterable<? extends NetInfoPorts> elements)
Adds elements to
ports list. |
NetInfo.Builder |
address(String address)
Initializes the value for the
address attribute. |
NetInfo |
build()
Builds a new
NetInfo. |
NetInfo.Builder |
from(NetInfo instance)
Fill a builder with attribute values from the provided
NetInfo instance. |
NetInfo.Builder |
port(NetInfoPorts element)
Adds one element to
ports list. |
NetInfo.Builder |
ports(Iterable<? extends NetInfoPorts> elements)
Sets or replaces all elements for
ports list. |
NetInfo.Builder |
ports(NetInfoPorts... elements)
Adds elements to
ports list. |
public final NetInfo.Builder from(NetInfo instance)
NetInfo instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final NetInfo.Builder address(String address)
address attribute.address - The value for address (can be null)this builder for use in a chained invocationpublic final NetInfo.Builder port(NetInfoPorts element)
ports list.element - A ports elementthis builder for use in a chained invocationpublic final NetInfo.Builder ports(NetInfoPorts... elements)
ports list.elements - An array of ports elementsthis builder for use in a chained invocationpublic final NetInfo.Builder ports(Iterable<? extends NetInfoPorts> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic final NetInfo.Builder addAllPorts(Iterable<? extends NetInfoPorts> elements)
ports list.elements - An iterable of ports elementsthis builder for use in a chained invocationpublic NetInfo build()
NetInfo.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.