AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AllowedMethods.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/CachedMethods.h>
10#include <aws/cloudfront/model/Method.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_CLOUDFRONT_API AllowedMethods() = default;
46 AWS_CLOUDFRONT_API AllowedMethods(const Aws::Utils::Xml::XmlNode& xmlNode);
47 AWS_CLOUDFRONT_API AllowedMethods& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48
49 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
50
51
53
60 inline int GetQuantity() const { return m_quantity; }
61 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
62 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
63 inline AllowedMethods& WithQuantity(int value) { SetQuantity(value); return *this;}
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) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
75 template<typename ItemsT = Aws::Vector<Method>>
76 AllowedMethods& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
77 inline AllowedMethods& AddItems(Method value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
79
81
82 inline const CachedMethods& GetCachedMethods() const { return m_cachedMethods; }
83 inline bool CachedMethodsHasBeenSet() const { return m_cachedMethodsHasBeenSet; }
84 template<typename CachedMethodsT = CachedMethods>
85 void SetCachedMethods(CachedMethodsT&& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = std::forward<CachedMethodsT>(value); }
86 template<typename CachedMethodsT = CachedMethods>
87 AllowedMethods& WithCachedMethods(CachedMethodsT&& value) { SetCachedMethods(std::forward<CachedMethodsT>(value)); return *this;}
89 private:
90
91 int m_quantity{0};
92 bool m_quantityHasBeenSet = false;
93
94 Aws::Vector<Method> m_items;
95 bool m_itemsHasBeenSet = false;
96
97 CachedMethods m_cachedMethods;
98 bool m_cachedMethodsHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CloudFront
103} // 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