AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PolicyAttributeDescription.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
28 public:
29 AWS_ELASTICLOADBALANCING_API PolicyAttributeDescription() = default;
30 AWS_ELASTICLOADBALANCING_API PolicyAttributeDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICLOADBALANCING_API PolicyAttributeDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
42 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
43 template <typename AttributeNameT = Aws::String>
44 void SetAttributeName(AttributeNameT&& value) {
45 m_attributeNameHasBeenSet = true;
46 m_attributeName = std::forward<AttributeNameT>(value);
47 }
48 template <typename AttributeNameT = Aws::String>
50 SetAttributeName(std::forward<AttributeNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAttributeValue() const { return m_attributeValue; }
60 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
61 template <typename AttributeValueT = Aws::String>
62 void SetAttributeValue(AttributeValueT&& value) {
63 m_attributeValueHasBeenSet = true;
64 m_attributeValue = std::forward<AttributeValueT>(value);
65 }
66 template <typename AttributeValueT = Aws::String>
68 SetAttributeValue(std::forward<AttributeValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_attributeName;
74
75 Aws::String m_attributeValue;
76 bool m_attributeNameHasBeenSet = false;
77 bool m_attributeValueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace ElasticLoadBalancing
82} // namespace Aws
AWS_ELASTICLOADBALANCING_API PolicyAttributeDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API PolicyAttributeDescription()=default
AWS_ELASTICLOADBALANCING_API PolicyAttributeDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyAttributeDescription & WithAttributeValue(AttributeValueT &&value)
PolicyAttributeDescription & WithAttributeName(AttributeNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream