AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ActiveTrustedKeyGroups.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/KGKeyPairIds.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
30 public:
31 AWS_CLOUDFRONT_API ActiveTrustedKeyGroups() = default;
32 AWS_CLOUDFRONT_API ActiveTrustedKeyGroups(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFRONT_API ActiveTrustedKeyGroups& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
49 inline ActiveTrustedKeyGroups& WithEnabled(bool value) {
50 SetEnabled(value);
51 return *this;
52 }
54
56
59 inline int GetQuantity() const { return m_quantity; }
60 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
61 inline void SetQuantity(int value) {
62 m_quantityHasBeenSet = true;
63 m_quantity = value;
64 }
66 SetQuantity(value);
67 return *this;
68 }
70
72
77 inline const Aws::Vector<KGKeyPairIds>& GetItems() const { return m_items; }
78 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
79 template <typename ItemsT = Aws::Vector<KGKeyPairIds>>
80 void SetItems(ItemsT&& value) {
81 m_itemsHasBeenSet = true;
82 m_items = std::forward<ItemsT>(value);
83 }
84 template <typename ItemsT = Aws::Vector<KGKeyPairIds>>
86 SetItems(std::forward<ItemsT>(value));
87 return *this;
88 }
89 template <typename ItemsT = KGKeyPairIds>
91 m_itemsHasBeenSet = true;
92 m_items.emplace_back(std::forward<ItemsT>(value));
93 return *this;
94 }
96 private:
97 bool m_enabled{false};
98
99 int m_quantity{0};
100
102 bool m_enabledHasBeenSet = false;
103 bool m_quantityHasBeenSet = false;
104 bool m_itemsHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace CloudFront
109} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ActiveTrustedKeyGroups & WithQuantity(int value)
ActiveTrustedKeyGroups & AddItems(ItemsT &&value)
AWS_CLOUDFRONT_API ActiveTrustedKeyGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API ActiveTrustedKeyGroups()=default
ActiveTrustedKeyGroups & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API ActiveTrustedKeyGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ActiveTrustedKeyGroups & WithEnabled(bool value)
const Aws::Vector< KGKeyPairIds > & GetItems() const
std::vector< T, Aws::Allocator< T > > Vector