/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a user.See Also:
AWS API
* Reference
The ID of the user.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the user.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the user.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the user.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the user.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the user.
*/ inline User& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the user.
*/ inline User& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the user.
*/ inline User& WithId(const char* value) { SetId(value); return *this;} /** *The login name of the user.
*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *The login name of the user.
*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *The login name of the user.
*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *The login name of the user.
*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *The login name of the user.
*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *The login name of the user.
*/ inline User& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *The login name of the user.
*/ inline User& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *The login name of the user.
*/ inline User& WithUsername(const char* value) { SetUsername(value); return *this;} /** *The email address of the user.
*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *The email address of the user.
*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *The email address of the user.
*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; } /** *The email address of the user.
*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); } /** *The email address of the user.
*/ inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); } /** *The email address of the user.
*/ inline User& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;} /** *The email address of the user.
*/ inline User& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;} /** *The email address of the user.
*/ inline User& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} /** *The given name of the user.
*/ inline const Aws::String& GetGivenName() const{ return m_givenName; } /** *The given name of the user.
*/ inline bool GivenNameHasBeenSet() const { return m_givenNameHasBeenSet; } /** *The given name of the user.
*/ inline void SetGivenName(const Aws::String& value) { m_givenNameHasBeenSet = true; m_givenName = value; } /** *The given name of the user.
*/ inline void SetGivenName(Aws::String&& value) { m_givenNameHasBeenSet = true; m_givenName = std::move(value); } /** *The given name of the user.
*/ inline void SetGivenName(const char* value) { m_givenNameHasBeenSet = true; m_givenName.assign(value); } /** *The given name of the user.
*/ inline User& WithGivenName(const Aws::String& value) { SetGivenName(value); return *this;} /** *The given name of the user.
*/ inline User& WithGivenName(Aws::String&& value) { SetGivenName(std::move(value)); return *this;} /** *The given name of the user.
*/ inline User& WithGivenName(const char* value) { SetGivenName(value); return *this;} /** *The surname of the user.
*/ inline const Aws::String& GetSurname() const{ return m_surname; } /** *The surname of the user.
*/ inline bool SurnameHasBeenSet() const { return m_surnameHasBeenSet; } /** *The surname of the user.
*/ inline void SetSurname(const Aws::String& value) { m_surnameHasBeenSet = true; m_surname = value; } /** *The surname of the user.
*/ inline void SetSurname(Aws::String&& value) { m_surnameHasBeenSet = true; m_surname = std::move(value); } /** *The surname of the user.
*/ inline void SetSurname(const char* value) { m_surnameHasBeenSet = true; m_surname.assign(value); } /** *The surname of the user.
*/ inline User& WithSurname(const Aws::String& value) { SetSurname(value); return *this;} /** *The surname of the user.
*/ inline User& WithSurname(Aws::String&& value) { SetSurname(std::move(value)); return *this;} /** *The surname of the user.
*/ inline User& WithSurname(const char* value) { SetSurname(value); return *this;} /** *The ID of the organization.
*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *The ID of the organization.
*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *The ID of the organization.
*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *The ID of the organization.
*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *The ID of the organization.
*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *The ID of the organization.
*/ inline User& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *The ID of the organization.
*/ inline User& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *The ID of the organization.
*/ inline User& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *The ID of the root folder.
*/ inline const Aws::String& GetRootFolderId() const{ return m_rootFolderId; } /** *The ID of the root folder.
*/ inline bool RootFolderIdHasBeenSet() const { return m_rootFolderIdHasBeenSet; } /** *The ID of the root folder.
*/ inline void SetRootFolderId(const Aws::String& value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId = value; } /** *The ID of the root folder.
*/ inline void SetRootFolderId(Aws::String&& value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId = std::move(value); } /** *The ID of the root folder.
*/ inline void SetRootFolderId(const char* value) { m_rootFolderIdHasBeenSet = true; m_rootFolderId.assign(value); } /** *The ID of the root folder.
*/ inline User& WithRootFolderId(const Aws::String& value) { SetRootFolderId(value); return *this;} /** *The ID of the root folder.
*/ inline User& WithRootFolderId(Aws::String&& value) { SetRootFolderId(std::move(value)); return *this;} /** *The ID of the root folder.
*/ inline User& WithRootFolderId(const char* value) { SetRootFolderId(value); return *this;} /** *The ID of the recycle bin folder.
*/ inline const Aws::String& GetRecycleBinFolderId() const{ return m_recycleBinFolderId; } /** *The ID of the recycle bin folder.
*/ inline bool RecycleBinFolderIdHasBeenSet() const { return m_recycleBinFolderIdHasBeenSet; } /** *The ID of the recycle bin folder.
*/ inline void SetRecycleBinFolderId(const Aws::String& value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId = value; } /** *The ID of the recycle bin folder.
*/ inline void SetRecycleBinFolderId(Aws::String&& value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId = std::move(value); } /** *The ID of the recycle bin folder.
*/ inline void SetRecycleBinFolderId(const char* value) { m_recycleBinFolderIdHasBeenSet = true; m_recycleBinFolderId.assign(value); } /** *The ID of the recycle bin folder.
*/ inline User& WithRecycleBinFolderId(const Aws::String& value) { SetRecycleBinFolderId(value); return *this;} /** *The ID of the recycle bin folder.
*/ inline User& WithRecycleBinFolderId(Aws::String&& value) { SetRecycleBinFolderId(std::move(value)); return *this;} /** *The ID of the recycle bin folder.
*/ inline User& WithRecycleBinFolderId(const char* value) { SetRecycleBinFolderId(value); return *this;} /** *The status of the user.
*/ inline const UserStatusType& GetStatus() const{ return m_status; } /** *The status of the user.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the user.
*/ inline void SetStatus(const UserStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the user.
*/ inline void SetStatus(UserStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the user.
*/ inline User& WithStatus(const UserStatusType& value) { SetStatus(value); return *this;} /** *The status of the user.
*/ inline User& WithStatus(UserStatusType&& value) { SetStatus(std::move(value)); return *this;} /** *The type of user.
*/ inline const UserType& GetType() const{ return m_type; } /** *The type of user.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of user.
*/ inline void SetType(const UserType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of user.
*/ inline void SetType(UserType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of user.
*/ inline User& WithType(const UserType& value) { SetType(value); return *this;} /** *The type of user.
*/ inline User& WithType(UserType&& value) { SetType(std::move(value)); return *this;} /** *The time when the user was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *The time when the user was created.
*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *The time when the user was created.
*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *The time when the user was created.
*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *The time when the user was created.
*/ inline User& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *The time when the user was created.
*/ inline User& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *The time when the user was modified.
*/ inline const Aws::Utils::DateTime& GetModifiedTimestamp() const{ return m_modifiedTimestamp; } /** *The time when the user was modified.
*/ inline bool ModifiedTimestampHasBeenSet() const { return m_modifiedTimestampHasBeenSet; } /** *The time when the user was modified.
*/ inline void SetModifiedTimestamp(const Aws::Utils::DateTime& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = value; } /** *The time when the user was modified.
*/ inline void SetModifiedTimestamp(Aws::Utils::DateTime&& value) { m_modifiedTimestampHasBeenSet = true; m_modifiedTimestamp = std::move(value); } /** *The time when the user was modified.
*/ inline User& WithModifiedTimestamp(const Aws::Utils::DateTime& value) { SetModifiedTimestamp(value); return *this;} /** *The time when the user was modified.
*/ inline User& WithModifiedTimestamp(Aws::Utils::DateTime&& value) { SetModifiedTimestamp(std::move(value)); return *this;} /** *The time zone ID of the user.
*/ inline const Aws::String& GetTimeZoneId() const{ return m_timeZoneId; } /** *The time zone ID of the user.
*/ inline bool TimeZoneIdHasBeenSet() const { return m_timeZoneIdHasBeenSet; } /** *The time zone ID of the user.
*/ inline void SetTimeZoneId(const Aws::String& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = value; } /** *The time zone ID of the user.
*/ inline void SetTimeZoneId(Aws::String&& value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId = std::move(value); } /** *The time zone ID of the user.
*/ inline void SetTimeZoneId(const char* value) { m_timeZoneIdHasBeenSet = true; m_timeZoneId.assign(value); } /** *The time zone ID of the user.
*/ inline User& WithTimeZoneId(const Aws::String& value) { SetTimeZoneId(value); return *this;} /** *The time zone ID of the user.
*/ inline User& WithTimeZoneId(Aws::String&& value) { SetTimeZoneId(std::move(value)); return *this;} /** *The time zone ID of the user.
*/ inline User& WithTimeZoneId(const char* value) { SetTimeZoneId(value); return *this;} /** *The locale of the user.
*/ inline const LocaleType& GetLocale() const{ return m_locale; } /** *The locale of the user.
*/ inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; } /** *The locale of the user.
*/ inline void SetLocale(const LocaleType& value) { m_localeHasBeenSet = true; m_locale = value; } /** *The locale of the user.
*/ inline void SetLocale(LocaleType&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); } /** *The locale of the user.
*/ inline User& WithLocale(const LocaleType& value) { SetLocale(value); return *this;} /** *The locale of the user.
*/ inline User& WithLocale(LocaleType&& value) { SetLocale(std::move(value)); return *this;} /** *The storage for the user.
*/ inline const UserStorageMetadata& GetStorage() const{ return m_storage; } /** *The storage for the user.
*/ inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; } /** *The storage for the user.
*/ inline void SetStorage(const UserStorageMetadata& value) { m_storageHasBeenSet = true; m_storage = value; } /** *The storage for the user.
*/ inline void SetStorage(UserStorageMetadata&& value) { m_storageHasBeenSet = true; m_storage = std::move(value); } /** *The storage for the user.
*/ inline User& WithStorage(const UserStorageMetadata& value) { SetStorage(value); return *this;} /** *The storage for the user.
*/ inline User& WithStorage(UserStorageMetadata&& value) { SetStorage(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet = false; Aws::String m_givenName; bool m_givenNameHasBeenSet = false; Aws::String m_surname; bool m_surnameHasBeenSet = false; Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_rootFolderId; bool m_rootFolderIdHasBeenSet = false; Aws::String m_recycleBinFolderId; bool m_recycleBinFolderIdHasBeenSet = false; UserStatusType m_status; bool m_statusHasBeenSet = false; UserType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_modifiedTimestamp; bool m_modifiedTimestampHasBeenSet = false; Aws::String m_timeZoneId; bool m_timeZoneIdHasBeenSet = false; LocaleType m_locale; bool m_localeHasBeenSet = false; UserStorageMetadata m_storage; bool m_storageHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws