/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Details about the Kubernetes user involved in a Kubernetes finding. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class KubernetesUserDetails implements Serializable, Cloneable, StructuredPojo { /** ** The username of the user who called the Kubernetes API. *
*/ private String username; /** ** The user ID of the user who called the Kubernetes API. *
*/ private String uid; /** ** The groups that include the user who called the Kubernetes API. *
*/ private java.util.List* Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. *
*/ private java.util.List* The username of the user who called the Kubernetes API. *
* * @param username * The username of the user who called the Kubernetes API. */ public void setUsername(String username) { this.username = username; } /** ** The username of the user who called the Kubernetes API. *
* * @return The username of the user who called the Kubernetes API. */ public String getUsername() { return this.username; } /** ** The username of the user who called the Kubernetes API. *
* * @param username * The username of the user who called the Kubernetes API. * @return Returns a reference to this object so that method calls can be chained together. */ public KubernetesUserDetails withUsername(String username) { setUsername(username); return this; } /** ** The user ID of the user who called the Kubernetes API. *
* * @param uid * The user ID of the user who called the Kubernetes API. */ public void setUid(String uid) { this.uid = uid; } /** ** The user ID of the user who called the Kubernetes API. *
* * @return The user ID of the user who called the Kubernetes API. */ public String getUid() { return this.uid; } /** ** The user ID of the user who called the Kubernetes API. *
* * @param uid * The user ID of the user who called the Kubernetes API. * @return Returns a reference to this object so that method calls can be chained together. */ public KubernetesUserDetails withUid(String uid) { setUid(uid); return this; } /** ** The groups that include the user who called the Kubernetes API. *
* * @return The groups that include the user who called the Kubernetes API. */ public java.util.List* The groups that include the user who called the Kubernetes API. *
* * @param groups * The groups that include the user who called the Kubernetes API. */ public void setGroups(java.util.Collection* The groups that include the user who called the Kubernetes API. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the * existing values. *
* * @param groups * The groups that include the user who called the Kubernetes API. * @return Returns a reference to this object so that method calls can be chained together. */ public KubernetesUserDetails withGroups(String... groups) { if (this.groups == null) { setGroups(new java.util.ArrayList* The groups that include the user who called the Kubernetes API. *
* * @param groups * The groups that include the user who called the Kubernetes API. * @return Returns a reference to this object so that method calls can be chained together. */ public KubernetesUserDetails withGroups(java.util.Collection* Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. *
* * @return Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. */ public java.util.List* Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. *
* * @param sessionName * Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. */ public void setSessionName(java.util.Collection* Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSessionName(java.util.Collection)} or {@link #withSessionName(java.util.Collection)} if you want to * override the existing values. *
* * @param sessionName * Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. * @return Returns a reference to this object so that method calls can be chained together. */ public KubernetesUserDetails withSessionName(String... sessionName) { if (this.sessionName == null) { setSessionName(new java.util.ArrayList* Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. *
* * @param sessionName * Entity that assumes the IAM role when Kubernetes RBAC permissions are assigned to that role. * @return Returns a reference to this object so that method calls can be chained together. */ public KubernetesUserDetails withSessionName(java.util.Collection