AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TrustedKeyGroups.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
29 public:
30 AWS_CLOUDFRONT_API TrustedKeyGroups() = default;
31 AWS_CLOUDFRONT_API TrustedKeyGroups(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFRONT_API TrustedKeyGroups& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
42 inline bool GetEnabled() const { return m_enabled; }
43 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
44 inline void SetEnabled(bool value) {
45 m_enabledHasBeenSet = true;
46 m_enabled = value;
47 }
48 inline TrustedKeyGroups& WithEnabled(bool value) {
49 SetEnabled(value);
50 return *this;
51 }
53
55
58 inline int GetQuantity() const { return m_quantity; }
59 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 inline void SetQuantity(int value) {
61 m_quantityHasBeenSet = true;
62 m_quantity = value;
63 }
64 inline TrustedKeyGroups& WithQuantity(int value) {
65 SetQuantity(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
75 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
76 template <typename ItemsT = Aws::Vector<Aws::String>>
77 void SetItems(ItemsT&& value) {
78 m_itemsHasBeenSet = true;
79 m_items = std::forward<ItemsT>(value);
80 }
81 template <typename ItemsT = Aws::Vector<Aws::String>>
82 TrustedKeyGroups& WithItems(ItemsT&& value) {
83 SetItems(std::forward<ItemsT>(value));
84 return *this;
85 }
86 template <typename ItemsT = Aws::String>
87 TrustedKeyGroups& AddItems(ItemsT&& value) {
88 m_itemsHasBeenSet = true;
89 m_items.emplace_back(std::forward<ItemsT>(value));
90 return *this;
91 }
93 private:
94 bool m_enabled{false};
95
96 int m_quantity{0};
97
99 bool m_enabledHasBeenSet = false;
100 bool m_quantityHasBeenSet = false;
101 bool m_itemsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudFront
106} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< Aws::String > & GetItems() const
AWS_CLOUDFRONT_API TrustedKeyGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustedKeyGroups & AddItems(ItemsT &&value)
TrustedKeyGroups & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API TrustedKeyGroups()=default
TrustedKeyGroups & WithQuantity(int value)
AWS_CLOUDFRONT_API TrustedKeyGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustedKeyGroups & WithEnabled(bool value)
std::vector< T, Aws::Allocator< T > > Vector