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.KubernetesResourceIPBlock 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 IPBlockBuilderedit()Map<String,Object>getAdditionalProperties()StringgetCidr()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 rangevoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCidr(String cidr)cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"voidsetExcept(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 rangeIPBlockBuildertoBuilder()
-
-
-
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:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<IPBlockBuilder>
-
toBuilder
public IPBlockBuilder toBuilder()
-
-