Class IPBlock
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.extensions.v1beta1.IPBlock
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class IPBlock extends java.lang.Object implements com.marcnuri.yakc.model.Model
DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IPBlock.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IPBlock.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"java.util.List<java.lang.String>
getExcept()
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR rangeint
hashCode()
void
setCidr(@NonNull java.lang.String cidr)
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"void
setExcept(java.util.List<java.lang.String> except)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR rangeIPBlock.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static IPBlock.Builder builder()
-
toBuilder
public IPBlock.Builder toBuilder()
-
getCidr
@NonNull public @NonNull java.lang.String getCidr()
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
-
getExcept
public java.util.List<java.lang.String> getExcept()
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
-
setCidr
public void setCidr(@NonNull @NonNull java.lang.String cidr)
CIDR is a string representing the IP Block Valid examples are "192.168.1.1/24"
-
setExcept
public void setExcept(java.util.List<java.lang.String> except)
Except is a slice of CIDRs that should not be included within an IP Block Valid examples are "192.168.1.1/24" Except values will be rejected if they are outside the CIDR range
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-