AWS SDK for C++  1.9.20
AWS SDK for C++
Paths.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 
36  {
37  public:
38  Paths();
41 
42  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43 
44 
49  inline int GetQuantity() const{ return m_quantity; }
50 
55  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
56 
61  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
62 
67  inline Paths& WithQuantity(int value) { SetQuantity(value); return *this;}
68 
69 
74  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
75 
80  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
81 
86  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
87 
92  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
93 
98  inline Paths& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
99 
104  inline Paths& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
105 
110  inline Paths& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
111 
116  inline Paths& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
117 
122  inline Paths& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
123 
124  private:
125 
126  int m_quantity;
127  bool m_quantityHasBeenSet;
128 
129  Aws::Vector<Aws::String> m_items;
130  bool m_itemsHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace CloudFront
135 } // namespace Aws
Aws::CloudFront::Model::Paths::operator=
Paths & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::Paths::Paths
Paths(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Paths::SetQuantity
void SetQuantity(int value)
Definition: Paths.h:61
AWSVector.h
Aws::CloudFront::Model::Paths::WithItems
Paths & WithItems(Aws::Vector< Aws::String > &&value)
Definition: Paths.h:104
Aws::CloudFront::Model::Paths::AddItems
Paths & AddItems(Aws::String &&value)
Definition: Paths.h:116
Aws::CloudFront::Model::Paths::AddItems
Paths & AddItems(const char *value)
Definition: Paths.h:122
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::Paths::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: Paths.h:86
Aws::CloudFront::Model::Paths::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: Paths.h:92
AWSString.h
Aws::CloudFront::Model::Paths::GetQuantity
int GetQuantity() const
Definition: Paths.h:49
Aws::CloudFront::Model::Paths::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: Paths.h:55
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Paths::WithQuantity
Paths & WithQuantity(int value)
Definition: Paths.h:67
CloudFront_EXPORTS.h
Aws::CloudFront::Model::Paths::Paths
Paths()
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::Paths::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: Paths.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::Paths::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: Paths.h:80
Aws::CloudFront::Model::Paths::AddItems
Paths & AddItems(const Aws::String &value)
Definition: Paths.h:110
Aws::CloudFront::Model::Paths
Definition: Paths.h:36
Aws::CloudFront::Model::Paths::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Paths::WithItems
Paths & WithItems(const Aws::Vector< Aws::String > &value)
Definition: Paths.h:98