@Stability(value=Stable)
public static interface CfnNetworkAclEntry.PortRangeProperty
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.ec2.*;
PortRangeProperty portRangeProperty = PortRangeProperty.builder()
.from(123)
.to(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnNetworkAclEntry.PortRangeProperty.Builder
A builder for
CfnNetworkAclEntry.PortRangeProperty |
static class |
CfnNetworkAclEntry.PortRangeProperty.Jsii$Proxy
An implementation for
CfnNetworkAclEntry.PortRangeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnNetworkAclEntry.PortRangeProperty.Builder |
builder() |
default Number |
getFrom()
The first port in the range.
|
default Number |
getTo()
The last port in the range.
|
@Stability(value=Stable) @Nullable default Number getFrom()
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
@Stability(value=Stable) @Nullable default Number getTo()
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
@Stability(value=Stable) static CfnNetworkAclEntry.PortRangeProperty.Builder builder()
Copyright © 2022. All rights reserved.