public static final class ConnectionsProps.Builder
extends java.lang.Object
ConnectionsProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ConnectionsProps |
build()
Builds the configured instance.
|
ConnectionsProps.Builder |
defaultPort(Port defaultPort)
Sets the value of
ConnectionsProps.getDefaultPort() |
ConnectionsProps.Builder |
peer(IPeer peer)
Sets the value of
ConnectionsProps.getPeer() |
ConnectionsProps.Builder |
securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
Sets the value of
ConnectionsProps.getSecurityGroups() |
public ConnectionsProps.Builder defaultPort(Port defaultPort)
ConnectionsProps.getDefaultPort()
defaultPort
- Default port range for initiating connections to and from this object.this
public ConnectionsProps.Builder peer(IPeer peer)
ConnectionsProps.getPeer()
peer
- Class that represents the rule by which others can connect to this connectable.
This object is required, but will be derived from securityGroup if that is passed.this
public ConnectionsProps.Builder securityGroups(java.util.List<? extends ISecurityGroup> securityGroups)
ConnectionsProps.getSecurityGroups()
securityGroups
- What securityGroup(s) this object is managing connections for.this
public ConnectionsProps build()
ConnectionsProps
java.lang.NullPointerException
- if any required attribute was not provided