Class ServerAddressByClientCIDR
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ServerAddressByClientCIDR extends java.lang.Object implements com.marcnuri.yakc.model.Model
ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerAddressByClientCIDR.Builder
-
Constructor Summary
Constructors Constructor Description ServerAddressByClientCIDR()
ServerAddressByClientCIDR(@NonNull java.lang.String clientCIDR, @NonNull java.lang.String serverAddress)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerAddressByClientCIDR.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getClientCIDR()
The CIDR with which clients can match their IP to figure out the server address that they should use.@NonNull java.lang.String
getServerAddress()
Address of this server, suitable for a client that matches the above CIDR.int
hashCode()
void
setClientCIDR(@NonNull java.lang.String clientCIDR)
The CIDR with which clients can match their IP to figure out the server address that they should use.void
setServerAddress(@NonNull java.lang.String serverAddress)
Address of this server, suitable for a client that matches the above CIDR.ServerAddressByClientCIDR.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static ServerAddressByClientCIDR.Builder builder()
-
toBuilder
public ServerAddressByClientCIDR.Builder toBuilder()
-
getClientCIDR
@NonNull public @NonNull java.lang.String getClientCIDR()
The CIDR with which clients can match their IP to figure out the server address that they should use.
-
getServerAddress
@NonNull public @NonNull java.lang.String getServerAddress()
Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
-
setClientCIDR
public void setClientCIDR(@NonNull @NonNull java.lang.String clientCIDR)
The CIDR with which clients can match their IP to figure out the server address that they should use.
-
setServerAddress
public void setServerAddress(@NonNull @NonNull java.lang.String serverAddress)
Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
-
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
-
-