AWS SDK for C++  1.9.14
AWS SDK for C++
CachedMethods.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 
39  {
40  public:
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
47 
54  inline int GetQuantity() const{ return m_quantity; }
55 
62  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
63 
70  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
71 
78  inline CachedMethods& WithQuantity(int value) { SetQuantity(value); return *this;}
79 
80 
85  inline const Aws::Vector<Method>& GetItems() const{ return m_items; }
86 
91  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
92 
97  inline void SetItems(const Aws::Vector<Method>& value) { m_itemsHasBeenSet = true; m_items = value; }
98 
103  inline void SetItems(Aws::Vector<Method>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
104 
109  inline CachedMethods& WithItems(const Aws::Vector<Method>& value) { SetItems(value); return *this;}
110 
115  inline CachedMethods& WithItems(Aws::Vector<Method>&& value) { SetItems(std::move(value)); return *this;}
116 
121  inline CachedMethods& AddItems(const Method& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
122 
127  inline CachedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
128 
129  private:
130 
131  int m_quantity;
132  bool m_quantityHasBeenSet;
133 
134  Aws::Vector<Method> m_items;
135  bool m_itemsHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace CloudFront
140 } // namespace Aws
Aws::CloudFront::Model::CachedMethods::AddItems
CachedMethods & AddItems(const Method &value)
Definition: CachedMethods.h:121
Aws::CloudFront::Model::CachedMethods
Definition: CachedMethods.h:39
Aws::CloudFront::Model::CachedMethods::SetQuantity
void SetQuantity(int value)
Definition: CachedMethods.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::CachedMethods::WithQuantity
CachedMethods & WithQuantity(int value)
Definition: CachedMethods.h:78
AWSVector.h
Aws::CloudFront::Model::CachedMethods::GetItems
const Aws::Vector< Method > & GetItems() const
Definition: CachedMethods.h:85
Aws::CloudFront::Model::CachedMethods::WithItems
CachedMethods & WithItems(const Aws::Vector< Method > &value)
Definition: CachedMethods.h:109
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CachedMethods::SetItems
void SetItems(const Aws::Vector< Method > &value)
Definition: CachedMethods.h:97
Aws::CloudFront::Model::CachedMethods::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: CachedMethods.h:62
Aws::CloudFront::Model::CachedMethods::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: CachedMethods.h:91
Aws::CloudFront::Model::CachedMethods::AddItems
CachedMethods & AddItems(Method &&value)
Definition: CachedMethods.h:127
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CachedMethods::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CachedMethods::GetQuantity
int GetQuantity() const
Definition: CachedMethods.h:54
Aws::CloudFront::Model::CachedMethods::WithItems
CachedMethods & WithItems(Aws::Vector< Method > &&value)
Definition: CachedMethods.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CachedMethods::SetItems
void SetItems(Aws::Vector< Method > &&value)
Definition: CachedMethods.h:103
Aws::CloudFront::Model::CachedMethods::CachedMethods
CachedMethods(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachedMethods::CachedMethods
CachedMethods()
Aws::CloudFront::Model::CachedMethods::operator=
CachedMethods & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Method.h
Aws::CloudFront::Model::Method
Method
Definition: Method.h:17