public static final class V1beta1Extensions.NetworkPolicyEgressRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder> implements V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder
DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8Protobuf type
k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule| Modifier and Type | Method and Description |
|---|---|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addAllPorts(Iterable<? extends V1beta1Extensions.NetworkPolicyPort> values)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addAllTo(Iterable<? extends V1beta1Extensions.NetworkPolicyPeer> values)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addPorts(int index,
V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addPorts(int index,
V1beta1Extensions.NetworkPolicyPort value)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addPorts(V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addPorts(V1beta1Extensions.NetworkPolicyPort value)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
addPortsBuilder()
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
addPortsBuilder(int index)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addTo(int index,
V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addTo(int index,
V1beta1Extensions.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addTo(V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addTo(V1beta1Extensions.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeer.Builder |
addToBuilder()
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeer.Builder |
addToBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule |
build() |
V1beta1Extensions.NetworkPolicyEgressRule |
buildPartial() |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
clear() |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
clearPorts()
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
clearTo()
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
clone() |
V1beta1Extensions.NetworkPolicyEgressRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1beta1Extensions.NetworkPolicyPort |
getPorts(int index)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
getPortsBuilder(int index)
List of destination ports for outgoing traffic.
|
List<V1beta1Extensions.NetworkPolicyPort.Builder> |
getPortsBuilderList()
List of destination ports for outgoing traffic.
|
int |
getPortsCount()
List of destination ports for outgoing traffic.
|
List<V1beta1Extensions.NetworkPolicyPort> |
getPortsList()
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyPortOrBuilder |
getPortsOrBuilder(int index)
List of destination ports for outgoing traffic.
|
List<? extends V1beta1Extensions.NetworkPolicyPortOrBuilder> |
getPortsOrBuilderList()
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyPeer |
getTo(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeer.Builder |
getToBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
List<V1beta1Extensions.NetworkPolicyPeer.Builder> |
getToBuilderList()
List of destinations for outgoing traffic of pods selected for this rule.
|
int |
getToCount()
List of destinations for outgoing traffic of pods selected for this rule.
|
List<V1beta1Extensions.NetworkPolicyPeer> |
getToList()
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeerOrBuilder |
getToOrBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
List<? extends V1beta1Extensions.NetworkPolicyPeerOrBuilder> |
getToOrBuilderList()
List of destinations for outgoing traffic of pods selected for this rule.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
mergeFrom(V1beta1Extensions.NetworkPolicyEgressRule other) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
removePorts(int index)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
removeTo(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setPorts(int index,
V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setPorts(int index,
V1beta1Extensions.NetworkPolicyPort value)
List of destination ports for outgoing traffic.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setTo(int index,
V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setTo(int index,
V1beta1Extensions.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1beta1Extensions.NetworkPolicyEgressRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicyEgressRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicyEgressRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(V1beta1Extensions.NetworkPolicyEgressRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>IOExceptionpublic List<V1beta1Extensions.NetworkPolicyPort> getPortsList()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsList in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic int getPortsCount()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsCount in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyPort getPorts(int index)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;getPorts in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyEgressRule.Builder setPorts(int index, V1beta1Extensions.NetworkPolicyPort value)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder setPorts(int index, V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(V1beta1Extensions.NetworkPolicyPort value)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(int index, V1beta1Extensions.NetworkPolicyPort value)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(int index, V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addAllPorts(Iterable<? extends V1beta1Extensions.NetworkPolicyPort> values)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder clearPorts()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyEgressRule.Builder removePorts(int index)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyPort.Builder getPortsBuilder(int index)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsOrBuilder in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic List<? extends V1beta1Extensions.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsOrBuilderList in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyPort.Builder addPortsBuilder()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyPort.Builder addPortsBuilder(int index)
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public List<V1beta1Extensions.NetworkPolicyPort.Builder> getPortsBuilderList()
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;public List<V1beta1Extensions.NetworkPolicyPeer> getToList()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;getToList in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic int getToCount()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;getToCount in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyPeer getTo(int index)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;getTo in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyEgressRule.Builder setTo(int index, V1beta1Extensions.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder setTo(int index, V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(V1beta1Extensions.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(int index, V1beta1Extensions.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(int index, V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addAllTo(Iterable<? extends V1beta1Extensions.NetworkPolicyPeer> values)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder clearTo()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyEgressRule.Builder removeTo(int index)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyPeer.Builder getToBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyPeerOrBuilder getToOrBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;getToOrBuilder in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic List<? extends V1beta1Extensions.NetworkPolicyPeerOrBuilder> getToOrBuilderList()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;getToOrBuilderList in interface V1beta1Extensions.NetworkPolicyEgressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyPeer.Builder addToBuilder()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public V1beta1Extensions.NetworkPolicyPeer.Builder addToBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public List<V1beta1Extensions.NetworkPolicyPeer.Builder> getToBuilderList()
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2;public final V1beta1Extensions.NetworkPolicyEgressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>public final V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>Copyright © 2023. All rights reserved.