AWS SDK for C++  1.9.19
AWS SDK for C++
AllowedMethods.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
43  {
44  public:
48 
49  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50 
51 
59  inline int GetQuantity() const{ return m_quantity; }
60 
68  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
69 
77  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
78 
86  inline AllowedMethods& WithQuantity(int value) { SetQuantity(value); return *this;}
87 
88 
93  inline const Aws::Vector<Method>& GetItems() const{ return m_items; }
94 
99  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
100 
105  inline void SetItems(const Aws::Vector<Method>& value) { m_itemsHasBeenSet = true; m_items = value; }
106 
111  inline void SetItems(Aws::Vector<Method>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
112 
117  inline AllowedMethods& WithItems(const Aws::Vector<Method>& value) { SetItems(value); return *this;}
118 
123  inline AllowedMethods& WithItems(Aws::Vector<Method>&& value) { SetItems(std::move(value)); return *this;}
124 
129  inline AllowedMethods& AddItems(const Method& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
130 
135  inline AllowedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
136 
137 
138 
139  inline const CachedMethods& GetCachedMethods() const{ return m_cachedMethods; }
140 
141 
142  inline bool CachedMethodsHasBeenSet() const { return m_cachedMethodsHasBeenSet; }
143 
144 
145  inline void SetCachedMethods(const CachedMethods& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = value; }
146 
147 
148  inline void SetCachedMethods(CachedMethods&& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = std::move(value); }
149 
150 
151  inline AllowedMethods& WithCachedMethods(const CachedMethods& value) { SetCachedMethods(value); return *this;}
152 
153 
154  inline AllowedMethods& WithCachedMethods(CachedMethods&& value) { SetCachedMethods(std::move(value)); return *this;}
155 
156  private:
157 
158  int m_quantity;
159  bool m_quantityHasBeenSet;
160 
161  Aws::Vector<Method> m_items;
162  bool m_itemsHasBeenSet;
163 
164  CachedMethods m_cachedMethods;
165  bool m_cachedMethodsHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace CloudFront
170 } // namespace Aws
Aws::CloudFront::Model::AllowedMethods::SetItems
void SetItems(const Aws::Vector< Method > &value)
Definition: AllowedMethods.h:105
Aws::CloudFront::Model::AllowedMethods::WithItems
AllowedMethods & WithItems(Aws::Vector< Method > &&value)
Definition: AllowedMethods.h:123
Aws::CloudFront::Model::AllowedMethods::AllowedMethods
AllowedMethods(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CachedMethods
Definition: CachedMethods.h:39
Aws::CloudFront::Model::AllowedMethods::WithQuantity
AllowedMethods & WithQuantity(int value)
Definition: AllowedMethods.h:86
Aws::CloudFront::Model::AllowedMethods::GetQuantity
int GetQuantity() const
Definition: AllowedMethods.h:59
Aws::CloudFront::Model::AllowedMethods::AddItems
AllowedMethods & AddItems(Method &&value)
Definition: AllowedMethods.h:135
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::AllowedMethods::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::AllowedMethods::WithItems
AllowedMethods & WithItems(const Aws::Vector< Method > &value)
Definition: AllowedMethods.h:117
AWSVector.h
CachedMethods.h
Aws::CloudFront::Model::AllowedMethods::SetItems
void SetItems(Aws::Vector< Method > &&value)
Definition: AllowedMethods.h:111
Aws::CloudFront::Model::AllowedMethods::AllowedMethods
AllowedMethods()
Aws::CloudFront::Model::AllowedMethods::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: AllowedMethods.h:99
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::AllowedMethods::SetCachedMethods
void SetCachedMethods(const CachedMethods &value)
Definition: AllowedMethods.h:145
Aws::CloudFront::Model::AllowedMethods::GetItems
const Aws::Vector< Method > & GetItems() const
Definition: AllowedMethods.h:93
Aws::CloudFront::Model::AllowedMethods::SetQuantity
void SetQuantity(int value)
Definition: AllowedMethods.h:77
Aws::CloudFront::Model::AllowedMethods::CachedMethodsHasBeenSet
bool CachedMethodsHasBeenSet() const
Definition: AllowedMethods.h:142
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::AllowedMethods::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: AllowedMethods.h:68
CloudFront_EXPORTS.h
Aws::CloudFront::Model::AllowedMethods::SetCachedMethods
void SetCachedMethods(CachedMethods &&value)
Definition: AllowedMethods.h:148
Aws::CloudFront::Model::AllowedMethods::GetCachedMethods
const CachedMethods & GetCachedMethods() const
Definition: AllowedMethods.h:139
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::AllowedMethods::AddItems
AllowedMethods & AddItems(const Method &value)
Definition: AllowedMethods.h:129
Aws::CloudFront::Model::AllowedMethods::WithCachedMethods
AllowedMethods & WithCachedMethods(const CachedMethods &value)
Definition: AllowedMethods.h:151
Aws::CloudFront::Model::AllowedMethods
Definition: AllowedMethods.h:43
Method.h
Aws::CloudFront::Model::Method
Method
Definition: Method.h:17
Aws::CloudFront::Model::AllowedMethods::operator=
AllowedMethods & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::AllowedMethods::WithCachedMethods
AllowedMethods & WithCachedMethods(CachedMethods &&value)
Definition: AllowedMethods.h:154