/* * 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.connect.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about a user account for an Amazon Connect instance. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class User implements Serializable, Cloneable, StructuredPojo { /** ** The identifier of the user account. *
*/ private String id; /** ** The Amazon Resource Name (ARN) of the user account. *
*/ private String arn; /** ** The user name assigned to the user account. *
*/ private String username; /** ** Information about the user identity. *
*/ private UserIdentityInfo identityInfo; /** ** Information about the phone configuration for the user. *
*/ private UserPhoneConfig phoneConfig; /** ** The identifier of the user account in the directory used for identity management. *
*/ private String directoryUserId; /** ** The identifiers of the security profiles for the user. *
*/ private java.util.List* The identifier of the routing profile for the user. *
*/ private String routingProfileId; /** ** The identifier of the hierarchy group for the user. *
*/ private String hierarchyGroupId; /** ** The tags. *
*/ private java.util.Map* The identifier of the user account. *
* * @param id * The identifier of the user account. */ public void setId(String id) { this.id = id; } /** ** The identifier of the user account. *
* * @return The identifier of the user account. */ public String getId() { return this.id; } /** ** The identifier of the user account. *
* * @param id * The identifier of the user account. * @return Returns a reference to this object so that method calls can be chained together. */ public User withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name (ARN) of the user account. *
* * @param arn * The Amazon Resource Name (ARN) of the user account. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the user account. *
* * @return The Amazon Resource Name (ARN) of the user account. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the user account. *
* * @param arn * The Amazon Resource Name (ARN) of the user account. * @return Returns a reference to this object so that method calls can be chained together. */ public User withArn(String arn) { setArn(arn); return this; } /** ** The user name assigned to the user account. *
* * @param username * The user name assigned to the user account. */ public void setUsername(String username) { this.username = username; } /** ** The user name assigned to the user account. *
* * @return The user name assigned to the user account. */ public String getUsername() { return this.username; } /** ** The user name assigned to the user account. *
* * @param username * The user name assigned to the user account. * @return Returns a reference to this object so that method calls can be chained together. */ public User withUsername(String username) { setUsername(username); return this; } /** ** Information about the user identity. *
* * @param identityInfo * Information about the user identity. */ public void setIdentityInfo(UserIdentityInfo identityInfo) { this.identityInfo = identityInfo; } /** ** Information about the user identity. *
* * @return Information about the user identity. */ public UserIdentityInfo getIdentityInfo() { return this.identityInfo; } /** ** Information about the user identity. *
* * @param identityInfo * Information about the user identity. * @return Returns a reference to this object so that method calls can be chained together. */ public User withIdentityInfo(UserIdentityInfo identityInfo) { setIdentityInfo(identityInfo); return this; } /** ** Information about the phone configuration for the user. *
* * @param phoneConfig * Information about the phone configuration for the user. */ public void setPhoneConfig(UserPhoneConfig phoneConfig) { this.phoneConfig = phoneConfig; } /** ** Information about the phone configuration for the user. *
* * @return Information about the phone configuration for the user. */ public UserPhoneConfig getPhoneConfig() { return this.phoneConfig; } /** ** Information about the phone configuration for the user. *
* * @param phoneConfig * Information about the phone configuration for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withPhoneConfig(UserPhoneConfig phoneConfig) { setPhoneConfig(phoneConfig); return this; } /** ** The identifier of the user account in the directory used for identity management. *
* * @param directoryUserId * The identifier of the user account in the directory used for identity management. */ public void setDirectoryUserId(String directoryUserId) { this.directoryUserId = directoryUserId; } /** ** The identifier of the user account in the directory used for identity management. *
* * @return The identifier of the user account in the directory used for identity management. */ public String getDirectoryUserId() { return this.directoryUserId; } /** ** The identifier of the user account in the directory used for identity management. *
* * @param directoryUserId * The identifier of the user account in the directory used for identity management. * @return Returns a reference to this object so that method calls can be chained together. */ public User withDirectoryUserId(String directoryUserId) { setDirectoryUserId(directoryUserId); return this; } /** ** The identifiers of the security profiles for the user. *
* * @return The identifiers of the security profiles for the user. */ public java.util.List* The identifiers of the security profiles for the user. *
* * @param securityProfileIds * The identifiers of the security profiles for the user. */ public void setSecurityProfileIds(java.util.Collection* The identifiers of the security profiles for the user. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityProfileIds(java.util.Collection)} or {@link #withSecurityProfileIds(java.util.Collection)} if * you want to override the existing values. *
* * @param securityProfileIds * The identifiers of the security profiles for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withSecurityProfileIds(String... securityProfileIds) { if (this.securityProfileIds == null) { setSecurityProfileIds(new java.util.ArrayList* The identifiers of the security profiles for the user. *
* * @param securityProfileIds * The identifiers of the security profiles for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withSecurityProfileIds(java.util.Collection* The identifier of the routing profile for the user. *
* * @param routingProfileId * The identifier of the routing profile for the user. */ public void setRoutingProfileId(String routingProfileId) { this.routingProfileId = routingProfileId; } /** ** The identifier of the routing profile for the user. *
* * @return The identifier of the routing profile for the user. */ public String getRoutingProfileId() { return this.routingProfileId; } /** ** The identifier of the routing profile for the user. *
* * @param routingProfileId * The identifier of the routing profile for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withRoutingProfileId(String routingProfileId) { setRoutingProfileId(routingProfileId); return this; } /** ** The identifier of the hierarchy group for the user. *
* * @param hierarchyGroupId * The identifier of the hierarchy group for the user. */ public void setHierarchyGroupId(String hierarchyGroupId) { this.hierarchyGroupId = hierarchyGroupId; } /** ** The identifier of the hierarchy group for the user. *
* * @return The identifier of the hierarchy group for the user. */ public String getHierarchyGroupId() { return this.hierarchyGroupId; } /** ** The identifier of the hierarchy group for the user. *
* * @param hierarchyGroupId * The identifier of the hierarchy group for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public User withHierarchyGroupId(String hierarchyGroupId) { setHierarchyGroupId(hierarchyGroupId); return this; } /** ** The tags. *
* * @return The tags. */ public java.util.Map* The tags. *
* * @param tags * The tags. */ public void setTags(java.util.Map* The tags. *
* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public User withTags(java.util.Map