AWS SDK for C++  1.9.106
AWS SDK for C++
GetCallerIdentityResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace STS
25 {
26 namespace Model
27 {
36  {
37  public:
41 
42 
51  inline const Aws::String& GetUserId() const{ return m_userId; }
52 
61  inline void SetUserId(const Aws::String& value) { m_userId = value; }
62 
71  inline void SetUserId(Aws::String&& value) { m_userId = std::move(value); }
72 
81  inline void SetUserId(const char* value) { m_userId.assign(value); }
82 
91  inline GetCallerIdentityResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
92 
101  inline GetCallerIdentityResult& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
102 
111  inline GetCallerIdentityResult& WithUserId(const char* value) { SetUserId(value); return *this;}
112 
113 
118  inline const Aws::String& GetAccount() const{ return m_account; }
119 
124  inline void SetAccount(const Aws::String& value) { m_account = value; }
125 
130  inline void SetAccount(Aws::String&& value) { m_account = std::move(value); }
131 
136  inline void SetAccount(const char* value) { m_account.assign(value); }
137 
142  inline GetCallerIdentityResult& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
143 
148  inline GetCallerIdentityResult& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
149 
154  inline GetCallerIdentityResult& WithAccount(const char* value) { SetAccount(value); return *this;}
155 
156 
160  inline const Aws::String& GetArn() const{ return m_arn; }
161 
165  inline void SetArn(const Aws::String& value) { m_arn = value; }
166 
170  inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
171 
175  inline void SetArn(const char* value) { m_arn.assign(value); }
176 
180  inline GetCallerIdentityResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
181 
185  inline GetCallerIdentityResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
186 
190  inline GetCallerIdentityResult& WithArn(const char* value) { SetArn(value); return *this;}
191 
192 
193 
194  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
195 
196 
197  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
198 
199 
200  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
201 
202 
203  inline GetCallerIdentityResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
204 
205 
206  inline GetCallerIdentityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
207 
208  private:
209 
210  Aws::String m_userId;
211 
212  Aws::String m_account;
213 
214  Aws::String m_arn;
215 
216  ResponseMetadata m_responseMetadata;
217  };
218 
219 } // namespace Model
220 } // namespace STS
221 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::STS::Model::GetCallerIdentityResult::SetAccount
void SetAccount(Aws::String &&value)
Definition: GetCallerIdentityResult.h:130
Aws::STS::Model::GetCallerIdentityResult::SetUserId
void SetUserId(const Aws::String &value)
Definition: GetCallerIdentityResult.h:61
Aws::STS::Model::GetCallerIdentityResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: GetCallerIdentityResult.h:194
Aws::STS::Model::GetCallerIdentityResult::WithUserId
GetCallerIdentityResult & WithUserId(const char *value)
Definition: GetCallerIdentityResult.h:111
Aws::STS::Model::GetCallerIdentityResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: GetCallerIdentityResult.h:200
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::GetCallerIdentityResult::SetAccount
void SetAccount(const char *value)
Definition: GetCallerIdentityResult.h:136
Aws::STS::Model::GetCallerIdentityResult::GetUserId
const Aws::String & GetUserId() const
Definition: GetCallerIdentityResult.h:51
Aws::STS::Model::GetCallerIdentityResult::operator=
GetCallerIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::GetCallerIdentityResult::GetArn
const Aws::String & GetArn() const
Definition: GetCallerIdentityResult.h:160
Aws::STS::Model::GetCallerIdentityResult::WithAccount
GetCallerIdentityResult & WithAccount(Aws::String &&value)
Definition: GetCallerIdentityResult.h:148
Aws::STS::Model::GetCallerIdentityResult::SetUserId
void SetUserId(Aws::String &&value)
Definition: GetCallerIdentityResult.h:71
Aws::STS::Model::GetCallerIdentityResult::SetArn
void SetArn(const Aws::String &value)
Definition: GetCallerIdentityResult.h:165
Aws::STS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::STS::Model::GetCallerIdentityResult::WithUserId
GetCallerIdentityResult & WithUserId(const Aws::String &value)
Definition: GetCallerIdentityResult.h:91
Aws::STS::Model::GetCallerIdentityResult::SetAccount
void SetAccount(const Aws::String &value)
Definition: GetCallerIdentityResult.h:124
ResponseMetadata.h
Aws::STS::Model::GetCallerIdentityResult::WithUserId
GetCallerIdentityResult & WithUserId(Aws::String &&value)
Definition: GetCallerIdentityResult.h:101
STS_EXPORTS.h
Aws::STS::Model::GetCallerIdentityResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: GetCallerIdentityResult.h:197
Aws::STS::Model::GetCallerIdentityResult::GetAccount
const Aws::String & GetAccount() const
Definition: GetCallerIdentityResult.h:118
Aws::STS::Model::GetCallerIdentityResult::WithArn
GetCallerIdentityResult & WithArn(Aws::String &&value)
Definition: GetCallerIdentityResult.h:185
AWSString.h
Aws::STS::Model::GetCallerIdentityResult::WithArn
GetCallerIdentityResult & WithArn(const char *value)
Definition: GetCallerIdentityResult.h:190
Aws::STS::Model::GetCallerIdentityResult::SetUserId
void SetUserId(const char *value)
Definition: GetCallerIdentityResult.h:81
Aws::STS::Model::GetCallerIdentityResult::WithAccount
GetCallerIdentityResult & WithAccount(const Aws::String &value)
Definition: GetCallerIdentityResult.h:142
Aws::STS::Model::GetCallerIdentityResult::SetArn
void SetArn(Aws::String &&value)
Definition: GetCallerIdentityResult.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::GetCallerIdentityResult::SetArn
void SetArn(const char *value)
Definition: GetCallerIdentityResult.h:175
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::GetCallerIdentityResult::GetCallerIdentityResult
GetCallerIdentityResult()
Aws::STS::Model::GetCallerIdentityResult::WithArn
GetCallerIdentityResult & WithArn(const Aws::String &value)
Definition: GetCallerIdentityResult.h:180
Aws::STS::Model::GetCallerIdentityResult::GetCallerIdentityResult
GetCallerIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::STS::Model::GetCallerIdentityResult::WithResponseMetadata
GetCallerIdentityResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: GetCallerIdentityResult.h:203
Aws::STS::Model::GetCallerIdentityResult::WithResponseMetadata
GetCallerIdentityResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: GetCallerIdentityResult.h:206
Aws::STS::Model::GetCallerIdentityResult
Definition: GetCallerIdentityResult.h:36
Aws::STS::Model::GetCallerIdentityResult::WithAccount
GetCallerIdentityResult & WithAccount(const char *value)
Definition: GetCallerIdentityResult.h:154