Package org.cdk8s.plus23
Class NetworkPolicyProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- org.cdk8s.plus23.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.plus23.NetworkPolicyProps
NetworkPolicyProps.Builder, NetworkPolicyProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(NetworkPolicyProps.Builder builder)Constructor that initializes the object based on literal property values passed by theNetworkPolicyProps.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)NetworkPolicyTrafficgetEgress()Egress traffic configuration.NetworkPolicyTrafficgetIngress()Ingress traffic configuration.org.cdk8s.ApiObjectMetadatagetMetadata()Metadata that all persisted resources must have, which includes all objects users must create.IPodSelectorgetSelector()Which pods does this policy object applies to.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(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:NetworkPolicyPropsEgress traffic configuration.Default: - the policy doesn't change egress behavior of the pods it selects.
- Specified by:
getEgressin interfaceNetworkPolicyProps
-
getIngress
public final NetworkPolicyTraffic getIngress()
Description copied from interface:NetworkPolicyPropsIngress traffic configuration.Default: - the policy doesn't change ingress behavior of the pods it selects.
- Specified by:
getIngressin interfaceNetworkPolicyProps
-
getSelector
public final IPodSelector getSelector()
Description copied from interface:NetworkPolicyPropsWhich pods does this policy object applies to.This can either be a single pod / workload, or a grouping of pods selected via the
Pods.selectfunction. 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:
getSelectorin interfaceNetworkPolicyProps
-
getMetadata
public final org.cdk8s.ApiObjectMetadata getMetadata()
Description copied from interface:ResourcePropsMetadata that all persisted resources must have, which includes all objects users must create.- Specified by:
getMetadatain interfaceResourceProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-