Class V1IPBlock
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1IPBlock
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1IPBlock
extends Object
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.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddexceptItem
(String exceptItem) Add an item to the except property in a chainable fashion.Set cidr in a chainable fashion.boolean
Set except in a chainable fashion.getCidr()
cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"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 rangeint
hashCode()
void
Set the cidr property valuevoid
Set the except property valuetoString()
-
Field Details
-
JSON_PROPERTY_CIDR
- See Also:
-
JSON_PROPERTY_EXCEPT
- See Also:
-
-
Constructor Details
-
V1IPBlock
-
-
Method Details
-
getCidr
cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"- Returns:
- the cidr property value
-
setCidr
Set the cidr property value -
cidr
Set cidr in a chainable fashion.- Returns:
- The same instance of V1IPBlock for chaining.
-
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- Returns:
- the except property value
-
setExcept
Set the except property value -
except
Set except in a chainable fashion.- Returns:
- The same instance of V1IPBlock for chaining.
-
addexceptItem
Add an item to the except property in a chainable fashion.- Returns:
- The same instance of V1IPBlock for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-