AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GetUserDetailsResult.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/EmailAddress.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeCatalyst {
23namespace Model {
25 public:
26 AWS_CODECATALYST_API GetUserDetailsResult() = default;
29
31
34 inline const Aws::String& GetUserId() const { return m_userId; }
35 template <typename UserIdT = Aws::String>
36 void SetUserId(UserIdT&& value) {
37 m_userIdHasBeenSet = true;
38 m_userId = std::forward<UserIdT>(value);
39 }
40 template <typename UserIdT = Aws::String>
41 GetUserDetailsResult& WithUserId(UserIdT&& value) {
42 SetUserId(std::forward<UserIdT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetUserName() const { return m_userName; }
52 template <typename UserNameT = Aws::String>
53 void SetUserName(UserNameT&& value) {
54 m_userNameHasBeenSet = true;
55 m_userName = std::forward<UserNameT>(value);
56 }
57 template <typename UserNameT = Aws::String>
58 GetUserDetailsResult& WithUserName(UserNameT&& value) {
59 SetUserName(std::forward<UserNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetDisplayName() const { return m_displayName; }
69 template <typename DisplayNameT = Aws::String>
70 void SetDisplayName(DisplayNameT&& value) {
71 m_displayNameHasBeenSet = true;
72 m_displayName = std::forward<DisplayNameT>(value);
73 }
74 template <typename DisplayNameT = Aws::String>
75 GetUserDetailsResult& WithDisplayName(DisplayNameT&& value) {
76 SetDisplayName(std::forward<DisplayNameT>(value));
77 return *this;
78 }
80
82
85 inline const EmailAddress& GetPrimaryEmail() const { return m_primaryEmail; }
86 template <typename PrimaryEmailT = EmailAddress>
87 void SetPrimaryEmail(PrimaryEmailT&& value) {
88 m_primaryEmailHasBeenSet = true;
89 m_primaryEmail = std::forward<PrimaryEmailT>(value);
90 }
91 template <typename PrimaryEmailT = EmailAddress>
92 GetUserDetailsResult& WithPrimaryEmail(PrimaryEmailT&& value) {
93 SetPrimaryEmail(std::forward<PrimaryEmailT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetVersion() const { return m_version; }
103 template <typename VersionT = Aws::String>
104 void SetVersion(VersionT&& value) {
105 m_versionHasBeenSet = true;
106 m_version = std::forward<VersionT>(value);
107 }
108 template <typename VersionT = Aws::String>
110 SetVersion(std::forward<VersionT>(value));
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
124 GetUserDetailsResult& WithRequestId(RequestIdT&& value) {
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_userId;
131 bool m_userIdHasBeenSet = false;
132
133 Aws::String m_userName;
134 bool m_userNameHasBeenSet = false;
135
136 Aws::String m_displayName;
137 bool m_displayNameHasBeenSet = false;
138
139 EmailAddress m_primaryEmail;
140 bool m_primaryEmailHasBeenSet = false;
141
142 Aws::String m_version;
143 bool m_versionHasBeenSet = false;
144
145 Aws::String m_requestId;
146 bool m_requestIdHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace CodeCatalyst
151} // namespace Aws
GetUserDetailsResult & WithUserId(UserIdT &&value)
AWS_CODECATALYST_API GetUserDetailsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUserDetailsResult & WithUserName(UserNameT &&value)
GetUserDetailsResult & WithDisplayName(DisplayNameT &&value)
GetUserDetailsResult & WithVersion(VersionT &&value)
AWS_CODECATALYST_API GetUserDetailsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUserDetailsResult & WithRequestId(RequestIdT &&value)
AWS_CODECATALYST_API GetUserDetailsResult()=default
GetUserDetailsResult & WithPrimaryEmail(PrimaryEmailT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue