AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ContextAttribute.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/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
29 public:
30 AWS_RDS_API ContextAttribute() = default;
31 AWS_RDS_API ContextAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
49 ContextAttribute& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = Aws::String>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = Aws::String>
67 ContextAttribute& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_key;
74
75 Aws::String m_value;
76 bool m_keyHasBeenSet = false;
77 bool m_valueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace RDS
82} // namespace Aws
ContextAttribute & WithValue(ValueT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API ContextAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API ContextAttribute()=default
const Aws::String & GetValue() const
ContextAttribute & WithKey(KeyT &&value)
AWS_RDS_API ContextAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream