Package org.cdk8s.plus25.k8s
Class NetworkPolicyIngressRule.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus25.k8s.NetworkPolicyIngressRule.Jsii$Proxy
-
- All Implemented Interfaces:
NetworkPolicyIngressRule,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- NetworkPolicyIngressRule
@Stability(Stable) @Internal public static final class NetworkPolicyIngressRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NetworkPolicyIngressRule
An implementation forNetworkPolicyIngressRule
-
-
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.plus25.k8s.NetworkPolicyIngressRule
NetworkPolicyIngressRule.Builder, NetworkPolicyIngressRule.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(NetworkPolicyIngressRule.Builder builder)Constructor that initializes the object based on literal property values passed by theNetworkPolicyIngressRule.Builder.protectedJsii$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()booleanequals(Object o)List<NetworkPolicyPeer>getFrom()List of sources which should be able to access the pods selected for this rule.List<NetworkPolicyPort>getPorts()List of ports which should be made accessible on the pods selected for this rule.inthashCode()
-
-
-
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(NetworkPolicyIngressRule.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyIngressRule.Builder.
-
-
Method Detail
-
getFrom
public final List<NetworkPolicyPeer> getFrom()
Description copied from interface:NetworkPolicyIngressRuleList of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list.
- Specified by:
getFromin interfaceNetworkPolicyIngressRule
-
getPorts
public final List<NetworkPolicyPort> getPorts()
Description copied from interface:NetworkPolicyIngressRuleList of ports which should be made accessible on the pods selected for this rule.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:
getPortsin interfaceNetworkPolicyIngressRule
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-