AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LambdaFunctionAssociations.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cloudfront/model/LambdaFunctionAssociation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
42 {
43 public:
44 AWS_CLOUDFRONT_API LambdaFunctionAssociations() = default;
45 AWS_CLOUDFRONT_API LambdaFunctionAssociations(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49
50
52
55 inline int GetQuantity() const { return m_quantity; }
56 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
57 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
58 inline LambdaFunctionAssociations& WithQuantity(int value) { SetQuantity(value); return *this;}
60
62
67 inline const Aws::Vector<LambdaFunctionAssociation>& GetItems() const { return m_items; }
68 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
69 template<typename ItemsT = Aws::Vector<LambdaFunctionAssociation>>
70 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
71 template<typename ItemsT = Aws::Vector<LambdaFunctionAssociation>>
72 LambdaFunctionAssociations& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
73 template<typename ItemsT = LambdaFunctionAssociation>
74 LambdaFunctionAssociations& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
76 private:
77
78 int m_quantity{0};
79 bool m_quantityHasBeenSet = false;
80
82 bool m_itemsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CloudFront
87} // namespace Aws
AWS_CLOUDFRONT_API LambdaFunctionAssociations(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API LambdaFunctionAssociations()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API LambdaFunctionAssociations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LambdaFunctionAssociations & AddItems(ItemsT &&value)
LambdaFunctionAssociations & WithItems(ItemsT &&value)
const Aws::Vector< LambdaFunctionAssociation > & GetItems() const
std::vector< T, Aws::Allocator< T > > Vector