AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EncryptionEntities.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/EncryptionEntity.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
29 public:
30 AWS_CLOUDFRONT_API EncryptionEntities() = default;
31 AWS_CLOUDFRONT_API EncryptionEntities(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API EncryptionEntities& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
41 inline int GetQuantity() const { return m_quantity; }
42 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
43 inline void SetQuantity(int value) {
44 m_quantityHasBeenSet = true;
45 m_quantity = value;
46 }
47 inline EncryptionEntities& WithQuantity(int value) {
48 SetQuantity(value);
49 return *this;
50 }
52
54
58 inline const Aws::Vector<EncryptionEntity>& GetItems() const { return m_items; }
59 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
60 template <typename ItemsT = Aws::Vector<EncryptionEntity>>
61 void SetItems(ItemsT&& value) {
62 m_itemsHasBeenSet = true;
63 m_items = std::forward<ItemsT>(value);
64 }
65 template <typename ItemsT = Aws::Vector<EncryptionEntity>>
66 EncryptionEntities& WithItems(ItemsT&& value) {
67 SetItems(std::forward<ItemsT>(value));
68 return *this;
69 }
70 template <typename ItemsT = EncryptionEntity>
71 EncryptionEntities& AddItems(ItemsT&& value) {
72 m_itemsHasBeenSet = true;
73 m_items.emplace_back(std::forward<ItemsT>(value));
74 return *this;
75 }
77 private:
78 int m_quantity{0};
79
81 bool m_quantityHasBeenSet = false;
82 bool m_itemsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace CloudFront
87} // namespace Aws
EncryptionEntities & WithItems(ItemsT &&value)
const Aws::Vector< EncryptionEntity > & GetItems() const
AWS_CLOUDFRONT_API EncryptionEntities & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EncryptionEntities & AddItems(ItemsT &&value)
AWS_CLOUDFRONT_API EncryptionEntities(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API EncryptionEntities()=default
EncryptionEntities & WithQuantity(int value)
std::vector< T, Aws::Allocator< T > > Vector