public static interface PortInfo.Builder extends CopyableBuilder<PortInfo.Builder,PortInfo>
Modifier and Type | Method and Description |
---|---|
PortInfo.Builder |
fromPort(Integer fromPort)
The first port in the range.
|
PortInfo.Builder |
protocol(NetworkProtocol protocol)
The protocol.
|
PortInfo.Builder |
protocol(String protocol)
The protocol.
|
PortInfo.Builder |
toPort(Integer toPort)
The last port in the range.
|
copy
apply, build
PortInfo.Builder fromPort(Integer fromPort)
The first port in the range.
fromPort
- The first port in the range.PortInfo.Builder toPort(Integer toPort)
The last port in the range.
toPort
- The last port in the range.PortInfo.Builder protocol(String protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
,
NetworkProtocol
PortInfo.Builder protocol(NetworkProtocol protocol)
The protocol.
protocol
- The protocol.NetworkProtocol
,
NetworkProtocol
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.