AWS SDK for C++  1.9.106
AWS SDK for C++
AssumedRoleUser.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 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace STS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
48  inline const Aws::String& GetAssumedRoleId() const{ return m_assumedRoleId; }
49 
55  inline bool AssumedRoleIdHasBeenSet() const { return m_assumedRoleIdHasBeenSet; }
56 
62  inline void SetAssumedRoleId(const Aws::String& value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId = value; }
63 
69  inline void SetAssumedRoleId(Aws::String&& value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId = std::move(value); }
70 
76  inline void SetAssumedRoleId(const char* value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId.assign(value); }
77 
83  inline AssumedRoleUser& WithAssumedRoleId(const Aws::String& value) { SetAssumedRoleId(value); return *this;}
84 
90  inline AssumedRoleUser& WithAssumedRoleId(Aws::String&& value) { SetAssumedRoleId(std::move(value)); return *this;}
91 
97  inline AssumedRoleUser& WithAssumedRoleId(const char* value) { SetAssumedRoleId(value); return *this;}
98 
99 
107  inline const Aws::String& GetArn() const{ return m_arn; }
108 
116  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
117 
125  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
126 
134  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
135 
143  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
144 
152  inline AssumedRoleUser& WithArn(const Aws::String& value) { SetArn(value); return *this;}
153 
161  inline AssumedRoleUser& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
162 
170  inline AssumedRoleUser& WithArn(const char* value) { SetArn(value); return *this;}
171 
172  private:
173 
174  Aws::String m_assumedRoleId;
175  bool m_assumedRoleIdHasBeenSet;
176 
177  Aws::String m_arn;
178  bool m_arnHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace STS
183 } // namespace Aws
Aws::STS::Model::AssumedRoleUser::AssumedRoleUser
AssumedRoleUser(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::STS::Model::AssumedRoleUser::AssumedRoleIdHasBeenSet
bool AssumedRoleIdHasBeenSet() const
Definition: AssumedRoleUser.h:55
Aws::STS::Model::AssumedRoleUser::WithAssumedRoleId
AssumedRoleUser & WithAssumedRoleId(const Aws::String &value)
Definition: AssumedRoleUser.h:83
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::AssumedRoleUser::WithAssumedRoleId
AssumedRoleUser & WithAssumedRoleId(Aws::String &&value)
Definition: AssumedRoleUser.h:90
Aws::STS::Model::AssumedRoleUser::SetArn
void SetArn(const char *value)
Definition: AssumedRoleUser.h:143
Aws::STS::Model::AssumedRoleUser::WithArn
AssumedRoleUser & WithArn(const char *value)
Definition: AssumedRoleUser.h:170
AWSStreamFwd.h
Aws::STS::Model::AssumedRoleUser::WithAssumedRoleId
AssumedRoleUser & WithAssumedRoleId(const char *value)
Definition: AssumedRoleUser.h:97
Aws::STS::Model::AssumedRoleUser::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: AssumedRoleUser.h:116
Aws::STS::Model::AssumedRoleUser::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::STS::Model::AssumedRoleUser::SetAssumedRoleId
void SetAssumedRoleId(const Aws::String &value)
Definition: AssumedRoleUser.h:62
Aws::STS::Model::AssumedRoleUser::SetArn
void SetArn(const Aws::String &value)
Definition: AssumedRoleUser.h:125
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
STS_EXPORTS.h
Aws::STS::Model::AssumedRoleUser::SetArn
void SetArn(Aws::String &&value)
Definition: AssumedRoleUser.h:134
Aws::STS::Model::AssumedRoleUser::AssumedRoleUser
AssumedRoleUser()
AWSString.h
Aws::STS::Model::AssumedRoleUser::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::STS::Model::AssumedRoleUser::SetAssumedRoleId
void SetAssumedRoleId(const char *value)
Definition: AssumedRoleUser.h:76
Aws::STS::Model::AssumedRoleUser::WithArn
AssumedRoleUser & WithArn(const Aws::String &value)
Definition: AssumedRoleUser.h:152
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::AssumedRoleUser::GetAssumedRoleId
const Aws::String & GetAssumedRoleId() const
Definition: AssumedRoleUser.h:48
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::STS::Model::AssumedRoleUser::WithArn
AssumedRoleUser & WithArn(Aws::String &&value)
Definition: AssumedRoleUser.h:161
Aws::STS::Model::AssumedRoleUser
Definition: AssumedRoleUser.h:33
Aws::STS::Model::AssumedRoleUser::SetAssumedRoleId
void SetAssumedRoleId(Aws::String &&value)
Definition: AssumedRoleUser.h:69
Aws::STS::Model::AssumedRoleUser::operator=
AssumedRoleUser & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::STS::Model::AssumedRoleUser::GetArn
const Aws::String & GetArn() const
Definition: AssumedRoleUser.h:107