AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ItemsT = Aws::Vector<Method>>
72 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
73 template<typename ItemsT = Aws::Vector<Method>>
74 CachedMethods& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
75 inline CachedMethods& AddItems(Method value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
77 private:
78
79 int m_quantity{0};
80 bool m_quantityHasBeenSet = false;
81
82 Aws::Vector<Method> m_items;
83 bool m_itemsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CloudFront
88} // namespace Aws
const Aws::Vector< Method > & GetItems() const
AWS_CLOUDFRONT_API CachedMethods & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CachedMethods & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API CachedMethods(const Aws::Utils::Xml::XmlNode &xmlNode)
CachedMethods & WithQuantity(int value)
CachedMethods & AddItems(Method value)
AWS_CLOUDFRONT_API CachedMethods()=default
std::vector< T, Aws::Allocator< T > > Vector