AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ContextProviderKeyDefinition.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/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace IAM {
20namespace Model {
21
32 public:
33 AWS_IAM_API ContextProviderKeyDefinition() = default;
36
37 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
47 inline const Aws::String& GetSourceKey() const { return m_sourceKey; }
48 inline bool SourceKeyHasBeenSet() const { return m_sourceKeyHasBeenSet; }
49 template <typename SourceKeyT = Aws::String>
50 void SetSourceKey(SourceKeyT&& value) {
51 m_sourceKeyHasBeenSet = true;
52 m_sourceKey = std::forward<SourceKeyT>(value);
53 }
54 template <typename SourceKeyT = Aws::String>
56 SetSourceKey(std::forward<SourceKeyT>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetTargetKey() const { return m_targetKey; }
69 inline bool TargetKeyHasBeenSet() const { return m_targetKeyHasBeenSet; }
70 template <typename TargetKeyT = Aws::String>
71 void SetTargetKey(TargetKeyT&& value) {
72 m_targetKeyHasBeenSet = true;
73 m_targetKey = std::forward<TargetKeyT>(value);
74 }
75 template <typename TargetKeyT = Aws::String>
77 SetTargetKey(std::forward<TargetKeyT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_sourceKey;
83
84 Aws::String m_targetKey;
85 bool m_sourceKeyHasBeenSet = false;
86 bool m_targetKeyHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace IAM
91} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_IAM_API ContextProviderKeyDefinition & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ContextProviderKeyDefinition & WithTargetKey(TargetKeyT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API ContextProviderKeyDefinition(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API ContextProviderKeyDefinition()=default
ContextProviderKeyDefinition & WithSourceKey(SourceKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream