/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace FinSpaceData { namespace Model { class GetUserResult { public: AWS_FINSPACEDATA_API GetUserResult(); AWS_FINSPACEDATA_API GetUserResult(const Aws::AmazonWebServiceResult& result); AWS_FINSPACEDATA_API GetUserResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The unique identifier for the user account that is retrieved.

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The unique identifier for the user account that is retrieved.

*/ inline void SetUserId(const Aws::String& value) { m_userId = value; } /** *

The unique identifier for the user account that is retrieved.

*/ inline void SetUserId(Aws::String&& value) { m_userId = std::move(value); } /** *

The unique identifier for the user account that is retrieved.

*/ inline void SetUserId(const char* value) { m_userId.assign(value); } /** *

The unique identifier for the user account that is retrieved.

*/ inline GetUserResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The unique identifier for the user account that is retrieved.

*/ inline GetUserResult& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The unique identifier for the user account that is retrieved.

*/ inline GetUserResult& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

The current status of the user account.

  • * CREATING – The user account creation is in progress.

  • *

    ENABLED – The user account is created and is currently * active.

  • DISABLED – The user account is currently * inactive.

*/ inline const UserStatus& GetStatus() const{ return m_status; } /** *

The current status of the user account.

  • * CREATING – The user account creation is in progress.

  • *

    ENABLED – The user account is created and is currently * active.

  • DISABLED – The user account is currently * inactive.

*/ inline void SetStatus(const UserStatus& value) { m_status = value; } /** *

The current status of the user account.

  • * CREATING – The user account creation is in progress.

  • *

    ENABLED – The user account is created and is currently * active.

  • DISABLED – The user account is currently * inactive.

*/ inline void SetStatus(UserStatus&& value) { m_status = std::move(value); } /** *

The current status of the user account.

  • * CREATING – The user account creation is in progress.

  • *

    ENABLED – The user account is created and is currently * active.

  • DISABLED – The user account is currently * inactive.

*/ inline GetUserResult& WithStatus(const UserStatus& value) { SetStatus(value); return *this;} /** *

The current status of the user account.

  • * CREATING – The user account creation is in progress.

  • *

    ENABLED – The user account is created and is currently * active.

  • DISABLED – The user account is currently * inactive.

*/ inline GetUserResult& WithStatus(UserStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The first name of the user.

*/ inline const Aws::String& GetFirstName() const{ return m_firstName; } /** *

The first name of the user.

*/ inline void SetFirstName(const Aws::String& value) { m_firstName = value; } /** *

The first name of the user.

*/ inline void SetFirstName(Aws::String&& value) { m_firstName = std::move(value); } /** *

The first name of the user.

*/ inline void SetFirstName(const char* value) { m_firstName.assign(value); } /** *

The first name of the user.

*/ inline GetUserResult& WithFirstName(const Aws::String& value) { SetFirstName(value); return *this;} /** *

The first name of the user.

*/ inline GetUserResult& WithFirstName(Aws::String&& value) { SetFirstName(std::move(value)); return *this;} /** *

The first name of the user.

*/ inline GetUserResult& WithFirstName(const char* value) { SetFirstName(value); return *this;} /** *

The last name of the user.

*/ inline const Aws::String& GetLastName() const{ return m_lastName; } /** *

The last name of the user.

*/ inline void SetLastName(const Aws::String& value) { m_lastName = value; } /** *

The last name of the user.

*/ inline void SetLastName(Aws::String&& value) { m_lastName = std::move(value); } /** *

The last name of the user.

*/ inline void SetLastName(const char* value) { m_lastName.assign(value); } /** *

The last name of the user.

*/ inline GetUserResult& WithLastName(const Aws::String& value) { SetLastName(value); return *this;} /** *

The last name of the user.

*/ inline GetUserResult& WithLastName(Aws::String&& value) { SetLastName(std::move(value)); return *this;} /** *

The last name of the user.

*/ inline GetUserResult& WithLastName(const char* value) { SetLastName(value); return *this;} /** *

The email address that is associated with the user.

*/ inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; } /** *

The email address that is associated with the user.

*/ inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; } /** *

The email address that is associated with the user.

*/ inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); } /** *

The email address that is associated with the user.

*/ inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); } /** *

The email address that is associated with the user.

*/ inline GetUserResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;} /** *

The email address that is associated with the user.

*/ inline GetUserResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;} /** *

The email address that is associated with the user.

*/ inline GetUserResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;} /** *

Indicates the type of user.

  • SUPER_USER – A * user with permission to all the functionality and data in FinSpace.

  • *
  • APP_USER – A user with specific permissions in * FinSpace. The users are assigned permissions by adding them to a permission * group.

*/ inline const UserType& GetType() const{ return m_type; } /** *

Indicates the type of user.

  • SUPER_USER – A * user with permission to all the functionality and data in FinSpace.

  • *
  • APP_USER – A user with specific permissions in * FinSpace. The users are assigned permissions by adding them to a permission * group.

*/ inline void SetType(const UserType& value) { m_type = value; } /** *

Indicates the type of user.

  • SUPER_USER – A * user with permission to all the functionality and data in FinSpace.

  • *
  • APP_USER – A user with specific permissions in * FinSpace. The users are assigned permissions by adding them to a permission * group.

*/ inline void SetType(UserType&& value) { m_type = std::move(value); } /** *

Indicates the type of user.

  • SUPER_USER – A * user with permission to all the functionality and data in FinSpace.

  • *
  • APP_USER – A user with specific permissions in * FinSpace. The users are assigned permissions by adding them to a permission * group.

*/ inline GetUserResult& WithType(const UserType& value) { SetType(value); return *this;} /** *

Indicates the type of user.

  • SUPER_USER – A * user with permission to all the functionality and data in FinSpace.

  • *
  • APP_USER – A user with specific permissions in * FinSpace. The users are assigned permissions by adding them to a permission * group.

*/ inline GetUserResult& WithType(UserType&& value) { SetType(std::move(value)); return *this;} /** *

Indicates whether the user can use the * GetProgrammaticAccessCredentials API to obtain credentials that can * then be used to access other FinSpace Data API operations.

  • * ENABLED – The user has permissions to use the APIs.

  • *

    DISABLED – The user does not have permissions to use any * APIs.

*/ inline const ApiAccess& GetApiAccess() const{ return m_apiAccess; } /** *

Indicates whether the user can use the * GetProgrammaticAccessCredentials API to obtain credentials that can * then be used to access other FinSpace Data API operations.

  • * ENABLED – The user has permissions to use the APIs.

  • *

    DISABLED – The user does not have permissions to use any * APIs.

*/ inline void SetApiAccess(const ApiAccess& value) { m_apiAccess = value; } /** *

Indicates whether the user can use the * GetProgrammaticAccessCredentials API to obtain credentials that can * then be used to access other FinSpace Data API operations.

  • * ENABLED – The user has permissions to use the APIs.

  • *

    DISABLED – The user does not have permissions to use any * APIs.

*/ inline void SetApiAccess(ApiAccess&& value) { m_apiAccess = std::move(value); } /** *

Indicates whether the user can use the * GetProgrammaticAccessCredentials API to obtain credentials that can * then be used to access other FinSpace Data API operations.

  • * ENABLED – The user has permissions to use the APIs.

  • *

    DISABLED – The user does not have permissions to use any * APIs.

*/ inline GetUserResult& WithApiAccess(const ApiAccess& value) { SetApiAccess(value); return *this;} /** *

Indicates whether the user can use the * GetProgrammaticAccessCredentials API to obtain credentials that can * then be used to access other FinSpace Data API operations.

  • * ENABLED – The user has permissions to use the APIs.

  • *

    DISABLED – The user does not have permissions to use any * APIs.

*/ inline GetUserResult& WithApiAccess(ApiAccess&& value) { SetApiAccess(std::move(value)); return *this;} /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline const Aws::String& GetApiAccessPrincipalArn() const{ return m_apiAccessPrincipalArn; } /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline void SetApiAccessPrincipalArn(const Aws::String& value) { m_apiAccessPrincipalArn = value; } /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline void SetApiAccessPrincipalArn(Aws::String&& value) { m_apiAccessPrincipalArn = std::move(value); } /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline void SetApiAccessPrincipalArn(const char* value) { m_apiAccessPrincipalArn.assign(value); } /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline GetUserResult& WithApiAccessPrincipalArn(const Aws::String& value) { SetApiAccessPrincipalArn(value); return *this;} /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline GetUserResult& WithApiAccessPrincipalArn(Aws::String&& value) { SetApiAccessPrincipalArn(std::move(value)); return *this;} /** *

The ARN identifier of an AWS user or role that is allowed to call the * GetProgrammaticAccessCredentials API to obtain a credentials token * for a specific FinSpace user. This must be an IAM role within your FinSpace * account.

*/ inline GetUserResult& WithApiAccessPrincipalArn(const char* value) { SetApiAccessPrincipalArn(value); return *this;} /** *

The timestamp at which the user account was created in FinSpace. The value is * determined as epoch time in milliseconds.

*/ inline long long GetCreateTime() const{ return m_createTime; } /** *

The timestamp at which the user account was created in FinSpace. The value is * determined as epoch time in milliseconds.

*/ inline void SetCreateTime(long long value) { m_createTime = value; } /** *

The timestamp at which the user account was created in FinSpace. The value is * determined as epoch time in milliseconds.

*/ inline GetUserResult& WithCreateTime(long long value) { SetCreateTime(value); return *this;} /** *

Describes the last time the user account was enabled. The value is determined * as epoch time in milliseconds.

*/ inline long long GetLastEnabledTime() const{ return m_lastEnabledTime; } /** *

Describes the last time the user account was enabled. The value is determined * as epoch time in milliseconds.

*/ inline void SetLastEnabledTime(long long value) { m_lastEnabledTime = value; } /** *

Describes the last time the user account was enabled. The value is determined * as epoch time in milliseconds.

*/ inline GetUserResult& WithLastEnabledTime(long long value) { SetLastEnabledTime(value); return *this;} /** *

Describes the last time the user account was disabled. The value is * determined as epoch time in milliseconds.

*/ inline long long GetLastDisabledTime() const{ return m_lastDisabledTime; } /** *

Describes the last time the user account was disabled. The value is * determined as epoch time in milliseconds.

*/ inline void SetLastDisabledTime(long long value) { m_lastDisabledTime = value; } /** *

Describes the last time the user account was disabled. The value is * determined as epoch time in milliseconds.

*/ inline GetUserResult& WithLastDisabledTime(long long value) { SetLastDisabledTime(value); return *this;} /** *

Describes the last time the user account was updated. The value is determined * as epoch time in milliseconds.

*/ inline long long GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

Describes the last time the user account was updated. The value is determined * as epoch time in milliseconds.

*/ inline void SetLastModifiedTime(long long value) { m_lastModifiedTime = value; } /** *

Describes the last time the user account was updated. The value is determined * as epoch time in milliseconds.

*/ inline GetUserResult& WithLastModifiedTime(long long value) { SetLastModifiedTime(value); return *this;} /** *

Describes the last time that the user logged into their account. The value is * determined as epoch time in milliseconds.

*/ inline long long GetLastLoginTime() const{ return m_lastLoginTime; } /** *

Describes the last time that the user logged into their account. The value is * determined as epoch time in milliseconds.

*/ inline void SetLastLoginTime(long long value) { m_lastLoginTime = value; } /** *

Describes the last time that the user logged into their account. The value is * determined as epoch time in milliseconds.

*/ inline GetUserResult& WithLastLoginTime(long long value) { SetLastLoginTime(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetUserResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetUserResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetUserResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_userId; UserStatus m_status; Aws::String m_firstName; Aws::String m_lastName; Aws::String m_emailAddress; UserType m_type; ApiAccess m_apiAccess; Aws::String m_apiAccessPrincipalArn; long long m_createTime; long long m_lastEnabledTime; long long m_lastDisabledTime; long long m_lastModifiedTime; long long m_lastLoginTime; Aws::String m_requestId; }; } // namespace Model } // namespace FinSpaceData } // namespace Aws