AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ScopedSession.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sts/STS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace STS {
20namespace Model {
21
30 public:
31 AWS_STS_API ScopedSession() = default;
32 AWS_STS_API ScopedSession(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_STS_API ScopedSession& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_STS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_STS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetScopedSessionId() const { return m_scopedSessionId; }
44 inline bool ScopedSessionIdHasBeenSet() const { return m_scopedSessionIdHasBeenSet; }
45 template <typename ScopedSessionIdT = Aws::String>
46 void SetScopedSessionId(ScopedSessionIdT&& value) {
47 m_scopedSessionIdHasBeenSet = true;
48 m_scopedSessionId = std::forward<ScopedSessionIdT>(value);
49 }
50 template <typename ScopedSessionIdT = Aws::String>
51 ScopedSession& WithScopedSessionId(ScopedSessionIdT&& value) {
52 SetScopedSessionId(std::forward<ScopedSessionIdT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template <typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) {
68 m_arnHasBeenSet = true;
69 m_arn = std::forward<ArnT>(value);
70 }
71 template <typename ArnT = Aws::String>
72 ScopedSession& WithArn(ArnT&& value) {
73 SetArn(std::forward<ArnT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_scopedSessionId;
79
80 Aws::String m_arn;
81 bool m_scopedSessionIdHasBeenSet = false;
82 bool m_arnHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace STS
87} // namespace Aws
AWS_STS_API ScopedSession & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_STS_API ScopedSession(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetScopedSessionId(ScopedSessionIdT &&value)
ScopedSession & WithArn(ArnT &&value)
AWS_STS_API ScopedSession()=default
AWS_STS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetScopedSessionId() const
const Aws::String & GetArn() const
ScopedSession & WithScopedSessionId(ScopedSessionIdT &&value)
AWS_STS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream