@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KubernetesUserDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details about the Kubernetes user involved in a Kubernetes finding.
Constructor and Description |
---|
KubernetesUserDetails() |
Modifier and Type | Method and Description |
---|---|
KubernetesUserDetails |
clone() |
boolean |
equals(Object obj) |
List<String> |
getGroups()
The groups that include the user who called the Kubernetes API.
|
String |
getUid()
The user ID of the user who called the Kubernetes API.
|
String |
getUsername()
The username of the user who called the Kubernetes API.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setGroups(Collection<String> groups)
The groups that include the user who called the Kubernetes API.
|
void |
setUid(String uid)
The user ID of the user who called the Kubernetes API.
|
void |
setUsername(String username)
The username of the user who called the Kubernetes API.
|
String |
toString()
Returns a string representation of this object.
|
KubernetesUserDetails |
withGroups(Collection<String> groups)
The groups that include the user who called the Kubernetes API.
|
KubernetesUserDetails |
withGroups(String... groups)
The groups that include the user who called the Kubernetes API.
|
KubernetesUserDetails |
withUid(String uid)
The user ID of the user who called the Kubernetes API.
|
KubernetesUserDetails |
withUsername(String username)
The username of the user who called the Kubernetes API.
|
public void setUsername(String username)
The username of the user who called the Kubernetes API.
username
- The username of the user who called the Kubernetes API.public String getUsername()
The username of the user who called the Kubernetes API.
public KubernetesUserDetails withUsername(String username)
The username of the user who called the Kubernetes API.
username
- The username of the user who called the Kubernetes API.public void setUid(String uid)
The user ID of the user who called the Kubernetes API.
uid
- The user ID of the user who called the Kubernetes API.public String getUid()
The user ID of the user who called the Kubernetes API.
public KubernetesUserDetails withUid(String uid)
The user ID of the user who called the Kubernetes API.
uid
- The user ID of the user who called the Kubernetes API.public List<String> getGroups()
The groups that include the user who called the Kubernetes API.
public void setGroups(Collection<String> groups)
The groups that include the user who called the Kubernetes API.
groups
- The groups that include the user who called the Kubernetes API.public KubernetesUserDetails withGroups(String... groups)
The groups that include the user who called the Kubernetes API.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- The groups that include the user who called the Kubernetes API.public KubernetesUserDetails withGroups(Collection<String> groups)
The groups that include the user who called the Kubernetes API.
groups
- The groups that include the user who called the Kubernetes API.public String toString()
toString
in class Object
Object.toString()
public KubernetesUserDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.