AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCallerIdentityResult.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sts/model/ResponseMetadata.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Xml
20{
21 class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace STS
25{
26namespace Model
27{
36 {
37 public:
41
42
44
52 inline const Aws::String& GetUserId() const{ return m_userId; }
53 inline void SetUserId(const Aws::String& value) { m_userId = value; }
54 inline void SetUserId(Aws::String&& value) { m_userId = std::move(value); }
55 inline void SetUserId(const char* value) { m_userId.assign(value); }
56 inline GetCallerIdentityResult& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
57 inline GetCallerIdentityResult& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
58 inline GetCallerIdentityResult& WithUserId(const char* value) { SetUserId(value); return *this;}
60
62
66 inline const Aws::String& GetAccount() const{ return m_account; }
67 inline void SetAccount(const Aws::String& value) { m_account = value; }
68 inline void SetAccount(Aws::String&& value) { m_account = std::move(value); }
69 inline void SetAccount(const char* value) { m_account.assign(value); }
70 inline GetCallerIdentityResult& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
71 inline GetCallerIdentityResult& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
72 inline GetCallerIdentityResult& WithAccount(const char* value) { SetAccount(value); return *this;}
74
76
79 inline const Aws::String& GetArn() const{ return m_arn; }
80 inline void SetArn(const Aws::String& value) { m_arn = value; }
81 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
82 inline void SetArn(const char* value) { m_arn.assign(value); }
83 inline GetCallerIdentityResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
84 inline GetCallerIdentityResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
85 inline GetCallerIdentityResult& WithArn(const char* value) { SetArn(value); return *this;}
87
89
90 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
91 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
92 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
94 inline GetCallerIdentityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_userId;
99
100 Aws::String m_account;
101
102 Aws::String m_arn;
103
104 ResponseMetadata m_responseMetadata;
105 };
106
107} // namespace Model
108} // namespace STS
109} // namespace Aws
GetCallerIdentityResult & WithResponseMetadata(ResponseMetadata &&value)
GetCallerIdentityResult & WithAccount(Aws::String &&value)
const ResponseMetadata & GetResponseMetadata() const
GetCallerIdentityResult & WithUserId(const Aws::String &value)
GetCallerIdentityResult & WithResponseMetadata(const ResponseMetadata &value)
GetCallerIdentityResult & WithArn(const char *value)
AWS_STS_API GetCallerIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadata &&value)
GetCallerIdentityResult & WithArn(const Aws::String &value)
AWS_STS_API GetCallerIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetCallerIdentityResult & WithAccount(const Aws::String &value)
GetCallerIdentityResult & WithUserId(const char *value)
GetCallerIdentityResult & WithArn(Aws::String &&value)
void SetResponseMetadata(const ResponseMetadata &value)
GetCallerIdentityResult & WithAccount(const char *value)
GetCallerIdentityResult & WithUserId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument