Class V2APIVersionDiscovery

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2APIVersionDiscovery

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V2APIVersionDiscovery extends Object
APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
  • Field Details

  • Constructor Details

    • V2APIVersionDiscovery

      public V2APIVersionDiscovery(String version)
  • Method Details

    • getVersion

      public String getVersion()
      version is the name of the version within a group version.
      Returns:
      the version property value
    • setVersion

      public void setVersion(String version)
      Set the version property value
      Parameters:
      version - property value to set
    • version

      public V2APIVersionDiscovery version(String version)
      Set version in a chainable fashion.
      Returns:
      The same instance of V2APIVersionDiscovery for chaining.
    • getResources

      public List<@Valid V2APIResourceDiscovery> getResources()
      Returns:
      the resources property value
    • setResources

      public void setResources(List<@Valid V2APIResourceDiscovery> resources)
      Set the resources property value
      Parameters:
      resources - property value to set
    • resources

      public V2APIVersionDiscovery resources(List<@Valid V2APIResourceDiscovery> resources)
      Set resources in a chainable fashion.
      Returns:
      The same instance of V2APIVersionDiscovery for chaining.
    • addResourcesItem

      public V2APIVersionDiscovery addResourcesItem(V2APIResourceDiscovery resourcesItem)
      Add an item to the resources property in a chainable fashion.
      Returns:
      The same instance of V2APIVersionDiscovery for chaining.
    • getFreshness

      public String getFreshness()
      freshness marks whether a group version's discovery document is up to date.
      Returns:
      the freshness property value
    • setFreshness

      public void setFreshness(String freshness)
      Set the freshness property value
      Parameters:
      freshness - property value to set
    • freshness

      public V2APIVersionDiscovery freshness(String freshness)
      Set freshness in a chainable fashion.
      Returns:
      The same instance of V2APIVersionDiscovery 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