AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaFunctionAssociations.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/LambdaFunctionAssociation.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
38 public:
39 AWS_CLOUDFRONT_API LambdaFunctionAssociations() = default;
40 AWS_CLOUDFRONT_API LambdaFunctionAssociations(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
46
49 inline int GetQuantity() const { return m_quantity; }
50 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
51 inline void SetQuantity(int value) {
52 m_quantityHasBeenSet = true;
53 m_quantity = value;
54 }
56 SetQuantity(value);
57 return *this;
58 }
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) {
71 m_itemsHasBeenSet = true;
72 m_items = std::forward<ItemsT>(value);
73 }
74 template <typename ItemsT = Aws::Vector<LambdaFunctionAssociation>>
76 SetItems(std::forward<ItemsT>(value));
77 return *this;
78 }
79 template <typename ItemsT = LambdaFunctionAssociation>
81 m_itemsHasBeenSet = true;
82 m_items.emplace_back(std::forward<ItemsT>(value));
83 return *this;
84 }
86 private:
87 int m_quantity{0};
88
90 bool m_quantityHasBeenSet = false;
91 bool m_itemsHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace CloudFront
96} // 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