AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProvidedContext.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
34 {
35 public:
36 AWS_STS_API ProvidedContext() = default;
37 AWS_STS_API ProvidedContext(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_STS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_STS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetProviderArn() const { return m_providerArn; }
50 inline bool ProviderArnHasBeenSet() const { return m_providerArnHasBeenSet; }
51 template<typename ProviderArnT = Aws::String>
52 void SetProviderArn(ProviderArnT&& value) { m_providerArnHasBeenSet = true; m_providerArn = std::forward<ProviderArnT>(value); }
53 template<typename ProviderArnT = Aws::String>
54 ProvidedContext& WithProviderArn(ProviderArnT&& value) { SetProviderArn(std::forward<ProviderArnT>(value)); return *this;}
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) { m_contextAssertionHasBeenSet = true; m_contextAssertion = std::forward<ContextAssertionT>(value); }
67 template<typename ContextAssertionT = Aws::String>
68 ProvidedContext& WithContextAssertion(ContextAssertionT&& value) { SetContextAssertion(std::forward<ContextAssertionT>(value)); return *this;}
70 private:
71
72 Aws::String m_providerArn;
73 bool m_providerArnHasBeenSet = false;
74
75 Aws::String m_contextAssertion;
76 bool m_contextAssertionHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace STS
81} // 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