AWS SDK for C++  1.9.129
AWS SDK for C++
QueryStringNames.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 QueryStringNames& 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 QueryStringNames& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
86 
90  inline QueryStringNames& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
91 
95  inline QueryStringNames& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
96 
100  inline QueryStringNames& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
101 
105  inline QueryStringNames& 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::CloudFront::Model::QueryStringNames::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: QueryStringNames.h:75
Aws::CloudFront::Model::QueryStringNames::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: QueryStringNames.h:49
Aws::CloudFront::Model::QueryStringNames::AddItems
QueryStringNames & AddItems(const char *value)
Definition: QueryStringNames.h:105
Aws::CloudFront::Model::QueryStringNames
Definition: QueryStringNames.h:32
Aws::CloudFront::Model::QueryStringNames::WithItems
QueryStringNames & WithItems(Aws::Vector< Aws::String > &&value)
Definition: QueryStringNames.h:90
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::QueryStringNames::AddItems
QueryStringNames & AddItems(const Aws::String &value)
Definition: QueryStringNames.h:95
AWSVector.h
Aws::CloudFront::Model::QueryStringNames::QueryStringNames
QueryStringNames()
Aws::CloudFront::Model::QueryStringNames::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: QueryStringNames.h:65
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::QueryStringNames::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::QueryStringNames::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: QueryStringNames.h:80
Aws::CloudFront::Model::QueryStringNames::SetQuantity
void SetQuantity(int value)
Definition: QueryStringNames.h:54
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::QueryStringNames::WithQuantity
QueryStringNames & WithQuantity(int value)
Definition: QueryStringNames.h:59
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::QueryStringNames::WithItems
QueryStringNames & WithItems(const Aws::Vector< Aws::String > &value)
Definition: QueryStringNames.h:85
Aws::CloudFront::Model::QueryStringNames::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: QueryStringNames.h:70
Aws::CloudFront::Model::QueryStringNames::QueryStringNames
QueryStringNames(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::QueryStringNames::operator=
QueryStringNames & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::QueryStringNames::GetQuantity
int GetQuantity() const
Definition: QueryStringNames.h:44
Aws::CloudFront::Model::QueryStringNames::AddItems
QueryStringNames & AddItems(Aws::String &&value)
Definition: QueryStringNames.h:100