Package org.cdk8s.plus24
Class NetworkPolicyPortProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.NetworkPolicyPortProps.Jsii$Proxy
-
- All Implemented Interfaces:
NetworkPolicyPortProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- NetworkPolicyPortProps
@Stability(Stable) @Internal public static final class NetworkPolicyPortProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NetworkPolicyPortProps
An implementation forNetworkPolicyPortProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface org.cdk8s.plus24.NetworkPolicyPortProps
NetworkPolicyPortProps.Builder, NetworkPolicyPortProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(NetworkPolicyPortProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyPortProps.Builder
.protected
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
$jsii$toJson()
boolean
equals(Object o)
Number
getEndPort()
End port (relative to `port`).Number
getPort()
Specific port number.NetworkProtocol
getProtocol()
Protocol.int
hashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(NetworkPolicyPortProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyPortProps.Builder
.
-
-
Method Detail
-
getEndPort
public final Number getEndPort()
Description copied from interface:NetworkPolicyPortProps
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.
- Specified by:
getEndPort
in interfaceNetworkPolicyPortProps
-
getPort
public final Number getPort()
Description copied from interface:NetworkPolicyPortProps
Specific port number.Default: - all ports are allowed.
- Specified by:
getPort
in interfaceNetworkPolicyPortProps
-
getProtocol
public final NetworkProtocol getProtocol()
Description copied from interface:NetworkPolicyPortProps
Protocol.Default: NetworkProtocol.TCP
- Specified by:
getProtocol
in interfaceNetworkPolicyPortProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-