AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
TrustedIdentityPropagationContext.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/sts/STS_EXPORTS.h>
9#include <aws/sts/model/OriginIdentity.h>
10#include <aws/sts/model/TransactionContext.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
31 public:
32 AWS_STS_API TrustedIdentityPropagationContext() = default;
35
36 AWS_STS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_STS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const OriginIdentity& GetOriginIdentity() const { return m_originIdentity; }
44 inline bool OriginIdentityHasBeenSet() const { return m_originIdentityHasBeenSet; }
45 template <typename OriginIdentityT = OriginIdentity>
46 void SetOriginIdentity(OriginIdentityT&& value) {
47 m_originIdentityHasBeenSet = true;
48 m_originIdentity = std::forward<OriginIdentityT>(value);
49 }
50 template <typename OriginIdentityT = OriginIdentity>
52 SetOriginIdentity(std::forward<OriginIdentityT>(value));
53 return *this;
54 }
56
58
61 inline const TransactionContext& GetTransactionContext() const { return m_transactionContext; }
62 inline bool TransactionContextHasBeenSet() const { return m_transactionContextHasBeenSet; }
63 template <typename TransactionContextT = TransactionContext>
64 void SetTransactionContext(TransactionContextT&& value) {
65 m_transactionContextHasBeenSet = true;
66 m_transactionContext = std::forward<TransactionContextT>(value);
67 }
68 template <typename TransactionContextT = TransactionContext>
70 SetTransactionContext(std::forward<TransactionContextT>(value));
71 return *this;
72 }
74 private:
75 OriginIdentity m_originIdentity;
76
77 TransactionContext m_transactionContext;
78 bool m_originIdentityHasBeenSet = false;
79 bool m_transactionContextHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace STS
84} // namespace Aws
AWS_STS_API TrustedIdentityPropagationContext & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_STS_API TrustedIdentityPropagationContext(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustedIdentityPropagationContext & WithTransactionContext(TransactionContextT &&value)
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
TrustedIdentityPropagationContext & WithOriginIdentity(OriginIdentityT &&value)
std::basic_ostream< char, std::char_traits< char > > OStream