AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Paths.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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
35 class Paths
36 {
37 public:
38 AWS_CLOUDFRONT_API Paths() = default;
39 AWS_CLOUDFRONT_API Paths(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFRONT_API Paths& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
50 inline int GetQuantity() const { return m_quantity; }
51 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
52 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
53 inline Paths& WithQuantity(int value) { SetQuantity(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
62 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
63 template<typename ItemsT = Aws::Vector<Aws::String>>
64 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
65 template<typename ItemsT = Aws::Vector<Aws::String>>
66 Paths& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
67 template<typename ItemsT = Aws::String>
68 Paths& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
70 private:
71
72 int m_quantity{0};
73 bool m_quantityHasBeenSet = false;
74
76 bool m_itemsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CloudFront
81} // namespace Aws
void SetQuantity(int value)
Definition Paths.h:52
Paths & WithItems(ItemsT &&value)
Definition Paths.h:66
AWS_CLOUDFRONT_API Paths(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API Paths & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool ItemsHasBeenSet() const
Definition Paths.h:62
Paths & AddItems(ItemsT &&value)
Definition Paths.h:68
const Aws::Vector< Aws::String > & GetItems() const
Definition Paths.h:61
Paths & WithQuantity(int value)
Definition Paths.h:53
bool QuantityHasBeenSet() const
Definition Paths.h:51
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API Paths()=default
void SetItems(ItemsT &&value)
Definition Paths.h:64
std::vector< T, Aws::Allocator< T > > Vector