AWS SDK for C++  1.9.124
AWS SDK for C++
QueryArgProfiles.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 
46  inline int GetQuantity() const{ return m_quantity; }
47 
52  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
53 
58  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
59 
64  inline QueryArgProfiles& WithQuantity(int value) { SetQuantity(value); return *this;}
65 
66 
71  inline const Aws::Vector<QueryArgProfile>& GetItems() const{ return m_items; }
72 
77  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
78 
83  inline void SetItems(const Aws::Vector<QueryArgProfile>& value) { m_itemsHasBeenSet = true; m_items = value; }
84 
89  inline void SetItems(Aws::Vector<QueryArgProfile>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
90 
95  inline QueryArgProfiles& WithItems(const Aws::Vector<QueryArgProfile>& value) { SetItems(value); return *this;}
96 
101  inline QueryArgProfiles& WithItems(Aws::Vector<QueryArgProfile>&& value) { SetItems(std::move(value)); return *this;}
102 
107  inline QueryArgProfiles& AddItems(const QueryArgProfile& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
108 
113  inline QueryArgProfiles& AddItems(QueryArgProfile&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  int m_quantity;
118  bool m_quantityHasBeenSet;
119 
121  bool m_itemsHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace CloudFront
126 } // namespace Aws
Aws::CloudFront::Model::QueryArgProfiles::AddItems
QueryArgProfiles & AddItems(QueryArgProfile &&value)
Definition: QueryArgProfiles.h:113
Aws::CloudFront::Model::QueryArgProfiles::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: QueryArgProfiles.h:52
Aws::CloudFront::Model::QueryArgProfile
Definition: QueryArgProfile.h:32
Aws::CloudFront::Model::QueryArgProfiles
Definition: QueryArgProfiles.h:33
Aws::CloudFront::Model::QueryArgProfiles::WithQuantity
QueryArgProfiles & WithQuantity(int value)
Definition: QueryArgProfiles.h:64
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::QueryArgProfiles::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::QueryArgProfiles::operator=
QueryArgProfiles & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::QueryArgProfiles::QueryArgProfiles
QueryArgProfiles(const Aws::Utils::Xml::XmlNode &xmlNode)
QueryArgProfile.h
Aws::CloudFront::Model::QueryArgProfiles::WithItems
QueryArgProfiles & WithItems(const Aws::Vector< QueryArgProfile > &value)
Definition: QueryArgProfiles.h:95
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::QueryArgProfiles::SetItems
void SetItems(Aws::Vector< QueryArgProfile > &&value)
Definition: QueryArgProfiles.h:89
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::QueryArgProfiles::SetQuantity
void SetQuantity(int value)
Definition: QueryArgProfiles.h:58
Aws::CloudFront::Model::QueryArgProfiles::QueryArgProfiles
QueryArgProfiles()
Aws::CloudFront::Model::QueryArgProfiles::AddItems
QueryArgProfiles & AddItems(const QueryArgProfile &value)
Definition: QueryArgProfiles.h:107
Aws::CloudFront::Model::QueryArgProfiles::SetItems
void SetItems(const Aws::Vector< QueryArgProfile > &value)
Definition: QueryArgProfiles.h:83
Aws::CloudFront::Model::QueryArgProfiles::GetItems
const Aws::Vector< QueryArgProfile > & GetItems() const
Definition: QueryArgProfiles.h:71
Aws::CloudFront::Model::QueryArgProfiles::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: QueryArgProfiles.h:77
Aws::CloudFront::Model::QueryArgProfiles::GetQuantity
int GetQuantity() const
Definition: QueryArgProfiles.h:46
Aws::CloudFront::Model::QueryArgProfiles::WithItems
QueryArgProfiles & WithItems(Aws::Vector< QueryArgProfile > &&value)
Definition: QueryArgProfiles.h:101