AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyAttribute.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancing
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_ELASTICLOADBALANCING_API PolicyAttribute();
35 AWS_ELASTICLOADBALANCING_API PolicyAttribute(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ELASTICLOADBALANCING_API PolicyAttribute& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
47 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
48 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
49 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
50 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
51 inline PolicyAttribute& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
52 inline PolicyAttribute& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
53 inline PolicyAttribute& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
55
57
60 inline const Aws::String& GetAttributeValue() const{ return m_attributeValue; }
61 inline bool AttributeValueHasBeenSet() const { return m_attributeValueHasBeenSet; }
62 inline void SetAttributeValue(const Aws::String& value) { m_attributeValueHasBeenSet = true; m_attributeValue = value; }
63 inline void SetAttributeValue(Aws::String&& value) { m_attributeValueHasBeenSet = true; m_attributeValue = std::move(value); }
64 inline void SetAttributeValue(const char* value) { m_attributeValueHasBeenSet = true; m_attributeValue.assign(value); }
65 inline PolicyAttribute& WithAttributeValue(const Aws::String& value) { SetAttributeValue(value); return *this;}
66 inline PolicyAttribute& WithAttributeValue(Aws::String&& value) { SetAttributeValue(std::move(value)); return *this;}
67 inline PolicyAttribute& WithAttributeValue(const char* value) { SetAttributeValue(value); return *this;}
69 private:
70
71 Aws::String m_attributeName;
72 bool m_attributeNameHasBeenSet = false;
73
74 Aws::String m_attributeValue;
75 bool m_attributeValueHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace ElasticLoadBalancing
80} // namespace Aws
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
PolicyAttribute & WithAttributeValue(const Aws::String &value)
PolicyAttribute & WithAttributeName(const Aws::String &value)
void SetAttributeValue(const Aws::String &value)
AWS_ELASTICLOADBALANCING_API PolicyAttribute()
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API PolicyAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyAttribute & WithAttributeValue(const char *value)
AWS_ELASTICLOADBALANCING_API PolicyAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyAttribute & WithAttributeName(const char *value)
PolicyAttribute & WithAttributeValue(Aws::String &&value)
PolicyAttribute & WithAttributeName(Aws::String &&value)
void SetAttributeName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream