@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.519Z") @Stability(value=Stable) public interface PortRange extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
PortRange.Builder
A builder for
PortRange |
static class |
PortRange.Jsii$Proxy
An implementation for
PortRange |
| Modifier and Type | Method and Description |
|---|---|
static PortRange.Builder |
builder() |
Number |
getFromPort()
The first port in the range of ports, inclusive.
|
default Number |
getToPort()
The last port in the range of ports, inclusive.
|
@Stability(value=Stable) @NotNull Number getFromPort()
@Stability(value=Stable) @Nullable default Number getToPort()
Default: - same as `fromPort`
@Stability(value=Stable) static PortRange.Builder builder()
PortRange.Builder of PortRangeCopyright © 2022. All rights reserved.