AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FunctionAssociations.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/FunctionAssociation.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
35 {
36 public:
37 AWS_CLOUDFRONT_API FunctionAssociations();
38 AWS_CLOUDFRONT_API FunctionAssociations(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFRONT_API FunctionAssociations& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
48 inline int GetQuantity() const{ return m_quantity; }
49 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
50 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
51 inline FunctionAssociations& WithQuantity(int value) { SetQuantity(value); return *this;}
53
55
60 inline const Aws::Vector<FunctionAssociation>& GetItems() const{ return m_items; }
61 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
62 inline void SetItems(const Aws::Vector<FunctionAssociation>& value) { m_itemsHasBeenSet = true; m_items = value; }
63 inline void SetItems(Aws::Vector<FunctionAssociation>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
64 inline FunctionAssociations& WithItems(const Aws::Vector<FunctionAssociation>& value) { SetItems(value); return *this;}
65 inline FunctionAssociations& WithItems(Aws::Vector<FunctionAssociation>&& value) { SetItems(std::move(value)); return *this;}
66 inline FunctionAssociations& AddItems(const FunctionAssociation& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
67 inline FunctionAssociations& AddItems(FunctionAssociation&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
69 private:
70
71 int m_quantity;
72 bool m_quantityHasBeenSet = false;
73
75 bool m_itemsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CloudFront
80} // namespace Aws
FunctionAssociations & AddItems(FunctionAssociation &&value)
FunctionAssociations & AddItems(const FunctionAssociation &value)
void SetItems(const Aws::Vector< FunctionAssociation > &value)
AWS_CLOUDFRONT_API FunctionAssociations(const Aws::Utils::Xml::XmlNode &xmlNode)
FunctionAssociations & WithQuantity(int value)
const Aws::Vector< FunctionAssociation > & GetItems() const
void SetItems(Aws::Vector< FunctionAssociation > &&value)
FunctionAssociations & WithItems(const Aws::Vector< FunctionAssociation > &value)
FunctionAssociations & WithItems(Aws::Vector< FunctionAssociation > &&value)
AWS_CLOUDFRONT_API FunctionAssociations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::vector< T, Aws::Allocator< T > > Vector