AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CachedMethods.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cloudfront/model/Method.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_CLOUDFRONT_API CachedMethods();
42 AWS_CLOUDFRONT_API CachedMethods(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_CLOUDFRONT_API CachedMethods& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
47
49
55 inline int GetQuantity() const{ return m_quantity; }
56 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
57 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
58 inline CachedMethods& WithQuantity(int value) { SetQuantity(value); return *this;}
60
62
69 inline const Aws::Vector<Method>& GetItems() const{ return m_items; }
70 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
71 inline void SetItems(const Aws::Vector<Method>& value) { m_itemsHasBeenSet = true; m_items = value; }
72 inline void SetItems(Aws::Vector<Method>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
73 inline CachedMethods& WithItems(const Aws::Vector<Method>& value) { SetItems(value); return *this;}
74 inline CachedMethods& WithItems(Aws::Vector<Method>&& value) { SetItems(std::move(value)); return *this;}
75 inline CachedMethods& AddItems(const Method& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
76 inline CachedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
78 private:
79
80 int m_quantity;
81 bool m_quantityHasBeenSet = false;
82
83 Aws::Vector<Method> m_items;
84 bool m_itemsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CloudFront
89} // namespace Aws
const Aws::Vector< Method > & GetItems() const
AWS_CLOUDFRONT_API CachedMethods & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CachedMethods & AddItems(const Method &value)
void SetItems(const Aws::Vector< Method > &value)
CachedMethods & AddItems(Method &&value)
CachedMethods & WithItems(Aws::Vector< Method > &&value)
AWS_CLOUDFRONT_API CachedMethods(const Aws::Utils::Xml::XmlNode &xmlNode)
CachedMethods & WithQuantity(int value)
CachedMethods & WithItems(const Aws::Vector< Method > &value)
void SetItems(Aws::Vector< Method > &&value)
std::vector< T, Aws::Allocator< T > > Vector