/* * Copyright 2010-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; /** *
* Information about the returned users. *
*/ public class UserSearchSummary implements Serializable { /** ** The Amazon Resource Name (ARN) of the user. *
*/ private String arn; /** ** The directory identifier of the user. *
*/ private String directoryUserId; /** ** The identifier of the user's hierarchy group. *
*/ private String hierarchyGroupId; /** ** The identifier of the user's summary. *
*/ private String id; /** ** The user's first name and last name. *
*/ private UserIdentityInfoLite identityInfo; /** ** Contains information about the phone configuration settings for a user. *
*/ private UserPhoneConfig phoneConfig; /** ** The identifier of the user's routing profile. *
*/ private String routingProfileId; /** ** The identifiers of the user's security profiles. *
*/ private java.util.List* The tags used to organize, track, or control access for this resource. * For example, { "tags": {"key1":"value1", "key2":"value2"} }. *
*/ private java.util.Map* The name of the user. *
*
* Constraints:
* Length: 1 - 100
*/
private String username;
/**
*
* The Amazon Resource Name (ARN) of the user. *
* * @return* The Amazon Resource Name (ARN) of the user. *
*/ public String getArn() { return arn; } /** ** The Amazon Resource Name (ARN) of the user. *
* * @param arn* The Amazon Resource Name (ARN) of the user. *
*/ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the user. *
** Returns a reference to this object so that method calls can be chained * together. * * @param arn
* The Amazon Resource Name (ARN) of the user. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withArn(String arn) { this.arn = arn; return this; } /** ** The directory identifier of the user. *
* * @return* The directory identifier of the user. *
*/ public String getDirectoryUserId() { return directoryUserId; } /** ** The directory identifier of the user. *
* * @param directoryUserId* The directory identifier of the user. *
*/ public void setDirectoryUserId(String directoryUserId) { this.directoryUserId = directoryUserId; } /** ** The directory identifier of the user. *
** Returns a reference to this object so that method calls can be chained * together. * * @param directoryUserId
* The directory identifier of the user. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withDirectoryUserId(String directoryUserId) { this.directoryUserId = directoryUserId; return this; } /** ** The identifier of the user's hierarchy group. *
* * @return* The identifier of the user's hierarchy group. *
*/ public String getHierarchyGroupId() { return hierarchyGroupId; } /** ** The identifier of the user's hierarchy group. *
* * @param hierarchyGroupId* The identifier of the user's hierarchy group. *
*/ public void setHierarchyGroupId(String hierarchyGroupId) { this.hierarchyGroupId = hierarchyGroupId; } /** ** The identifier of the user's hierarchy group. *
** Returns a reference to this object so that method calls can be chained * together. * * @param hierarchyGroupId
* The identifier of the user's hierarchy group. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withHierarchyGroupId(String hierarchyGroupId) { this.hierarchyGroupId = hierarchyGroupId; return this; } /** ** The identifier of the user's summary. *
* * @return* The identifier of the user's summary. *
*/ public String getId() { return id; } /** ** The identifier of the user's summary. *
* * @param id* The identifier of the user's summary. *
*/ public void setId(String id) { this.id = id; } /** ** The identifier of the user's summary. *
** Returns a reference to this object so that method calls can be chained * together. * * @param id
* The identifier of the user's summary. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withId(String id) { this.id = id; return this; } /** ** The user's first name and last name. *
* * @return* The user's first name and last name. *
*/ public UserIdentityInfoLite getIdentityInfo() { return identityInfo; } /** ** The user's first name and last name. *
* * @param identityInfo* The user's first name and last name. *
*/ public void setIdentityInfo(UserIdentityInfoLite identityInfo) { this.identityInfo = identityInfo; } /** ** The user's first name and last name. *
** Returns a reference to this object so that method calls can be chained * together. * * @param identityInfo
* The user's first name and last name. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withIdentityInfo(UserIdentityInfoLite identityInfo) { this.identityInfo = identityInfo; return this; } /** ** Contains information about the phone configuration settings for a user. *
* * @return* Contains information about the phone configuration settings for a * user. *
*/ public UserPhoneConfig getPhoneConfig() { return phoneConfig; } /** ** Contains information about the phone configuration settings for a user. *
* * @param phoneConfig* Contains information about the phone configuration settings * for a user. *
*/ public void setPhoneConfig(UserPhoneConfig phoneConfig) { this.phoneConfig = phoneConfig; } /** ** Contains information about the phone configuration settings for a user. *
** Returns a reference to this object so that method calls can be chained * together. * * @param phoneConfig
* Contains information about the phone configuration settings * for a user. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withPhoneConfig(UserPhoneConfig phoneConfig) { this.phoneConfig = phoneConfig; return this; } /** ** The identifier of the user's routing profile. *
* * @return* The identifier of the user's routing profile. *
*/ public String getRoutingProfileId() { return routingProfileId; } /** ** The identifier of the user's routing profile. *
* * @param routingProfileId* The identifier of the user's routing profile. *
*/ public void setRoutingProfileId(String routingProfileId) { this.routingProfileId = routingProfileId; } /** ** The identifier of the user's routing profile. *
** Returns a reference to this object so that method calls can be chained * together. * * @param routingProfileId
* The identifier of the user's routing profile. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withRoutingProfileId(String routingProfileId) { this.routingProfileId = routingProfileId; return this; } /** ** The identifiers of the user's security profiles. *
* * @return* The identifiers of the user's security profiles. *
*/ public java.util.List* The identifiers of the user's security profiles. *
* * @param securityProfileIds* The identifiers of the user's security profiles. *
*/ public void setSecurityProfileIds(java.util.Collection* The identifiers of the user's security profiles. *
** Returns a reference to this object so that method calls can be chained * together. * * @param securityProfileIds
* The identifiers of the user's security profiles. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withSecurityProfileIds(String... securityProfileIds) { if (getSecurityProfileIds() == null) { this.securityProfileIds = new java.util.ArrayList* The identifiers of the user's security profiles. *
** Returns a reference to this object so that method calls can be chained * together. * * @param securityProfileIds
* The identifiers of the user's security profiles. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withSecurityProfileIds(java.util.Collection* The tags used to organize, track, or control access for this resource. * For example, { "tags": {"key1":"value1", "key2":"value2"} }. *
* * @return* The tags used to organize, track, or control access for this * resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
*/ public java.util.Map* The tags used to organize, track, or control access for this resource. * For example, { "tags": {"key1":"value1", "key2":"value2"} }. *
* * @param tags* The tags used to organize, track, or control access for this * resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
*/ public void setTags(java.util.Map* The tags used to organize, track, or control access for this resource. * For example, { "tags": {"key1":"value1", "key2":"value2"} }. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* The tags used to organize, track, or control access for this * resource. For example, { "tags": {"key1":"value1", * "key2":"value2"} }. *
* @return A reference to this updated object so that method calls can be * chained together. */ public UserSearchSummary withTags(java.util.Map* The tags used to organize, track, or control access for this resource. * For example, { "tags": {"key1":"value1", "key2":"value2"} }. *
*
* The method adds a new key-value pair into Tags parameter, and returns a
* reference to this object so that method calls can be chained together.
*
* @param key The key of the entry to be added into Tags.
* @param value The corresponding value of the entry to be added into Tags.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public UserSearchSummary addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public UserSearchSummary clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The name of the user.
*
* Constraints:
* The name of the user.
*
* The name of the user.
*
* Constraints:
* The name of the user.
*
* The name of the user.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The name of the user.
*
* Length: 1 - 100
*
* @return
* Length: 1 - 100
*
* @param username
* Length: 1 - 100
*
* @param username