AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ActiveTrustedSigners.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cloudfront/model/Signer.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
34 {
35 public:
36 AWS_CLOUDFRONT_API ActiveTrustedSigners() = default;
37 AWS_CLOUDFRONT_API ActiveTrustedSigners(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API ActiveTrustedSigners& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
49 inline bool GetEnabled() const { return m_enabled; }
50 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
52 inline ActiveTrustedSigners& WithEnabled(bool value) { SetEnabled(value); return *this;}
54
56
59 inline int GetQuantity() const { return m_quantity; }
60 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
61 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
62 inline ActiveTrustedSigners& WithQuantity(int value) { SetQuantity(value); return *this;}
64
66
71 inline const Aws::Vector<Signer>& GetItems() const { return m_items; }
72 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
73 template<typename ItemsT = Aws::Vector<Signer>>
74 void SetItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items = std::forward<ItemsT>(value); }
75 template<typename ItemsT = Aws::Vector<Signer>>
76 ActiveTrustedSigners& WithItems(ItemsT&& value) { SetItems(std::forward<ItemsT>(value)); return *this;}
77 template<typename ItemsT = Signer>
78 ActiveTrustedSigners& AddItems(ItemsT&& value) { m_itemsHasBeenSet = true; m_items.emplace_back(std::forward<ItemsT>(value)); return *this; }
80 private:
81
82 bool m_enabled{false};
83 bool m_enabledHasBeenSet = false;
84
85 int m_quantity{0};
86 bool m_quantityHasBeenSet = false;
87
88 Aws::Vector<Signer> m_items;
89 bool m_itemsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudFront
94} // namespace Aws
AWS_CLOUDFRONT_API ActiveTrustedSigners & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ActiveTrustedSigners & WithQuantity(int value)
AWS_CLOUDFRONT_API ActiveTrustedSigners(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API ActiveTrustedSigners()=default
ActiveTrustedSigners & WithEnabled(bool value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ActiveTrustedSigners & WithItems(ItemsT &&value)
const Aws::Vector< Signer > & GetItems() const
ActiveTrustedSigners & AddItems(ItemsT &&value)
std::vector< T, Aws::Allocator< T > > Vector