All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cdk8s.plus31.INetworkPolicyPeer Maven / Gradle / Ivy

package org.cdk8s.plus31;

/**
 * Describes a peer to allow traffic to/from.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-10-12T12:14:17.376Z")
@software.amazon.jsii.Jsii(module = org.cdk8s.plus31.$Module.class, fqn = "cdk8s-plus-31.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.plus31.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.plus31.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.plus31.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.plus31.NetworkPolicyPeerConfig toNetworkPolicyPeerConfig() {
            return software.amazon.jsii.Kernel.call(this, "toNetworkPolicyPeerConfig", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.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.plus31.IPodSelector toPodSelector() {
            return software.amazon.jsii.Kernel.call(this, "toPodSelector", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.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.plus31.NetworkPolicyPeerConfig toNetworkPolicyPeerConfig() {
            return software.amazon.jsii.Kernel.call(this, "toNetworkPolicyPeerConfig", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.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.plus31.IPodSelector toPodSelector() {
            return software.amazon.jsii.Kernel.call(this, "toPodSelector", software.amazon.jsii.NativeType.forClass(org.cdk8s.plus31.IPodSelector.class));
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy