AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AllowedMethods.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/CachedMethods.h>
9#include <aws/cloudfront/model/Method.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
39 public:
40 AWS_CLOUDFRONT_API AllowedMethods() = default;
41 AWS_CLOUDFRONT_API AllowedMethods(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_CLOUDFRONT_API AllowedMethods& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
47
54 inline int GetQuantity() const { return m_quantity; }
55 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
56 inline void SetQuantity(int value) {
57 m_quantityHasBeenSet = true;
58 m_quantity = value;
59 }
60 inline AllowedMethods& WithQuantity(int value) {
61 SetQuantity(value);
62 return *this;
63 }
65
67
71 inline const Aws::Vector<Method>& GetItems() const { return m_items; }
72 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
73 template <typename ItemsT = Aws::Vector<Method>>
74 void SetItems(ItemsT&& value) {
75 m_itemsHasBeenSet = true;
76 m_items = std::forward<ItemsT>(value);
77 }
78 template <typename ItemsT = Aws::Vector<Method>>
79 AllowedMethods& WithItems(ItemsT&& value) {
80 SetItems(std::forward<ItemsT>(value));
81 return *this;
82 }
84 m_itemsHasBeenSet = true;
85 m_items.push_back(value);
86 return *this;
87 }
89
91
92 inline const CachedMethods& GetCachedMethods() const { return m_cachedMethods; }
93 inline bool CachedMethodsHasBeenSet() const { return m_cachedMethodsHasBeenSet; }
94 template <typename CachedMethodsT = CachedMethods>
95 void SetCachedMethods(CachedMethodsT&& value) {
96 m_cachedMethodsHasBeenSet = true;
97 m_cachedMethods = std::forward<CachedMethodsT>(value);
98 }
99 template <typename CachedMethodsT = CachedMethods>
100 AllowedMethods& WithCachedMethods(CachedMethodsT&& value) {
101 SetCachedMethods(std::forward<CachedMethodsT>(value));
102 return *this;
103 }
105 private:
106 int m_quantity{0};
107
108 Aws::Vector<Method> m_items;
109
110 CachedMethods m_cachedMethods;
111 bool m_quantityHasBeenSet = false;
112 bool m_itemsHasBeenSet = false;
113 bool m_cachedMethodsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CloudFront
118} // namespace Aws
const CachedMethods & GetCachedMethods() const
AllowedMethods & AddItems(Method value)
AWS_CLOUDFRONT_API AllowedMethods & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Method > & GetItems() const
AllowedMethods & WithItems(ItemsT &&value)
AllowedMethods & WithCachedMethods(CachedMethodsT &&value)
AllowedMethods & WithQuantity(int value)
AWS_CLOUDFRONT_API AllowedMethods()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API AllowedMethods(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCachedMethods(CachedMethodsT &&value)
std::vector< T, Aws::Allocator< T > > Vector