AWS SDK for C++  1.9.45
AWS SDK for C++
FunctionAssociations.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 
35  {
36  public:
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
47  inline int GetQuantity() const{ return m_quantity; }
48 
52  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
53 
57  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
58 
62  inline FunctionAssociations& WithQuantity(int value) { SetQuantity(value); return *this;}
63 
64 
70  inline const Aws::Vector<FunctionAssociation>& GetItems() const{ return m_items; }
71 
77  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
78 
84  inline void SetItems(const Aws::Vector<FunctionAssociation>& value) { m_itemsHasBeenSet = true; m_items = value; }
85 
91  inline void SetItems(Aws::Vector<FunctionAssociation>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
92 
98  inline FunctionAssociations& WithItems(const Aws::Vector<FunctionAssociation>& value) { SetItems(value); return *this;}
99 
105  inline FunctionAssociations& WithItems(Aws::Vector<FunctionAssociation>&& value) { SetItems(std::move(value)); return *this;}
106 
112  inline FunctionAssociations& AddItems(const FunctionAssociation& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
113 
119  inline FunctionAssociations& AddItems(FunctionAssociation&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
120 
121  private:
122 
123  int m_quantity;
124  bool m_quantityHasBeenSet;
125 
127  bool m_itemsHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace CloudFront
132 } // namespace Aws
Aws::CloudFront::Model::FunctionAssociation
Definition: FunctionAssociation.h:33
Aws::CloudFront::Model::FunctionAssociations::SetQuantity
void SetQuantity(int value)
Definition: FunctionAssociations.h:57
Aws::CloudFront::Model::FunctionAssociations::operator=
FunctionAssociations & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::FunctionAssociations::SetItems
void SetItems(const Aws::Vector< FunctionAssociation > &value)
Definition: FunctionAssociations.h:84
Aws::CloudFront::Model::FunctionAssociations::WithQuantity
FunctionAssociations & WithQuantity(int value)
Definition: FunctionAssociations.h:62
Aws::CloudFront::Model::FunctionAssociations::AddItems
FunctionAssociations & AddItems(FunctionAssociation &&value)
Definition: FunctionAssociations.h:119
Aws::CloudFront::Model::FunctionAssociations::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: FunctionAssociations.h:52
Aws::CloudFront::Model::FunctionAssociations
Definition: FunctionAssociations.h:35
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::FunctionAssociations::GetQuantity
int GetQuantity() const
Definition: FunctionAssociations.h:47
Aws::CloudFront::Model::FunctionAssociations::SetItems
void SetItems(Aws::Vector< FunctionAssociation > &&value)
Definition: FunctionAssociations.h:91
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::FunctionAssociations::GetItems
const Aws::Vector< FunctionAssociation > & GetItems() const
Definition: FunctionAssociations.h:70
Aws::CloudFront::Model::FunctionAssociations::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFront_EXPORTS.h
Aws::CloudFront::Model::FunctionAssociations::FunctionAssociations
FunctionAssociations(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::FunctionAssociations::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: FunctionAssociations.h:77
Aws::CloudFront::Model::FunctionAssociations::AddItems
FunctionAssociations & AddItems(const FunctionAssociation &value)
Definition: FunctionAssociations.h:112
Aws::CloudFront::Model::FunctionAssociations::WithItems
FunctionAssociations & WithItems(const Aws::Vector< FunctionAssociation > &value)
Definition: FunctionAssociations.h:98
Aws::CloudFront::Model::FunctionAssociations::FunctionAssociations
FunctionAssociations()
Aws::CloudFront::Model::FunctionAssociations::WithItems
FunctionAssociations & WithItems(Aws::Vector< FunctionAssociation > &&value)
Definition: FunctionAssociations.h:105
FunctionAssociation.h