/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCatalyst { namespace Model { /** *

Information about a user whose activity is recorded in an event for a * space.

See Also:

AWS * API Reference

*/ class UserIdentity { public: AWS_CODECATALYST_API UserIdentity(); AWS_CODECATALYST_API UserIdentity(Aws::Utils::Json::JsonView jsonValue); AWS_CODECATALYST_API UserIdentity& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The role assigned to the user in a Amazon CodeCatalyst space or project when * the event occurred.

*/ inline const UserType& GetUserType() const{ return m_userType; } /** *

The role assigned to the user in a Amazon CodeCatalyst space or project when * the event occurred.

*/ inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; } /** *

The role assigned to the user in a Amazon CodeCatalyst space or project when * the event occurred.

*/ inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; } /** *

The role assigned to the user in a Amazon CodeCatalyst space or project when * the event occurred.

*/ inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); } /** *

The role assigned to the user in a Amazon CodeCatalyst space or project when * the event occurred.

*/ inline UserIdentity& WithUserType(const UserType& value) { SetUserType(value); return *this;} /** *

The role assigned to the user in a Amazon CodeCatalyst space or project when * the event occurred.

*/ inline UserIdentity& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;} /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline UserIdentity& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline UserIdentity& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *

The ID of the Amazon CodeCatalyst service principal.

*/ inline UserIdentity& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline UserIdentity& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline UserIdentity& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The display name of the user in Amazon CodeCatalyst.

*/ inline UserIdentity& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline UserIdentity& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline UserIdentity& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account number of the user in Amazon Web Services, if * any.

*/ inline UserIdentity& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} private: UserType m_userType; bool m_userTypeHasBeenSet = false; Aws::String m_principalId; bool m_principalIdHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws