AWS SDK for C++  1.9.14
AWS SDK for C++
CookieNames.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 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline int GetQuantity() const{ return m_quantity; }
45 
49  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
50 
54  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
55 
59  inline CookieNames& WithQuantity(int value) { SetQuantity(value); return *this;}
60 
61 
65  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
66 
70  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
71 
75  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
76 
80  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
81 
85  inline CookieNames& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
86 
90  inline CookieNames& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
91 
95  inline CookieNames& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
96 
100  inline CookieNames& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
101 
105  inline CookieNames& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
106 
107  private:
108 
109  int m_quantity;
110  bool m_quantityHasBeenSet;
111 
112  Aws::Vector<Aws::String> m_items;
113  bool m_itemsHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace CloudFront
118 } // namespace Aws
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97