/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an IAM user. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsIamUserDetails implements Serializable, Cloneable, StructuredPojo { /** ** A list of the managed policies that are attached to the user. *
*/ private java.util.List* Indicates when the user was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* A list of IAM groups that the user belongs to. *
*/ private java.util.List* The path to the user. *
*/ private String path; /** ** The permissions boundary for the user. *
*/ private AwsIamPermissionsBoundary permissionsBoundary; /** ** The unique identifier for the user. *
*/ private String userId; /** ** The name of the user. *
*/ private String userName; /** ** The list of inline policies that are embedded in the user. *
*/ private java.util.List* A list of the managed policies that are attached to the user. *
* * @return A list of the managed policies that are attached to the user. */ public java.util.List* A list of the managed policies that are attached to the user. *
* * @param attachedManagedPolicies * A list of the managed policies that are attached to the user. */ public void setAttachedManagedPolicies(java.util.Collection* A list of the managed policies that are attached to the user. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAttachedManagedPolicies(java.util.Collection)} or * {@link #withAttachedManagedPolicies(java.util.Collection)} if you want to override the existing values. *
* * @param attachedManagedPolicies * A list of the managed policies that are attached to the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withAttachedManagedPolicies(AwsIamAttachedManagedPolicy... attachedManagedPolicies) { if (this.attachedManagedPolicies == null) { setAttachedManagedPolicies(new java.util.ArrayList* A list of the managed policies that are attached to the user. *
* * @param attachedManagedPolicies * A list of the managed policies that are attached to the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withAttachedManagedPolicies(java.util.Collection* Indicates when the user was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
/**
*
* Indicates when the user was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public String getCreateDate() {
return this.createDate;
}
/**
*
* Indicates when the user was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsIamUserDetails withCreateDate(String createDate) {
setCreateDate(createDate);
return this;
}
/**
*
* A list of IAM groups that the user belongs to. *
* * @return A list of IAM groups that the user belongs to. */ public java.util.List* A list of IAM groups that the user belongs to. *
* * @param groupList * A list of IAM groups that the user belongs to. */ public void setGroupList(java.util.Collection* A list of IAM groups that the user belongs to. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroupList(java.util.Collection)} or {@link #withGroupList(java.util.Collection)} if you want to * override the existing values. *
* * @param groupList * A list of IAM groups that the user belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withGroupList(String... groupList) { if (this.groupList == null) { setGroupList(new java.util.ArrayList* A list of IAM groups that the user belongs to. *
* * @param groupList * A list of IAM groups that the user belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withGroupList(java.util.Collection* The path to the user. *
* * @param path * The path to the user. */ public void setPath(String path) { this.path = path; } /** ** The path to the user. *
* * @return The path to the user. */ public String getPath() { return this.path; } /** ** The path to the user. *
* * @param path * The path to the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withPath(String path) { setPath(path); return this; } /** ** The permissions boundary for the user. *
* * @param permissionsBoundary * The permissions boundary for the user. */ public void setPermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary) { this.permissionsBoundary = permissionsBoundary; } /** ** The permissions boundary for the user. *
* * @return The permissions boundary for the user. */ public AwsIamPermissionsBoundary getPermissionsBoundary() { return this.permissionsBoundary; } /** ** The permissions boundary for the user. *
* * @param permissionsBoundary * The permissions boundary for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withPermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary) { setPermissionsBoundary(permissionsBoundary); return this; } /** ** The unique identifier for the user. *
* * @param userId * The unique identifier for the user. */ public void setUserId(String userId) { this.userId = userId; } /** ** The unique identifier for the user. *
* * @return The unique identifier for the user. */ public String getUserId() { return this.userId; } /** ** The unique identifier for the user. *
* * @param userId * The unique identifier for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withUserId(String userId) { setUserId(userId); return this; } /** ** The name of the user. *
* * @param userName * The name of the user. */ public void setUserName(String userName) { this.userName = userName; } /** ** The name of the user. *
* * @return The name of the user. */ public String getUserName() { return this.userName; } /** ** The name of the user. *
* * @param userName * The name of the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withUserName(String userName) { setUserName(userName); return this; } /** ** The list of inline policies that are embedded in the user. *
* * @return The list of inline policies that are embedded in the user. */ public java.util.List* The list of inline policies that are embedded in the user. *
* * @param userPolicyList * The list of inline policies that are embedded in the user. */ public void setUserPolicyList(java.util.Collection* The list of inline policies that are embedded in the user. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserPolicyList(java.util.Collection)} or {@link #withUserPolicyList(java.util.Collection)} if you want * to override the existing values. *
* * @param userPolicyList * The list of inline policies that are embedded in the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withUserPolicyList(AwsIamUserPolicy... userPolicyList) { if (this.userPolicyList == null) { setUserPolicyList(new java.util.ArrayList* The list of inline policies that are embedded in the user. *
* * @param userPolicyList * The list of inline policies that are embedded in the user. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamUserDetails withUserPolicyList(java.util.Collection