AWS SDK for C++  0.14.3
AWS SDK for C++
GetCallerIdentityResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sts/STS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlDocument;
30 } // namespace Xml
31 } // namespace Utils
32 namespace STS
33 {
34 namespace Model
35 {
41  {
42  public:
46 
55  inline const Aws::String& GetUserId() const{ return m_userId; }
56 
65  inline void SetUserId(const Aws::String& value) { m_userId = value; }
66 
75  inline void SetUserId(Aws::String&& value) { m_userId = value; }
76 
85  inline void SetUserId(const char* value) { m_userId.assign(value); }
86 
95  inline GetCallerIdentityResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
96 
105  inline GetCallerIdentityResult& WithUserId(Aws::String&& value) { SetUserId(value); return *this;}
106 
115  inline GetCallerIdentityResult& WithUserId(const char* value) { SetUserId(value); return *this;}
116 
121  inline const Aws::String& GetAccount() const{ return m_account; }
122 
127  inline void SetAccount(const Aws::String& value) { m_account = value; }
128 
133  inline void SetAccount(Aws::String&& value) { m_account = value; }
134 
139  inline void SetAccount(const char* value) { m_account.assign(value); }
140 
145  inline GetCallerIdentityResult& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
146 
151  inline GetCallerIdentityResult& WithAccount(Aws::String&& value) { SetAccount(value); return *this;}
152 
157  inline GetCallerIdentityResult& WithAccount(const char* value) { SetAccount(value); return *this;}
158 
162  inline const Aws::String& GetArn() const{ return m_arn; }
163 
167  inline void SetArn(const Aws::String& value) { m_arn = value; }
168 
172  inline void SetArn(Aws::String&& value) { m_arn = value; }
173 
177  inline void SetArn(const char* value) { m_arn.assign(value); }
178 
182  inline GetCallerIdentityResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
183 
187  inline GetCallerIdentityResult& WithArn(Aws::String&& value) { SetArn(value); return *this;}
188 
192  inline GetCallerIdentityResult& WithArn(const char* value) { SetArn(value); return *this;}
193 
194 
195  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
196 
197 
198  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
199 
200 
201  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
202 
203 
204  inline GetCallerIdentityResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
205 
206 
207  inline GetCallerIdentityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
208 
209  private:
210  Aws::String m_userId;
211  Aws::String m_account;
212  Aws::String m_arn;
213  ResponseMetadata m_responseMetadata;
214  };
215 
216 } // namespace Model
217 } // namespace STS
218 } // namespace Aws
void SetResponseMetadata(const ResponseMetadata &value)
#define AWS_STS_API
Definition: STS_EXPORTS.h:37
GetCallerIdentityResult & WithUserId(const Aws::String &value)
const ResponseMetadata & GetResponseMetadata() const
GetCallerIdentityResult & WithUserId(const char *value)
GetCallerIdentityResult & WithAccount(Aws::String &&value)
GetCallerIdentityResult & WithArn(const char *value)
GetCallerIdentityResult & WithAccount(const char *value)
GetCallerIdentityResult & WithArn(Aws::String &&value)
GetCallerIdentityResult & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetCallerIdentityResult & WithResponseMetadata(const ResponseMetadata &value)
void SetResponseMetadata(ResponseMetadata &&value)
GetCallerIdentityResult & WithUserId(Aws::String &&value)
JSON (JavaScript Object Notation).
GetCallerIdentityResult & WithAccount(const Aws::String &value)
GetCallerIdentityResult & WithResponseMetadata(ResponseMetadata &&value)