public static final class NetInfoPorts.Builder extends Object
NetInfoPorts.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
NetInfoPorts |
build()
Builds a new
NetInfoPorts. |
NetInfoPorts.Builder |
containerPort(Integer containerPort)
Initializes the value for the
containerPort attribute. |
NetInfoPorts.Builder |
from(NetInfoPorts instance)
Fill a builder with attribute values from the provided
NetInfoPorts instance. |
NetInfoPorts.Builder |
hostPort(Integer hostPort)
Initializes the value for the
hostPort attribute. |
public final NetInfoPorts.Builder from(NetInfoPorts instance)
NetInfoPorts instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final NetInfoPorts.Builder containerPort(Integer containerPort)
containerPort attribute.containerPort - The value for containerPortthis builder for use in a chained invocationpublic final NetInfoPorts.Builder hostPort(Integer hostPort)
hostPort attribute.hostPort - The value for hostPortthis builder for use in a chained invocationpublic NetInfoPorts build()
NetInfoPorts.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.