Class V1APIGroup
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1APIGroup
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1APIGroup
extends Object
APIGroup contains the name, the supported versions, and the preferred version of a group.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddserverAddressByClientCIDRsItem
(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) Add an item to the serverAddressByClientCIDRs property in a chainable fashion.addversionsItem
(V1GroupVersionForDiscovery versionsItem) Add an item to the versions property in a chainable fashion.apiVersion
(String apiVersion) Set apiVersion in a chainable fashion.boolean
APIVersion defines the versioned schema of this representation of an object.getKind()
Kind is a string value representing the REST resource this object represents.getName()
name is the name of the group.List<@Valid V1ServerAddressByClientCIDR>
a map of client CIDR to server address that is serving this group.List<@Valid V1GroupVersionForDiscovery>
versions are the versions supported in this group.int
hashCode()
Set kind in a chainable fashion.Set name in a chainable fashion.preferredVersion
(V1GroupVersionForDiscovery preferredVersion) Set preferredVersion in a chainable fashion.serverAddressByClientCIDRs
(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set serverAddressByClientCIDRs in a chainable fashion.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
Set the kind property valuevoid
Set the name property valuevoid
setPreferredVersion
(V1GroupVersionForDiscovery preferredVersion) Set the preferredVersion property valuevoid
setServerAddressByClientCIDRs
(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set the serverAddressByClientCIDRs property valuevoid
setVersions
(List<@Valid V1GroupVersionForDiscovery> versions) Set the versions property valuetoString()
versions
(List<@Valid V1GroupVersionForDiscovery> versions) Set versions in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PREFERRED_VERSION
- See Also:
-
JSON_PROPERTY_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS
- See Also:
-
JSON_PROPERTY_VERSIONS
- See Also:
-
-
Constructor Details
-
V1APIGroup
-
-
Method Details
-
getApiVersion
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value -
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
getKind
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- the kind property value
-
setKind
Set the kind property value -
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
getName
name is the name of the group.- Returns:
- the name property value
-
setName
Set the name property value -
name
Set name in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
getPreferredVersion
- Returns:
- the preferredVersion property value
-
setPreferredVersion
Set the preferredVersion property value -
preferredVersion
Set preferredVersion in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
getServerAddressByClientCIDRs
a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.- Returns:
- the serverAddressByClientCIDRs property value
-
setServerAddressByClientCIDRs
public void setServerAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set the serverAddressByClientCIDRs property value -
serverAddressByClientCIDRs
public V1APIGroup serverAddressByClientCIDRs(List<@Valid V1ServerAddressByClientCIDR> serverAddressByClientCIDRs) Set serverAddressByClientCIDRs in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
addserverAddressByClientCIDRsItem
public V1APIGroup addserverAddressByClientCIDRsItem(V1ServerAddressByClientCIDR serverAddressByClientCIDRsItem) Add an item to the serverAddressByClientCIDRs property in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
getVersions
versions are the versions supported in this group.- Returns:
- the versions property value
-
setVersions
Set the versions property value -
versions
Set versions in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
addversionsItem
Add an item to the versions property in a chainable fashion.- Returns:
- The same instance of V1APIGroup for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-