AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StatusCodes.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
33 {
34 public:
35 AWS_CLOUDFRONT_API StatusCodes();
36 AWS_CLOUDFRONT_API StatusCodes(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API StatusCodes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline int GetQuantity() const{ return m_quantity; }
47 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
48 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
49 inline StatusCodes& WithQuantity(int value) { SetQuantity(value); return *this;}
51
53
56 inline const Aws::Vector<int>& GetItems() const{ return m_items; }
57 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
58 inline void SetItems(const Aws::Vector<int>& value) { m_itemsHasBeenSet = true; m_items = value; }
59 inline void SetItems(Aws::Vector<int>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
60 inline StatusCodes& WithItems(const Aws::Vector<int>& value) { SetItems(value); return *this;}
61 inline StatusCodes& WithItems(Aws::Vector<int>&& value) { SetItems(std::move(value)); return *this;}
62 inline StatusCodes& AddItems(int value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
64 private:
65
66 int m_quantity;
67 bool m_quantityHasBeenSet = false;
68
69 Aws::Vector<int> m_items;
70 bool m_itemsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CloudFront
75} // namespace Aws
const Aws::Vector< int > & GetItems() const
Definition StatusCodes.h:56
void SetItems(Aws::Vector< int > &&value)
Definition StatusCodes.h:59
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API StatusCodes(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API StatusCodes & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API StatusCodes()
StatusCodes & WithItems(Aws::Vector< int > &&value)
Definition StatusCodes.h:61
StatusCodes & WithQuantity(int value)
Definition StatusCodes.h:49
StatusCodes & WithItems(const Aws::Vector< int > &value)
Definition StatusCodes.h:60
void SetItems(const Aws::Vector< int > &value)
Definition StatusCodes.h:58
StatusCodes & AddItems(int value)
Definition StatusCodes.h:62
std::vector< T, Aws::Allocator< T > > Vector