AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssumedRoleUser.h
1
6#pragma once
7#include <aws/sts/STS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace STS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_STS_API AssumedRoleUser();
36 AWS_STS_API AssumedRoleUser(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_STS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_STS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline const Aws::String& GetAssumedRoleId() const{ return m_assumedRoleId; }
50 inline bool AssumedRoleIdHasBeenSet() const { return m_assumedRoleIdHasBeenSet; }
51 inline void SetAssumedRoleId(const Aws::String& value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId = value; }
52 inline void SetAssumedRoleId(Aws::String&& value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId = std::move(value); }
53 inline void SetAssumedRoleId(const char* value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId.assign(value); }
54 inline AssumedRoleUser& WithAssumedRoleId(const Aws::String& value) { SetAssumedRoleId(value); return *this;}
55 inline AssumedRoleUser& WithAssumedRoleId(Aws::String&& value) { SetAssumedRoleId(std::move(value)); return *this;}
56 inline AssumedRoleUser& WithAssumedRoleId(const char* value) { SetAssumedRoleId(value); return *this;}
58
60
67 inline const Aws::String& GetArn() const{ return m_arn; }
68 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
69 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
70 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
71 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
72 inline AssumedRoleUser& WithArn(const Aws::String& value) { SetArn(value); return *this;}
73 inline AssumedRoleUser& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
74 inline AssumedRoleUser& WithArn(const char* value) { SetArn(value); return *this;}
76 private:
77
78 Aws::String m_assumedRoleId;
79 bool m_assumedRoleIdHasBeenSet = false;
80
81 Aws::String m_arn;
82 bool m_arnHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace STS
87} // namespace Aws
AssumedRoleUser & WithAssumedRoleId(const Aws::String &value)
void SetArn(const Aws::String &value)
AWS_STS_API AssumedRoleUser(const Aws::Utils::Xml::XmlNode &xmlNode)
AssumedRoleUser & WithArn(const char *value)
void SetAssumedRoleId(const Aws::String &value)
AWS_STS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_STS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AssumedRoleUser & WithAssumedRoleId(const char *value)
AssumedRoleUser & WithAssumedRoleId(Aws::String &&value)
AssumedRoleUser & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
const Aws::String & GetAssumedRoleId() const
void SetArn(Aws::String &&value)
AWS_STS_API AssumedRoleUser & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AssumedRoleUser & WithArn(const Aws::String &value)
void SetAssumedRoleId(Aws::String &&value)
void SetArn(const char *value)
void SetAssumedRoleId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream