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

The Amazon Resource Name (ARN) of the user.

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

The Amazon Resource Name (ARN) of the user.

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

The Amazon Resource Name (ARN) of the user.

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

The Amazon Resource Name (ARN) of the user.

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

The Amazon Resource Name (ARN) of the user.

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

The Amazon Resource Name (ARN) of the user.

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

The Amazon Resource Name (ARN) of the user.

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

The display name shown for the user in AWS CodeStar projects. 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 shown for the user in AWS CodeStar projects. 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_displayName = value; } /** *

The display name shown for the user in AWS CodeStar projects. 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_displayName = std::move(value); } /** *

The display name shown for the user in AWS CodeStar projects. 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_displayName.assign(value); } /** *

The display name shown for the user in AWS CodeStar projects. 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 DescribeUserProfileResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name shown for the user in AWS CodeStar projects. 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 DescribeUserProfileResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name shown for the user in AWS CodeStar projects. 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 DescribeUserProfileResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The email address for the user. Optional.

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

The email address for the user. Optional.

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

The email address for the user. Optional.

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

The email address for the user. Optional.

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

The email address for the user. Optional.

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

The email address for the user. Optional.

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

The email address for the user. Optional.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

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

The SSH public key associated with the user. This SSH public key is * associated with the user profile, and can be used in conjunction with the * associated private key for access to project resources, such as Amazon EC2 * instances, if a project owner grants remote access to those resources.

*/ inline DescribeUserProfileResult& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;} /** *

The date and time when the user profile was created in AWS CodeStar, in * timestamp format.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The date and time when the user profile was created in AWS CodeStar, in * timestamp format.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; } /** *

The date and time when the user profile was created in AWS CodeStar, in * timestamp format.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); } /** *

The date and time when the user profile was created in AWS CodeStar, in * timestamp format.

*/ inline DescribeUserProfileResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The date and time when the user profile was created in AWS CodeStar, in * timestamp format.

*/ inline DescribeUserProfileResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The date and time when the user profile was last modified, in timestamp * format.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; } /** *

The date and time when the user profile was last modified, in timestamp * format.

*/ inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; } /** *

The date and time when the user profile was last modified, in timestamp * format.

*/ inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); } /** *

The date and time when the user profile was last modified, in timestamp * format.

*/ inline DescribeUserProfileResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;} /** *

The date and time when the user profile was last modified, in timestamp * format.

*/ inline DescribeUserProfileResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(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 DescribeUserProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeUserProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeUserProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_userArn; Aws::String m_displayName; Aws::String m_emailAddress; Aws::String m_sshPublicKey; Aws::Utils::DateTime m_createdTimestamp; Aws::Utils::DateTime m_lastModifiedTimestamp; Aws::String m_requestId; }; } // namespace Model } // namespace CodeStar } // namespace Aws