@Stability(value=Stable) public static final class ConnectionsProps.Builder extends Object implements software.amazon.jsii.Builder<ConnectionsProps>
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(List<? extends ISecurityGroup> securityGroups)
Sets the value of
ConnectionsProps.getSecurityGroups() |
@Stability(value=Stable) public ConnectionsProps.Builder defaultPort(Port defaultPort)
ConnectionsProps.getDefaultPort()defaultPort - Default port range for initiating connections to and from this object.this@Stability(value=Stable) 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@Stability(value=Stable) public ConnectionsProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
ConnectionsProps.getSecurityGroups()securityGroups - What securityGroup(s) this object is managing connections for.this@Stability(value=Stable) public ConnectionsProps build()
build in interface software.amazon.jsii.Builder<ConnectionsProps>ConnectionsPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.