Package org.cdk8s.plus24
Class NetworkPolicyProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus24.NetworkPolicyProps.Jsii$Proxy
-
- All Implemented Interfaces:
NetworkPolicyProps
,ResourceProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- NetworkPolicyProps
@Stability(Stable) @Internal public static final class NetworkPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements NetworkPolicyProps
An implementation forNetworkPolicyProps
-
-
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.NetworkPolicyProps
NetworkPolicyProps.Builder, NetworkPolicyProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jsii$Proxy(NetworkPolicyProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyProps.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)
NetworkPolicyTraffic
getEgress()
Egress traffic configuration.NetworkPolicyTraffic
getIngress()
Ingress traffic configuration.org.cdk8s.ApiObjectMetadata
getMetadata()
Metadata that all persisted resources must have, which includes all objects users must create.IPodSelector
getSelector()
Which pods does this policy object applies to.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(NetworkPolicyProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theNetworkPolicyProps.Builder
.
-
-
Method Detail
-
getEgress
public final NetworkPolicyTraffic getEgress()
Description copied from interface:NetworkPolicyProps
Egress traffic configuration.Default: - the policy doesn't change egress behavior of the pods it selects.
- Specified by:
getEgress
in interfaceNetworkPolicyProps
-
getIngress
public final NetworkPolicyTraffic getIngress()
Description copied from interface:NetworkPolicyProps
Ingress traffic configuration.Default: - the policy doesn't change ingress behavior of the pods it selects.
- Specified by:
getIngress
in interfaceNetworkPolicyProps
-
getSelector
public final IPodSelector getSelector()
Description copied from interface:NetworkPolicyProps
Which pods does this policy object applies to.This can either be a single pod / workload, or a grouping of pods selected via the
Pods.select
function. Rules is applied to any pods selected by this property. Multiple network policies can select the same set of pods. In this case, the rules for each are combined additively.Note that
Default: - will select all pods in the namespace of the policy.
- Specified by:
getSelector
in interfaceNetworkPolicyProps
-
getMetadata
public final org.cdk8s.ApiObjectMetadata getMetadata()
Description copied from interface:ResourceProps
Metadata that all persisted resources must have, which includes all objects users must create.- Specified by:
getMetadata
in interfaceResourceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
-