Class V1UserInfo

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1UserInfo extends Object
UserInfo holds the information about the user needed to implement the user.Info interface.
  • Field Details

  • Constructor Details

    • V1UserInfo

      public V1UserInfo()
  • Method Details

    • extra

      public V1UserInfo extra(Map<String,List<String>> extra)
    • putExtraItem

      public V1UserInfo putExtraItem(String key, List<String> extraItem)
    • getExtra

      @Nullable public Map<String,List<String>> getExtra()
      Any additional information provided by the authenticator.
      Returns:
      extra
    • setExtra

      public void setExtra(Map<String,List<String>> extra)
    • groups

      public V1UserInfo groups(List<String> groups)
    • addGroupsItem

      public V1UserInfo addGroupsItem(String groupsItem)
    • getGroups

      @Nullable public List<String> getGroups()
      The names of groups this user is a part of.
      Returns:
      groups
    • setGroups

      public void setGroups(List<String> groups)
    • uid

      public V1UserInfo uid(String uid)
    • getUid

      @Nullable public String getUid()
      A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.
      Returns:
      uid
    • setUid

      public void setUid(String uid)
    • username

      public V1UserInfo username(String username)
    • getUsername

      @Nullable public String getUsername()
      The name that uniquely identifies this user among all active users.
      Returns:
      username
    • setUsername

      public void setUsername(String username)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to V1UserInfo
    • fromJson

      public static V1UserInfo fromJson(String jsonString) throws IOException
      Create an instance of V1UserInfo given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1UserInfo
      Throws:
      IOException - if the JSON string is invalid with respect to V1UserInfo
    • toJson

      public String toJson()
      Convert an instance of V1UserInfo to an JSON string
      Returns:
      JSON string