AWS SDK for C++  1.9.20
AWS SDK for C++
LambdaFunctionAssociations.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 
42  {
43  public:
47 
48  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49 
50 
54  inline int GetQuantity() const{ return m_quantity; }
55 
59  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 
64  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
65 
69  inline LambdaFunctionAssociations& WithQuantity(int value) { SetQuantity(value); return *this;}
70 
71 
77  inline const Aws::Vector<LambdaFunctionAssociation>& GetItems() const{ return m_items; }
78 
84  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
85 
91  inline void SetItems(const Aws::Vector<LambdaFunctionAssociation>& value) { m_itemsHasBeenSet = true; m_items = value; }
92 
98  inline void SetItems(Aws::Vector<LambdaFunctionAssociation>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
99 
105  inline LambdaFunctionAssociations& WithItems(const Aws::Vector<LambdaFunctionAssociation>& value) { SetItems(value); return *this;}
106 
112  inline LambdaFunctionAssociations& WithItems(Aws::Vector<LambdaFunctionAssociation>&& value) { SetItems(std::move(value)); return *this;}
113 
119  inline LambdaFunctionAssociations& AddItems(const LambdaFunctionAssociation& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
120 
126  inline LambdaFunctionAssociations& AddItems(LambdaFunctionAssociation&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
127 
128  private:
129 
130  int m_quantity;
131  bool m_quantityHasBeenSet;
132 
134  bool m_itemsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace CloudFront
139 } // namespace Aws
Aws::CloudFront::Model::LambdaFunctionAssociations::GetQuantity
int GetQuantity() const
Definition: LambdaFunctionAssociations.h:54
Aws::CloudFront::Model::LambdaFunctionAssociations::AddItems
LambdaFunctionAssociations & AddItems(LambdaFunctionAssociation &&value)
Definition: LambdaFunctionAssociations.h:126
Aws::CloudFront::Model::LambdaFunctionAssociations::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: LambdaFunctionAssociations.h:59
Aws::CloudFront::Model::LambdaFunctionAssociations::WithItems
LambdaFunctionAssociations & WithItems(Aws::Vector< LambdaFunctionAssociation > &&value)
Definition: LambdaFunctionAssociations.h:112
Aws::CloudFront::Model::LambdaFunctionAssociations::GetItems
const Aws::Vector< LambdaFunctionAssociation > & GetItems() const
Definition: LambdaFunctionAssociations.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::LambdaFunctionAssociations::WithQuantity
LambdaFunctionAssociations & WithQuantity(int value)
Definition: LambdaFunctionAssociations.h:69
Aws::CloudFront::Model::LambdaFunctionAssociations::SetItems
void SetItems(Aws::Vector< LambdaFunctionAssociation > &&value)
Definition: LambdaFunctionAssociations.h:98
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
LambdaFunctionAssociation.h
Aws::CloudFront::Model::LambdaFunctionAssociations::SetItems
void SetItems(const Aws::Vector< LambdaFunctionAssociation > &value)
Definition: LambdaFunctionAssociations.h:91
Aws::CloudFront::Model::LambdaFunctionAssociations::AddItems
LambdaFunctionAssociations & AddItems(const LambdaFunctionAssociation &value)
Definition: LambdaFunctionAssociations.h:119
Aws::CloudFront::Model::LambdaFunctionAssociations::operator=
LambdaFunctionAssociations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::LambdaFunctionAssociations::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: LambdaFunctionAssociations.h:84
Aws::CloudFront::Model::LambdaFunctionAssociations::SetQuantity
void SetQuantity(int value)
Definition: LambdaFunctionAssociations.h:64
Aws::CloudFront::Model::LambdaFunctionAssociations::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::LambdaFunctionAssociation
Definition: LambdaFunctionAssociation.h:33
Aws::CloudFront::Model::LambdaFunctionAssociations::LambdaFunctionAssociations
LambdaFunctionAssociations()
Aws::CloudFront::Model::LambdaFunctionAssociations
Definition: LambdaFunctionAssociations.h:42
Aws::CloudFront::Model::LambdaFunctionAssociations::LambdaFunctionAssociations
LambdaFunctionAssociations(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::LambdaFunctionAssociations::WithItems
LambdaFunctionAssociations & WithItems(const Aws::Vector< LambdaFunctionAssociation > &value)
Definition: LambdaFunctionAssociations.h:105