AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
TransactionContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sts/STS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace STS {
21namespace Model {
22
30 public:
31 AWS_STS_API TransactionContext() = default;
32 AWS_STS_API TransactionContext(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
48 inline const Aws::Map<Aws::String, Aws::String>& GetIdentityProvider() const { return m_identityProvider; }
49 inline bool IdentityProviderHasBeenSet() const { return m_identityProviderHasBeenSet; }
50 template <typename IdentityProviderT = Aws::Map<Aws::String, Aws::String>>
51 void SetIdentityProvider(IdentityProviderT&& value) {
52 m_identityProviderHasBeenSet = true;
53 m_identityProvider = std::forward<IdentityProviderT>(value);
54 }
55 template <typename IdentityProviderT = Aws::Map<Aws::String, Aws::String>>
56 TransactionContext& WithIdentityProvider(IdentityProviderT&& value) {
57 SetIdentityProvider(std::forward<IdentityProviderT>(value));
58 return *this;
59 }
60 template <typename IdentityProviderKeyT = Aws::String, typename IdentityProviderValueT = Aws::String>
61 TransactionContext& AddIdentityProvider(IdentityProviderKeyT&& key, IdentityProviderValueT&& value) {
62 m_identityProviderHasBeenSet = true;
63 m_identityProvider.emplace(std::forward<IdentityProviderKeyT>(key), std::forward<IdentityProviderValueT>(value));
64 return *this;
65 }
67 private:
68 Aws::Map<Aws::String, Aws::String> m_identityProvider;
69 bool m_identityProviderHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace STS
74} // namespace Aws
AWS_STS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_STS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Map< Aws::String, Aws::String > & GetIdentityProvider() const
TransactionContext & AddIdentityProvider(IdentityProviderKeyT &&key, IdentityProviderValueT &&value)
void SetIdentityProvider(IdentityProviderT &&value)
AWS_STS_API TransactionContext(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_STS_API TransactionContext & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TransactionContext & WithIdentityProvider(IdentityProviderT &&value)
AWS_STS_API TransactionContext()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_ostream< char, std::char_traits< char > > OStream