AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProvidedContext.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 ProvidedContext() = default;
32 AWS_STS_API ProvidedContext(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& GetProviderArn() const { return m_providerArn; }
44 inline bool ProviderArnHasBeenSet() const { return m_providerArnHasBeenSet; }
45 template <typename ProviderArnT = Aws::String>
46 void SetProviderArn(ProviderArnT&& value) {
47 m_providerArnHasBeenSet = true;
48 m_providerArn = std::forward<ProviderArnT>(value);
49 }
50 template <typename ProviderArnT = Aws::String>
51 ProvidedContext& WithProviderArn(ProviderArnT&& value) {
52 SetProviderArn(std::forward<ProviderArnT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetContextAssertion() const { return m_contextAssertion; }
64 inline bool ContextAssertionHasBeenSet() const { return m_contextAssertionHasBeenSet; }
65 template <typename ContextAssertionT = Aws::String>
66 void SetContextAssertion(ContextAssertionT&& value) {
67 m_contextAssertionHasBeenSet = true;
68 m_contextAssertion = std::forward<ContextAssertionT>(value);
69 }
70 template <typename ContextAssertionT = Aws::String>
71 ProvidedContext& WithContextAssertion(ContextAssertionT&& value) {
72 SetContextAssertion(std::forward<ContextAssertionT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_providerArn;
78
79 Aws::String m_contextAssertion;
80 bool m_providerArnHasBeenSet = false;
81 bool m_contextAssertionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace STS
86} // namespace Aws
AWS_STS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetProviderArn(ProviderArnT &&value)
void SetContextAssertion(ContextAssertionT &&value)
AWS_STS_API ProvidedContext & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_STS_API ProvidedContext(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_STS_API ProvidedContext()=default
AWS_STS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetContextAssertion() const
const Aws::String & GetProviderArn() const
ProvidedContext & WithContextAssertion(ContextAssertionT &&value)
ProvidedContext & WithProviderArn(ProviderArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream