AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TrustedKeyGroups.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDFRONT_API TrustedKeyGroups() = default;
36 AWS_CLOUDFRONT_API TrustedKeyGroups(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API TrustedKeyGroups& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
48 inline bool GetEnabled() const { return m_enabled; }
49 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
50 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
51 inline TrustedKeyGroups& WithEnabled(bool value) { SetEnabled(value); return *this;}
53
55
58 inline int GetQuantity() const { return m_quantity; }
59 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
60 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
61 inline TrustedKeyGroups& WithQuantity(int value) { SetQuantity(value); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
69 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
70 template<typename ItemsT = Aws::Vector<Aws::String>>
71 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
72 template<typename ItemsT = Aws::Vector<Aws::String>>
73 TrustedKeyGroups& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
74 template<typename ItemsT = Aws::String>
75 TrustedKeyGroups& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
77 private:
78
79 bool m_enabled{false};
80 bool m_enabledHasBeenSet = false;
81
82 int m_quantity{0};
83 bool m_quantityHasBeenSet = false;
84
86 bool m_itemsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudFront
91} // 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