
org.cdk8s.plus23.INetworkPolicyPeer Maven / Gradle / Ivy
package org.cdk8s.plus23;
/**
* Describes a peer to allow traffic to/from.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.75.0 (build 63bb957)", date = "2023-02-21T09:46:03.616Z")
@software.amazon.jsii.Jsii(module = org.cdk8s.plus23.$Module.class, fqn = "cdk8s-plus-23.INetworkPolicyPeer")
@software.amazon.jsii.Jsii.Proxy(INetworkPolicyPeer.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface INetworkPolicyPeer extends software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct {
/**
* Return the configuration of this peer.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull org.cdk8s.plus23.NetworkPolicyPeerConfig toNetworkPolicyPeerConfig();
/**
* Convert the peer into a pod selector, if possible.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.Nullable org.cdk8s.plus23.IPodSelector toPodSelector();
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements org.cdk8s.plus23.INetworkPolicyPeer.Jsii$Default {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
/**
* The tree node.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final @org.jetbrains.annotations.NotNull software.constructs.Node getNode() {
return software.amazon.jsii.Kernel.get(this, "node", software.amazon.jsii.NativeType.forClass(software.constructs.Node.class));
}
/**
* Return the configuration of this peer.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.NotNull org.cdk8s.plus23.NetworkPolicyPeerConfig toNetworkPolicyPeerConfig() {
return software.amazon.jsii.Kernel.call(this, "toNetworkPolicyPeerConfig", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.NetworkPolicyPeerConfig.class));
}
/**
* Convert the peer into a pod selector, if possible.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public final @org.jetbrains.annotations.Nullable org.cdk8s.plus23.IPodSelector toPodSelector() {
return software.amazon.jsii.Kernel.call(this, "toPodSelector", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.IPodSelector.class));
}
}
/**
* Internal default implementation for {@link INetworkPolicyPeer}.
*/
@software.amazon.jsii.Internal
interface Jsii$Default extends INetworkPolicyPeer, software.constructs.IConstruct.Jsii$Default {
/**
* The tree node.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.NotNull software.constructs.Node getNode() {
return software.amazon.jsii.Kernel.get(this, "node", software.amazon.jsii.NativeType.forClass(software.constructs.Node.class));
}
/**
* Return the configuration of this peer.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.NotNull org.cdk8s.plus23.NetworkPolicyPeerConfig toNetworkPolicyPeerConfig() {
return software.amazon.jsii.Kernel.call(this, "toNetworkPolicyPeerConfig", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.NetworkPolicyPeerConfig.class));
}
/**
* Convert the peer into a pod selector, if possible.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
default @org.jetbrains.annotations.Nullable org.cdk8s.plus23.IPodSelector toPodSelector() {
return software.amazon.jsii.Kernel.call(this, "toPodSelector", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus23.IPodSelector.class));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy