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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1Subject extends Object
Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
  • Field Details

  • Constructor Details

  • Method Details

    • getKind

      public String getKind()
      Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
      Returns:
      the kind property value
    • setKind

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

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

      public String getName()
      Name of the object being referenced.
      Returns:
      the name property value
    • setName

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

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

      public String getApiGroup()
      APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.
      Returns:
      the apiGroup property value
    • setApiGroup

      public void setApiGroup(String apiGroup)
      Set the apiGroup property value
      Parameters:
      apiGroup - property value to set
    • apiGroup

      public V1Subject apiGroup(String apiGroup)
      Set apiGroup in a chainable fashion.
      Returns:
      The same instance of V1Subject for chaining.
    • getNamespace

      public String getNamespace()
      Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.
      Returns:
      the namespace property value
    • setNamespace

      public void setNamespace(String namespace)
      Set the namespace property value
      Parameters:
      namespace - property value to set
    • namespace

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