AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetGroupAttribute.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/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancingv2 {
20namespace Model {
21
28 public:
29 AWS_ELASTICLOADBALANCINGV2_API TargetGroupAttribute() = default;
30 AWS_ELASTICLOADBALANCINGV2_API TargetGroupAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCINGV2_API TargetGroupAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
162 inline const Aws::String& GetKey() const { return m_key; }
163 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
164 template <typename KeyT = Aws::String>
165 void SetKey(KeyT&& value) {
166 m_keyHasBeenSet = true;
167 m_key = std::forward<KeyT>(value);
168 }
169 template <typename KeyT = Aws::String>
171 SetKey(std::forward<KeyT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::String& GetValue() const { return m_value; }
181 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
182 template <typename ValueT = Aws::String>
183 void SetValue(ValueT&& value) {
184 m_valueHasBeenSet = true;
185 m_value = std::forward<ValueT>(value);
186 }
187 template <typename ValueT = Aws::String>
189 SetValue(std::forward<ValueT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_key;
195
196 Aws::String m_value;
197 bool m_keyHasBeenSet = false;
198 bool m_valueHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace ElasticLoadBalancingv2
203} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API TargetGroupAttribute()=default
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API TargetGroupAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API TargetGroupAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream