AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Paths.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
31class Paths {
32 public:
33 AWS_CLOUDFRONT_API Paths() = default;
34 AWS_CLOUDFRONT_API Paths(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFRONT_API Paths& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
40
44 inline int GetQuantity() const { return m_quantity; }
45 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
46 inline void SetQuantity(int value) {
47 m_quantityHasBeenSet = true;
48 m_quantity = value;
49 }
50 inline Paths& WithQuantity(int value) {
51 SetQuantity(value);
52 return *this;
53 }
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) {
65 m_itemsHasBeenSet = true;
66 m_items = std::forward<ItemsT>(value);
67 }
68 template <typename ItemsT = Aws::Vector<Aws::String>>
69 Paths& WithItems(ItemsT&& value) {
70 SetItems(std::forward<ItemsT>(value));
71 return *this;
72 }
73 template <typename ItemsT = Aws::String>
74 Paths& AddItems(ItemsT&& value) {
75 m_itemsHasBeenSet = true;
76 m_items.emplace_back(std::forward<ItemsT>(value));
77 return *this;
78 }
80 private:
81 int m_quantity{0};
82
84 bool m_quantityHasBeenSet = false;
85 bool m_itemsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CloudFront
90} // namespace Aws
void SetQuantity(int value)
Definition Paths.h:46
Paths & WithItems(ItemsT &&value)
Definition Paths.h:69
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:74
const Aws::Vector< Aws::String > & GetItems() const
Definition Paths.h:61
Paths & WithQuantity(int value)
Definition Paths.h:50
bool QuantityHasBeenSet() const
Definition Paths.h:45
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