AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
QueryStringNames.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
28 public:
29 AWS_CLOUDFRONT_API QueryStringNames() = default;
30 AWS_CLOUDFRONT_API QueryStringNames(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFRONT_API QueryStringNames& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline int GetQuantity() const { return m_quantity; }
40 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
41 inline void SetQuantity(int value) {
42 m_quantityHasBeenSet = true;
43 m_quantity = value;
44 }
45 inline QueryStringNames& WithQuantity(int value) {
46 SetQuantity(value);
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
56 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
57 template <typename ItemsT = Aws::Vector<Aws::String>>
58 void SetItems(ItemsT&& value) {
59 m_itemsHasBeenSet = true;
60 m_items = std::forward<ItemsT>(value);
61 }
62 template <typename ItemsT = Aws::Vector<Aws::String>>
63 QueryStringNames& WithItems(ItemsT&& value) {
64 SetItems(std::forward<ItemsT>(value));
65 return *this;
66 }
67 template <typename ItemsT = Aws::String>
68 QueryStringNames& AddItems(ItemsT&& value) {
69 m_itemsHasBeenSet = true;
70 m_items.emplace_back(std::forward<ItemsT>(value));
71 return *this;
72 }
74 private:
75 int m_quantity{0};
76
78 bool m_quantityHasBeenSet = false;
79 bool m_itemsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace CloudFront
84} // namespace Aws
QueryStringNames & WithQuantity(int value)
AWS_CLOUDFRONT_API QueryStringNames(const Aws::Utils::Xml::XmlNode &xmlNode)
QueryStringNames & AddItems(ItemsT &&value)
const Aws::Vector< Aws::String > & GetItems() const
AWS_CLOUDFRONT_API QueryStringNames()=default
QueryStringNames & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API QueryStringNames & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::vector< T, Aws::Allocator< T > > Vector