AWS SDK for C++  1.8.95
AWS SDK for C++
TagKeys.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  TagKeys();
36  TagKeys(const Aws::Utils::Xml::XmlNode& xmlNode);
37  TagKeys& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
46 
50  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
51 
55  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
56 
60  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
61 
65  inline TagKeys& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
66 
70  inline TagKeys& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
71 
75  inline TagKeys& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
76 
80  inline TagKeys& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
81 
85  inline TagKeys& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
86 
87  private:
88 
90  bool m_itemsHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace CloudFront
95 } // namespace Aws
TagKeys & AddItems(const Aws::String &value)
Definition: TagKeys.h:75
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
bool ItemsHasBeenSet() const
Definition: TagKeys.h:50
#define AWS_CLOUDFRONT_API
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: TagKeys.h:60
TagKeys & WithItems(Aws::Vector< Aws::String > &&value)
Definition: TagKeys.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TagKeys & AddItems(Aws::String &&value)
Definition: TagKeys.h:80
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: TagKeys.h:55
TagKeys & AddItems(const char *value)
Definition: TagKeys.h:85
TagKeys & WithItems(const Aws::Vector< Aws::String > &value)
Definition: TagKeys.h:65
const Aws::Vector< Aws::String > & GetItems() const
Definition: TagKeys.h:45