AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplaceableItem.h
1
6#pragma once
7#include <aws/sdb/SimpleDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sdb/model/ReplaceableAttribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace SimpleDB
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SIMPLEDB_API ReplaceableItem();
37 AWS_SIMPLEDB_API ReplaceableItem(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_SIMPLEDB_API ReplaceableItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_SIMPLEDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline ReplaceableItem& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline ReplaceableItem& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline ReplaceableItem& WithName(const char* value) { SetName(value); return *this;}
57
59
62 inline const Aws::Vector<ReplaceableAttribute>& GetAttributes() const{ return m_attributes; }
63 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
64 inline void SetAttributes(const Aws::Vector<ReplaceableAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
65 inline void SetAttributes(Aws::Vector<ReplaceableAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
67 inline ReplaceableItem& WithAttributes(Aws::Vector<ReplaceableAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
68 inline ReplaceableItem& AddAttributes(const ReplaceableAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
69 inline ReplaceableItem& AddAttributes(ReplaceableAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_name;
74 bool m_nameHasBeenSet = false;
75
77 bool m_attributesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SimpleDB
82} // namespace Aws
ReplaceableItem & WithName(const Aws::String &value)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAttributes(Aws::Vector< ReplaceableAttribute > &&value)
ReplaceableItem & WithAttributes(Aws::Vector< ReplaceableAttribute > &&value)
ReplaceableItem & AddAttributes(ReplaceableAttribute &&value)
const Aws::Vector< ReplaceableAttribute > & GetAttributes() const
void SetName(Aws::String &&value)
void SetName(const Aws::String &value)
ReplaceableItem & AddAttributes(const ReplaceableAttribute &value)
AWS_SIMPLEDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SIMPLEDB_API ReplaceableItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplaceableItem & WithName(const char *value)
ReplaceableItem & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetAttributes(const Aws::Vector< ReplaceableAttribute > &value)
ReplaceableItem & WithAttributes(const Aws::Vector< ReplaceableAttribute > &value)
AWS_SIMPLEDB_API ReplaceableItem(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream