AWS SDK for C++  1.9.20
AWS SDK for C++
OriginGroups.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 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
45  inline int GetQuantity() const{ return m_quantity; }
46 
50  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
51 
55  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
56 
60  inline OriginGroups& WithQuantity(int value) { SetQuantity(value); return *this;}
61 
62 
66  inline const Aws::Vector<OriginGroup>& GetItems() const{ return m_items; }
67 
71  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
72 
76  inline void SetItems(const Aws::Vector<OriginGroup>& value) { m_itemsHasBeenSet = true; m_items = value; }
77 
81  inline void SetItems(Aws::Vector<OriginGroup>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
82 
86  inline OriginGroups& WithItems(const Aws::Vector<OriginGroup>& value) { SetItems(value); return *this;}
87 
91  inline OriginGroups& WithItems(Aws::Vector<OriginGroup>&& value) { SetItems(std::move(value)); return *this;}
92 
96  inline OriginGroups& AddItems(const OriginGroup& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
97 
101  inline OriginGroups& AddItems(OriginGroup&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
102 
103  private:
104 
105  int m_quantity;
106  bool m_quantityHasBeenSet;
107 
108  Aws::Vector<OriginGroup> m_items;
109  bool m_itemsHasBeenSet;
110  };
111 
112 } // namespace Model
113 } // namespace CloudFront
114 } // namespace Aws
Aws::CloudFront::Model::OriginGroups::SetQuantity
void SetQuantity(int value)
Definition: OriginGroups.h:55
Aws::CloudFront::Model::OriginGroups::SetItems
void SetItems(const Aws::Vector< OriginGroup > &value)
Definition: OriginGroups.h:76
Aws::CloudFront::Model::OriginGroup
Definition: OriginGroup.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::OriginGroups
Definition: OriginGroups.h:33
AWSVector.h
Aws::CloudFront::Model::OriginGroups::operator=
OriginGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginGroups::WithItems
OriginGroups & WithItems(const Aws::Vector< OriginGroup > &value)
Definition: OriginGroups.h:86
Aws::CloudFront::Model::OriginGroups::AddItems
OriginGroups & AddItems(const OriginGroup &value)
Definition: OriginGroups.h:96
Aws::CloudFront::Model::OriginGroups::OriginGroups
OriginGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginGroups::AddItems
OriginGroups & AddItems(OriginGroup &&value)
Definition: OriginGroups.h:101
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginGroups::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: OriginGroups.h:50
Aws::CloudFront::Model::OriginGroups::WithQuantity
OriginGroups & WithQuantity(int value)
Definition: OriginGroups.h:60
Aws::CloudFront::Model::OriginGroups::WithItems
OriginGroups & WithItems(Aws::Vector< OriginGroup > &&value)
Definition: OriginGroups.h:91
Aws::CloudFront::Model::OriginGroups::GetQuantity
int GetQuantity() const
Definition: OriginGroups.h:45
Aws::CloudFront::Model::OriginGroups::SetItems
void SetItems(Aws::Vector< OriginGroup > &&value)
Definition: OriginGroups.h:81
Aws::CloudFront::Model::OriginGroups::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginGroups::GetItems
const Aws::Vector< OriginGroup > & GetItems() const
Definition: OriginGroups.h:66
Aws::CloudFront::Model::OriginGroups::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: OriginGroups.h:71
OriginGroup.h
Aws::CloudFront::Model::OriginGroups::OriginGroups
OriginGroups()