AWS SDK for C++  1.9.15
AWS SDK for C++
CacheBehaviors.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 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline int GetQuantity() const{ return m_quantity; }
46 
50  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
51 
55  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
56 
60  inline CacheBehaviors& WithQuantity(int value) { SetQuantity(value); return *this;}
61 
62 
67  inline const Aws::Vector<CacheBehavior>& GetItems() const{ return m_items; }
68 
73  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
74 
79  inline void SetItems(const Aws::Vector<CacheBehavior>& value) { m_itemsHasBeenSet = true; m_items = value; }
80 
85  inline void SetItems(Aws::Vector<CacheBehavior>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
86 
91  inline CacheBehaviors& WithItems(const Aws::Vector<CacheBehavior>& value) { SetItems(value); return *this;}
92 
97  inline CacheBehaviors& WithItems(Aws::Vector<CacheBehavior>&& value) { SetItems(std::move(value)); return *this;}
98 
103  inline CacheBehaviors& AddItems(const CacheBehavior& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
104 
109  inline CacheBehaviors& AddItems(CacheBehavior&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
110 
111  private:
112 
113  int m_quantity;
114  bool m_quantityHasBeenSet;
115 
117  bool m_itemsHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace CloudFront
122 } // namespace Aws
Aws::CloudFront::Model::CacheBehaviors::AddItems
CacheBehaviors & AddItems(const CacheBehavior &value)
Definition: CacheBehaviors.h:103
Aws::CloudFront::Model::CacheBehaviors::GetItems
const Aws::Vector< CacheBehavior > & GetItems() const
Definition: CacheBehaviors.h:67
Aws::CloudFront::Model::CacheBehaviors::AddItems
CacheBehaviors & AddItems(CacheBehavior &&value)
Definition: CacheBehaviors.h:109
CacheBehavior.h
Aws::CloudFront::Model::CacheBehaviors::WithQuantity
CacheBehaviors & WithQuantity(int value)
Definition: CacheBehaviors.h:60
Aws::CloudFront::Model::CacheBehaviors::SetItems
void SetItems(const Aws::Vector< CacheBehavior > &value)
Definition: CacheBehaviors.h:79
Aws::CloudFront::Model::CacheBehaviors::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: CacheBehaviors.h:50
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CacheBehaviors::WithItems
CacheBehaviors & WithItems(Aws::Vector< CacheBehavior > &&value)
Definition: CacheBehaviors.h:97
Aws::CloudFront::Model::CacheBehaviors
Definition: CacheBehaviors.h:33
Aws::CloudFront::Model::CacheBehaviors::SetQuantity
void SetQuantity(int value)
Definition: CacheBehaviors.h:55
Aws::CloudFront::Model::CacheBehaviors::operator=
CacheBehaviors & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CacheBehaviors::WithItems
CacheBehaviors & WithItems(const Aws::Vector< CacheBehavior > &value)
Definition: CacheBehaviors.h:91
Aws::CloudFront::Model::CacheBehaviors::CacheBehaviors
CacheBehaviors()
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CacheBehavior
Definition: CacheBehavior.h:58
Aws::CloudFront::Model::CacheBehaviors::GetQuantity
int GetQuantity() const
Definition: CacheBehaviors.h:45
Aws::CloudFront::Model::CacheBehaviors::SetItems
void SetItems(Aws::Vector< CacheBehavior > &&value)
Definition: CacheBehaviors.h:85
Aws::CloudFront::Model::CacheBehaviors::CacheBehaviors
CacheBehaviors(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CacheBehaviors::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: CacheBehaviors.h:73
Aws::CloudFront::Model::CacheBehaviors::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const