Class V1Subject

java.lang.Object
io.kubernetes.client.openapi.models.V1Subject

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") 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

    • V1Subject

      public V1Subject()
  • Method Details

    • apiGroup

      public V1Subject apiGroup(String apiGroup)
    • getApiGroup

      @Nullable 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:
      apiGroup
    • setApiGroup

      public void setApiGroup(String apiGroup)
    • kind

      public V1Subject kind(String kind)
    • 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:
      kind
    • setKind

      public void setKind(String kind)
    • name

      public V1Subject name(String name)
    • getName

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

      public void setName(String name)
    • namespace

      public V1Subject namespace(String namespace)
    • getNamespace

      @Nullable 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:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • 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