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