336 lines
15 KiB
C++
336 lines
15 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codestar/CodeStar_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CodeStar
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_CODESTAR_API DescribeUserProfileResult
|
|
{
|
|
public:
|
|
DescribeUserProfileResult();
|
|
DescribeUserProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
DescribeUserProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline const Aws::String& GetUserArn() const{ return m_userArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline void SetUserArn(const Aws::String& value) { m_userArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the user.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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").</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; }
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); }
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); }
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The email address for the user. Optional.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKey = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKey = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetSshPublicKey(const char* value) { m_sshPublicKey.assign(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was created in AWS CodeStar, in
|
|
* timestamp format.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was created in AWS CodeStar, in
|
|
* timestamp format.</p>
|
|
*/
|
|
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was created in AWS CodeStar, in
|
|
* timestamp format.</p>
|
|
*/
|
|
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was created in AWS CodeStar, in
|
|
* timestamp format.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was created in AWS CodeStar, in
|
|
* timestamp format.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was last modified, in timestamp
|
|
* format.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; }
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was last modified, in timestamp
|
|
* format.</p>
|
|
*/
|
|
inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; }
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was last modified, in timestamp
|
|
* format.</p>
|
|
*/
|
|
inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was last modified, in timestamp
|
|
* format.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time when the user profile was last modified, in timestamp
|
|
* format.</p>
|
|
*/
|
|
inline DescribeUserProfileResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(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;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CodeStar
|
|
} // namespace Aws
|