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

Information about a user's profile in AWS CodeStar.

See Also:

* AWS * API Reference

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

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline const Aws::String& GetUserArn() const{ return m_userArn; } /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; } /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline UserProfileSummary& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline UserProfileSummary& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user in IAM.

*/ inline UserProfileSummary& WithUserArn(const char* value) { SetUserArn(value); return *this;} /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline UserProfileSummary& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline UserProfileSummary& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name of a user in AWS CodeStar. For example, this could be set to * both first and last name ("Mary Major") or a single name ("Mary"). The display * name is also used to generate the initial icon associated with the user in AWS * CodeStar projects. If spaces are included in the display name, the first * character that appears after the space will be used as the second character in * the user initial icon. The initial icon displays a maximum of two characters, so * a display name with more than one space (for example "Mary Jane Major") would * generate an initial icon using the first character and the first character after * the space ("MJ", not "MM").

*/ inline UserProfileSummary& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The email address associated with the user.

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

The email address associated with the user.

*/ inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; } /** *

The email address associated with the user.

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

The email address associated with the user.

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

The email address associated with the user.

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

The email address associated with the user.

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

The email address associated with the user.

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

The email address associated with the user.

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

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; } /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; } /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; } /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); } /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); } /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline UserProfileSummary& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;} /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline UserProfileSummary& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;} /** *

The SSH public key associated with the user in AWS CodeStar. If a project * owner allows the user remote access to project resources, this public key will * be used along with the user's private key for SSH access.

*/ inline UserProfileSummary& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;} private: Aws::String m_userArn; bool m_userArnHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_emailAddress; bool m_emailAddressHasBeenSet = false; Aws::String m_sshPublicKey; bool m_sshPublicKeyHasBeenSet = false; }; } // namespace Model } // namespace CodeStar } // namespace Aws