Package org.cdk8s.plus23
Interface NetworkPolicyPortProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
NetworkPolicyPortProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.69.0 (build f656c31)", date="2022-10-15T03:08:35.121Z") @Stability(Stable) public interface NetworkPolicyPortProps extends software.amazon.jsii.JsiiSerializable
Properties for `NetworkPolicyPort`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
NetworkPolicyPortProps.Builder
A builder forNetworkPolicyPortProps
static class
NetworkPolicyPortProps.Jsii$Proxy
An implementation forNetworkPolicyPortProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static NetworkPolicyPortProps.Builder
builder()
default Number
getEndPort()
End port (relative to `port`).default Number
getPort()
Specific port number.default NetworkProtocol
getProtocol()
Protocol.
-
-
-
Method Detail
-
getEndPort
@Stability(Stable) @Nullable default Number getEndPort()
End port (relative to `port`).Only applies if
port
is defined. Use this to specify a port range, rather that a specific one.Default: - not a port range.
-
getPort
@Stability(Stable) @Nullable default Number getPort()
Specific port number.Default: - all ports are allowed.
-
getProtocol
@Stability(Stable) @Nullable default NetworkProtocol getProtocol()
Protocol.Default: NetworkProtocol.TCP
-
builder
@Stability(Stable) static NetworkPolicyPortProps.Builder builder()
- Returns:
- a
NetworkPolicyPortProps.Builder
ofNetworkPolicyPortProps
-
-