Interface PortProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PortProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.490Z")
@Stability(Stable)
public interface PortProps
extends software.amazon.jsii.JsiiSerializable
Properties to create a port range.
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();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PortProps.Builderbuilder()default NumberThe starting port for the range.The protocol for the range.String representation for this object.default NumberThe ending port for the range.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProtocol
The protocol for the range. -
getStringRepresentation
String representation for this object. -
getFromPort
The starting port for the range.Default: - Not included in the rule
-
getToPort
The ending port for the range.Default: - Not included in the rule
-
builder
- Returns:
- a
PortProps.BuilderofPortProps
-