Interface PortRange
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PortRange.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.536Z")
@Stability(Stable)
public interface PortRange
extends software.amazon.jsii.JsiiSerializable
The list of port ranges for the connections from clients to the accelerator.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.globalaccelerator.*;
PortRange portRange = PortRange.builder()
.fromPort(123)
// the properties below are optional
.toPort(123)
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PortRange.Builderbuilder()The first port in the range of ports, inclusive.default NumberThe last port in the range of ports, inclusive.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFromPort
The first port in the range of ports, inclusive. -
getToPort
The last port in the range of ports, inclusive.Default: - same as `fromPort`
-
builder
- Returns:
- a
PortRange.BuilderofPortRange
-