io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent Maven / Gradle / Ivy
/*
Copyright 2022 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.Fluent;
import io.kubernetes.client.fluent.Nested;
import java.util.Collection;
import java.util.List;
import java.util.function.Predicate;
/** Generated */
public interface V1NetworkPolicyEgressRuleFluent>
extends Fluent {
public A addToPorts(Integer index, V1NetworkPolicyPort item);
public A setToPorts(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item);
public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items);
public A addAllToPorts(Collection items);
public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items);
public A removeAllFromPorts(
java.util.Collection items);
public A removeMatchingFromPorts(Predicate predicate);
/**
* This method has been deprecated, please use method buildPorts instead.
*
* @return The buildable object.
*/
@Deprecated
public List getPorts();
public java.util.List buildPorts();
public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildPort(java.lang.Integer index);
public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildFirstPort();
public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildLastPort();
public io.kubernetes.client.openapi.models.V1NetworkPolicyPort buildMatchingPort(
java.util.function.Predicate
predicate);
public Boolean hasMatchingPort(
java.util.function.Predicate
predicate);
public A withPorts(java.util.List ports);
public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports);
public java.lang.Boolean hasPorts();
public V1NetworkPolicyEgressRuleFluent.PortsNested addNewPort();
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested
addNewPortLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPort item);
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested
setNewPortLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPort item);
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested
editPort(java.lang.Integer index);
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested
editFirstPort();
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested
editLastPort();
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.PortsNested
editMatchingPort(
java.util.function.Predicate<
io.kubernetes.client.openapi.models.V1NetworkPolicyPortBuilder>
predicate);
public A addToTo(java.lang.Integer index, V1NetworkPolicyPeer item);
public A setToTo(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item);
public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items);
public A addAllToTo(
java.util.Collection items);
public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items);
public A removeAllFromTo(
java.util.Collection items);
public A removeMatchingFromTo(java.util.function.Predicate predicate);
/**
* This method has been deprecated, please use method buildTo instead.
*
* @return The buildable object.
*/
@java.lang.Deprecated
public java.util.List getTo();
public java.util.List buildTo();
public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildTo(java.lang.Integer index);
public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildFirstTo();
public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildLastTo();
public io.kubernetes.client.openapi.models.V1NetworkPolicyPeer buildMatchingTo(
java.util.function.Predicate
predicate);
public java.lang.Boolean hasMatchingTo(
java.util.function.Predicate
predicate);
public A withTo(java.util.List to);
public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to);
public java.lang.Boolean hasTo();
public V1NetworkPolicyEgressRuleFluent.ToNested addNewTo();
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested
addNewToLike(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item);
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested
setNewToLike(
java.lang.Integer index, io.kubernetes.client.openapi.models.V1NetworkPolicyPeer item);
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested editTo(
java.lang.Integer index);
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested
editFirstTo();
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested
editLastTo();
public io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRuleFluent.ToNested
editMatchingTo(
java.util.function.Predicate<
io.kubernetes.client.openapi.models.V1NetworkPolicyPeerBuilder>
predicate);
public interface PortsNested
extends Nested, V1NetworkPolicyPortFluent> {
public N and();
public N endPort();
}
public interface ToNested
extends io.kubernetes.client.fluent.Nested,
V1NetworkPolicyPeerFluent> {
public N and();
public N endTo();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy