AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AdditionalAttribute.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/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancing {
20namespace Model {
21
29 public:
30 AWS_ELASTICLOADBALANCING_API AdditionalAttribute() = default;
31 AWS_ELASTICLOADBALANCING_API AdditionalAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICLOADBALANCING_API AdditionalAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template <typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) {
51 m_keyHasBeenSet = true;
52 m_key = std::forward<KeyT>(value);
53 }
54 template <typename KeyT = Aws::String>
56 SetKey(std::forward<KeyT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetValue() const { return m_value; }
66 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
67 template <typename ValueT = Aws::String>
68 void SetValue(ValueT&& value) {
69 m_valueHasBeenSet = true;
70 m_value = std::forward<ValueT>(value);
71 }
72 template <typename ValueT = Aws::String>
73 AdditionalAttribute& WithValue(ValueT&& value) {
74 SetValue(std::forward<ValueT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_key;
80
81 Aws::String m_value;
82 bool m_keyHasBeenSet = false;
83 bool m_valueHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ElasticLoadBalancing
88} // namespace Aws
AWS_ELASTICLOADBALANCING_API AdditionalAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API AdditionalAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCING_API AdditionalAttribute()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream