AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeCatalyst {
24namespace Model {
26 public:
27 AWS_CODECATALYST_API GetUserDetailsResult() = default;
30
32
35 inline const Aws::String& GetUserId() const { return m_userId; }
36 template <typename UserIdT = Aws::String>
37 void SetUserId(UserIdT&& value) {
38 m_userIdHasBeenSet = true;
39 m_userId = std::forward<UserIdT>(value);
40 }
41 template <typename UserIdT = Aws::String>
42 GetUserDetailsResult& WithUserId(UserIdT&& value) {
43 SetUserId(std::forward<UserIdT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetUserName() const { return m_userName; }
53 template <typename UserNameT = Aws::String>
54 void SetUserName(UserNameT&& value) {
55 m_userNameHasBeenSet = true;
56 m_userName = std::forward<UserNameT>(value);
57 }
58 template <typename UserNameT = Aws::String>
59 GetUserDetailsResult& WithUserName(UserNameT&& value) {
60 SetUserName(std::forward<UserNameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDisplayName() const { return m_displayName; }
70 template <typename DisplayNameT = Aws::String>
71 void SetDisplayName(DisplayNameT&& value) {
72 m_displayNameHasBeenSet = true;
73 m_displayName = std::forward<DisplayNameT>(value);
74 }
75 template <typename DisplayNameT = Aws::String>
76 GetUserDetailsResult& WithDisplayName(DisplayNameT&& value) {
77 SetDisplayName(std::forward<DisplayNameT>(value));
78 return *this;
79 }
81
83
86 inline const EmailAddress& GetPrimaryEmail() const { return m_primaryEmail; }
87 template <typename PrimaryEmailT = EmailAddress>
88 void SetPrimaryEmail(PrimaryEmailT&& value) {
89 m_primaryEmailHasBeenSet = true;
90 m_primaryEmail = std::forward<PrimaryEmailT>(value);
91 }
92 template <typename PrimaryEmailT = EmailAddress>
93 GetUserDetailsResult& WithPrimaryEmail(PrimaryEmailT&& value) {
94 SetPrimaryEmail(std::forward<PrimaryEmailT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetVersion() const { return m_version; }
104 template <typename VersionT = Aws::String>
105 void SetVersion(VersionT&& value) {
106 m_versionHasBeenSet = true;
107 m_version = std::forward<VersionT>(value);
108 }
109 template <typename VersionT = Aws::String>
111 SetVersion(std::forward<VersionT>(value));
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
125 GetUserDetailsResult& WithRequestId(RequestIdT&& value) {
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
131
132 private:
133 Aws::String m_userId;
134
135 Aws::String m_userName;
136
137 Aws::String m_displayName;
138
139 EmailAddress m_primaryEmail;
140
141 Aws::String m_version;
142
143 Aws::String m_requestId;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_userIdHasBeenSet = false;
146 bool m_userNameHasBeenSet = false;
147 bool m_displayNameHasBeenSet = false;
148 bool m_primaryEmailHasBeenSet = false;
149 bool m_versionHasBeenSet = false;
150 bool m_requestIdHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace CodeCatalyst
155} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetUserDetailsResult & WithPrimaryEmail(PrimaryEmailT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue