AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetItems(const Aws::Vector<Method>& value) { m_itemsHasBeenSet = true; m_items = value; }
74 inline void SetItems(Aws::Vector<Method>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
75 inline AllowedMethods& WithItems(const Aws::Vector<Method>& value) { SetItems(value); return *this;}
76 inline AllowedMethods& WithItems(Aws::Vector<Method>&& value) { SetItems(std::move(value)); return *this;}
77 inline AllowedMethods& AddItems(const Method& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
78 inline AllowedMethods& AddItems(Method&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
80
82
83 inline const CachedMethods& GetCachedMethods() const{ return m_cachedMethods; }
84 inline bool CachedMethodsHasBeenSet() const { return m_cachedMethodsHasBeenSet; }
85 inline void SetCachedMethods(const CachedMethods& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = value; }
86 inline void SetCachedMethods(CachedMethods&& value) { m_cachedMethodsHasBeenSet = true; m_cachedMethods = std::move(value); }
87 inline AllowedMethods& WithCachedMethods(const CachedMethods& value) { SetCachedMethods(value); return *this;}
88 inline AllowedMethods& WithCachedMethods(CachedMethods&& value) { SetCachedMethods(std::move(value)); return *this;}
90 private:
91
92 int m_quantity;
93 bool m_quantityHasBeenSet = false;
94
95 Aws::Vector<Method> m_items;
96 bool m_itemsHasBeenSet = false;
97
98 CachedMethods m_cachedMethods;
99 bool m_cachedMethodsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CloudFront
104} // namespace Aws
AllowedMethods & AddItems(Method &&value)
AllowedMethods & AddItems(const Method &value)
const CachedMethods & GetCachedMethods() const
void SetItems(Aws::Vector< Method > &&value)
AllowedMethods & WithItems(const Aws::Vector< Method > &value)
AllowedMethods & WithItems(Aws::Vector< Method > &&value)
AWS_CLOUDFRONT_API AllowedMethods & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Method > & GetItems() const
void SetCachedMethods(const CachedMethods &value)
void SetCachedMethods(CachedMethods &&value)
void SetItems(const Aws::Vector< Method > &value)
AllowedMethods & WithQuantity(int value)
AllowedMethods & WithCachedMethods(CachedMethods &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API AllowedMethods(const Aws::Utils::Xml::XmlNode &xmlNode)
AllowedMethods & WithCachedMethods(const CachedMethods &value)
std::vector< T, Aws::Allocator< T > > Vector