Package org.cdk8s.plus23.k8s
Class NetworkPolicyEgressRule.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.k8s.NetworkPolicyEgressRule.Jsii$Proxy
-
- All Implemented Interfaces:
NetworkPolicyEgressRule
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- NetworkPolicyEgressRule
@Stability(Stable) @Internal public static final class NetworkPolicyEgressRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NetworkPolicyEgressRule
An implementation forNetworkPolicyEgressRule
-
-
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.plus23.k8s.NetworkPolicyEgressRule
NetworkPolicyEgressRule.Builder, NetworkPolicyEgressRule.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(NetworkPolicyEgressRule.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyEgressRule.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)
List<NetworkPolicyPort>
getPorts()
List of destination ports for outgoing traffic.List<NetworkPolicyPeer>
getTo()
List of destinations for outgoing traffic of pods selected for this rule.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(NetworkPolicyEgressRule.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyEgressRule.Builder
.
-
-
Method Detail
-
getPorts
public final List<NetworkPolicyPort> getPorts()
Description copied from interface:NetworkPolicyEgressRule
List of destination ports for outgoing traffic.Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.
- Specified by:
getPorts
in interfaceNetworkPolicyEgressRule
-
getTo
public final List<NetworkPolicyPeer> getTo()
Description copied from interface:NetworkPolicyEgressRule
List of destinations for outgoing traffic of pods selected for this rule.Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.
- Specified by:
getTo
in interfaceNetworkPolicyEgressRule
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-