AWS SDK for C++  1.9.18
AWS SDK for C++
StatusCodes.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
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 StatusCodes& WithQuantity(int value) { SetQuantity(value); return *this;}
61 
62 
66  inline const Aws::Vector<int>& GetItems() const{ return m_items; }
67 
71  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
72 
76  inline void SetItems(const Aws::Vector<int>& value) { m_itemsHasBeenSet = true; m_items = value; }
77 
81  inline void SetItems(Aws::Vector<int>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
82 
86  inline StatusCodes& WithItems(const Aws::Vector<int>& value) { SetItems(value); return *this;}
87 
91  inline StatusCodes& WithItems(Aws::Vector<int>&& value) { SetItems(std::move(value)); return *this;}
92 
96  inline StatusCodes& AddItems(int value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
97 
98  private:
99 
100  int m_quantity;
101  bool m_quantityHasBeenSet;
102 
103  Aws::Vector<int> m_items;
104  bool m_itemsHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace CloudFront
109 } // namespace Aws
Aws::CloudFront::Model::StatusCodes::StatusCodes
StatusCodes()
Aws::CloudFront::Model::StatusCodes::StatusCodes
StatusCodes(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::StatusCodes::GetQuantity
int GetQuantity() const
Definition: StatusCodes.h:45
Aws::CloudFront::Model::StatusCodes::SetItems
void SetItems(Aws::Vector< int > &&value)
Definition: StatusCodes.h:81
Aws::CloudFront::Model::StatusCodes::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: StatusCodes.h:71
Aws::CloudFront::Model::StatusCodes
Definition: StatusCodes.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::StatusCodes::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: StatusCodes.h:50
AWSVector.h
Aws::CloudFront::Model::StatusCodes::WithItems
StatusCodes & WithItems(Aws::Vector< int > &&value)
Definition: StatusCodes.h:91
Aws::CloudFront::Model::StatusCodes::AddItems
StatusCodes & AddItems(int value)
Definition: StatusCodes.h:96
Aws::CloudFront::Model::StatusCodes::SetQuantity
void SetQuantity(int value)
Definition: StatusCodes.h:55
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::StatusCodes::operator=
StatusCodes & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::StatusCodes::GetItems
const Aws::Vector< int > & GetItems() const
Definition: StatusCodes.h:66
Aws::CloudFront::Model::StatusCodes::WithQuantity
StatusCodes & WithQuantity(int value)
Definition: StatusCodes.h:60
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::StatusCodes::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::StatusCodes::WithItems
StatusCodes & WithItems(const Aws::Vector< int > &value)
Definition: StatusCodes.h:86
Aws::CloudFront::Model::StatusCodes::SetItems
void SetItems(const Aws::Vector< int > &value)
Definition: StatusCodes.h:76