Class IPBlock
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.networking.v1.IPBlock
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<IPBlockBuilder>
,io.fabric8.kubernetes.api.model.KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class IPBlock extends Object implements io.fabric8.kubernetes.api.builder.Editable<IPBlockBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPBlockBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getCidr()
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"List<String>
getExcept()
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr rangevoid
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setCidr(String cidr)
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"void
setExcept(List<String> except)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr rangeIPBlockBuilder
toBuilder()
-
-
-
Method Detail
-
getCidr
public String getCidr()
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
-
setCidr
public void setCidr(String cidr)
cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
-
getExcept
public List<String> getExcept()
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range
-
setExcept
public void setExcept(List<String> except)
except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range
-
edit
public IPBlockBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<IPBlockBuilder>
-
toBuilder
public IPBlockBuilder toBuilder()
-
-