@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.491Z") @Stability(value=Stable) public interface PortProps 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.*;
PortProps portProps = PortProps.builder()
.protocol(Protocol.ALL)
.stringRepresentation("stringRepresentation")
// the properties below are optional
.fromPort(123)
.toPort(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
PortProps.Builder
A builder for
PortProps |
static class |
PortProps.Jsii$Proxy
An implementation for
PortProps |
| Modifier and Type | Method and Description |
|---|---|
static PortProps.Builder |
builder() |
default Number |
getFromPort()
The starting port for the range.
|
Protocol |
getProtocol()
The protocol for the range.
|
String |
getStringRepresentation()
String representation for this object.
|
default Number |
getToPort()
The ending port for the range.
|
@Stability(value=Stable) @NotNull Protocol getProtocol()
@Stability(value=Stable) @NotNull String getStringRepresentation()
@Stability(value=Stable) @Nullable default Number getFromPort()
Default: - Not included in the rule
@Stability(value=Stable) @Nullable default Number getToPort()
Default: - Not included in the rule
@Stability(value=Stable) static PortProps.Builder builder()
PortProps.Builder of PortPropsCopyright © 2022. All rights reserved.