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 Details

  • Constructor Details

  • Method Details

    • getName

      public String getName()
      name is the name of the group.
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
      Parameters:
      name - property value to set
    • name

      public V1APIGroup name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1APIGroup for chaining.
    • getVersions

      public List<@Valid V1GroupVersionForDiscovery> getVersions()
      versions are the versions supported in this group.
      Returns:
      the versions property value
    • setVersions

      public void setVersions(List<@Valid V1GroupVersionForDiscovery> versions)
      Set the versions property value
      Parameters:
      versions - property value to set
    • versions

      public V1APIGroup versions(List<@Valid V1GroupVersionForDiscovery> versions)
      Set versions in a chainable fashion.
      Returns:
      The same instance of V1APIGroup for chaining.
    • addversionsItem

      public V1APIGroup addversionsItem(V1GroupVersionForDiscovery versionsItem)
      Add an item to the versions property in a chainable fashion.
      Returns:
      The same instance of V1APIGroup for chaining.
    • getApiVersion

      public String 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

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

      public V1APIGroup apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1APIGroup for chaining.
    • getKind

      public String 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

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

      public V1APIGroup kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1APIGroup for chaining.
    • getPreferredVersion

      public V1GroupVersionForDiscovery getPreferredVersion()
      Returns:
      the preferredVersion property value
    • setPreferredVersion

      public void setPreferredVersion(V1GroupVersionForDiscovery preferredVersion)
      Set the preferredVersion property value
      Parameters:
      preferredVersion - property value to set
    • preferredVersion

      public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion)
      Set preferredVersion in a chainable fashion.
      Returns:
      The same instance of V1APIGroup for chaining.
    • getServerAddressByClientCIDRs

      public List<@Valid V1ServerAddressByClientCIDR> 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
      Parameters:
      serverAddressByClientCIDRs - property value to set
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object