AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ContextProvider.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/ContextProviderKeyDefinition.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM {
22namespace Model {
23
46 public:
47 AWS_IAM_API ContextProvider() = default;
48 AWS_IAM_API ContextProvider(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
55
60 inline const Aws::Vector<ContextProviderKeyDefinition>& GetKeyDefinitionList() const { return m_keyDefinitionList; }
61 inline bool KeyDefinitionListHasBeenSet() const { return m_keyDefinitionListHasBeenSet; }
62 template <typename KeyDefinitionListT = Aws::Vector<ContextProviderKeyDefinition>>
63 void SetKeyDefinitionList(KeyDefinitionListT&& value) {
64 m_keyDefinitionListHasBeenSet = true;
65 m_keyDefinitionList = std::forward<KeyDefinitionListT>(value);
66 }
67 template <typename KeyDefinitionListT = Aws::Vector<ContextProviderKeyDefinition>>
68 ContextProvider& WithKeyDefinitionList(KeyDefinitionListT&& value) {
69 SetKeyDefinitionList(std::forward<KeyDefinitionListT>(value));
70 return *this;
71 }
72 template <typename KeyDefinitionListT = ContextProviderKeyDefinition>
73 ContextProvider& AddKeyDefinitionList(KeyDefinitionListT&& value) {
74 m_keyDefinitionListHasBeenSet = true;
75 m_keyDefinitionList.emplace_back(std::forward<KeyDefinitionListT>(value));
76 return *this;
77 }
79
81
89 inline const Aws::String& GetSubjectSourceKey() const { return m_subjectSourceKey; }
90 inline bool SubjectSourceKeyHasBeenSet() const { return m_subjectSourceKeyHasBeenSet; }
91 template <typename SubjectSourceKeyT = Aws::String>
92 void SetSubjectSourceKey(SubjectSourceKeyT&& value) {
93 m_subjectSourceKeyHasBeenSet = true;
94 m_subjectSourceKey = std::forward<SubjectSourceKeyT>(value);
95 }
96 template <typename SubjectSourceKeyT = Aws::String>
97 ContextProvider& WithSubjectSourceKey(SubjectSourceKeyT&& value) {
98 SetSubjectSourceKey(std::forward<SubjectSourceKeyT>(value));
99 return *this;
100 }
102
104
111 inline const Aws::String& GetSubjectTypeValue() const { return m_subjectTypeValue; }
112 inline bool SubjectTypeValueHasBeenSet() const { return m_subjectTypeValueHasBeenSet; }
113 template <typename SubjectTypeValueT = Aws::String>
114 void SetSubjectTypeValue(SubjectTypeValueT&& value) {
115 m_subjectTypeValueHasBeenSet = true;
116 m_subjectTypeValue = std::forward<SubjectTypeValueT>(value);
117 }
118 template <typename SubjectTypeValueT = Aws::String>
119 ContextProvider& WithSubjectTypeValue(SubjectTypeValueT&& value) {
120 SetSubjectTypeValue(std::forward<SubjectTypeValueT>(value));
121 return *this;
122 }
124
126
135 inline const Aws::String& GetSubjectTypeSourceKey() const { return m_subjectTypeSourceKey; }
136 inline bool SubjectTypeSourceKeyHasBeenSet() const { return m_subjectTypeSourceKeyHasBeenSet; }
137 template <typename SubjectTypeSourceKeyT = Aws::String>
138 void SetSubjectTypeSourceKey(SubjectTypeSourceKeyT&& value) {
139 m_subjectTypeSourceKeyHasBeenSet = true;
140 m_subjectTypeSourceKey = std::forward<SubjectTypeSourceKeyT>(value);
141 }
142 template <typename SubjectTypeSourceKeyT = Aws::String>
143 ContextProvider& WithSubjectTypeSourceKey(SubjectTypeSourceKeyT&& value) {
144 SetSubjectTypeSourceKey(std::forward<SubjectTypeSourceKeyT>(value));
145 return *this;
146 }
148 private:
150
151 Aws::String m_subjectSourceKey;
152
153 Aws::String m_subjectTypeValue;
154
155 Aws::String m_subjectTypeSourceKey;
156 bool m_keyDefinitionListHasBeenSet = false;
157 bool m_subjectSourceKeyHasBeenSet = false;
158 bool m_subjectTypeValueHasBeenSet = false;
159 bool m_subjectTypeSourceKeyHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace IAM
164} // namespace Aws
ContextProvider & WithSubjectTypeSourceKey(SubjectTypeSourceKeyT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ContextProvider & WithSubjectSourceKey(SubjectSourceKeyT &&value)
const Aws::String & GetSubjectSourceKey() const
AWS_IAM_API ContextProvider()=default
ContextProvider & AddKeyDefinitionList(KeyDefinitionListT &&value)
void SetSubjectTypeSourceKey(SubjectTypeSourceKeyT &&value)
AWS_IAM_API ContextProvider & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetKeyDefinitionList(KeyDefinitionListT &&value)
AWS_IAM_API ContextProvider(const Aws::Utils::Xml::XmlNode &xmlNode)
ContextProvider & WithKeyDefinitionList(KeyDefinitionListT &&value)
ContextProvider & WithSubjectTypeValue(SubjectTypeValueT &&value)
const Aws::Vector< ContextProviderKeyDefinition > & GetKeyDefinitionList() const
const Aws::String & GetSubjectTypeValue() const
void SetSubjectSourceKey(SubjectSourceKeyT &&value)
void SetSubjectTypeValue(SubjectTypeValueT &&value)
const Aws::String & GetSubjectTypeSourceKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector