AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CachedMethods.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/Method.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFront {
20namespace Model {
21
35 public:
36 AWS_CLOUDFRONT_API CachedMethods() = default;
37 AWS_CLOUDFRONT_API CachedMethods(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API CachedMethods& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
43
49 inline int GetQuantity() const { return m_quantity; }
50 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
51 inline void SetQuantity(int value) {
52 m_quantityHasBeenSet = true;
53 m_quantity = value;
54 }
55 inline CachedMethods& WithQuantity(int value) {
56 SetQuantity(value);
57 return *this;
58 }
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) {
73 m_itemsHasBeenSet = true;
74 m_items = std::forward<ItemsT>(value);
75 }
76 template <typename ItemsT = Aws::Vector<Method>>
77 CachedMethods& WithItems(ItemsT&& value) {
78 SetItems(std::forward<ItemsT>(value));
79 return *this;
80 }
81 inline CachedMethods& AddItems(Method value) {
82 m_itemsHasBeenSet = true;
83 m_items.push_back(value);
84 return *this;
85 }
87 private:
88 int m_quantity{0};
89
90 Aws::Vector<Method> m_items;
91 bool m_quantityHasBeenSet = false;
92 bool m_itemsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace CloudFront
97} // 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