AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
TrustedSigners.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
30 public:
31 AWS_CLOUDFRONT_API TrustedSigners() = default;
32 AWS_CLOUDFRONT_API TrustedSigners(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFRONT_API TrustedSigners& 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 TrustedSigners& 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 }
65 inline TrustedSigners& WithQuantity(int value) {
66 SetQuantity(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetItems() const { return m_items; }
76 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
77 template <typename ItemsT = Aws::Vector<Aws::String>>
78 void SetItems(ItemsT&& value) {
79 m_itemsHasBeenSet = true;
80 m_items = std::forward<ItemsT>(value);
81 }
82 template <typename ItemsT = Aws::Vector<Aws::String>>
83 TrustedSigners& WithItems(ItemsT&& value) {
84 SetItems(std::forward<ItemsT>(value));
85 return *this;
86 }
87 template <typename ItemsT = Aws::String>
88 TrustedSigners& AddItems(ItemsT&& value) {
89 m_itemsHasBeenSet = true;
90 m_items.emplace_back(std::forward<ItemsT>(value));
91 return *this;
92 }
94 private:
95 bool m_enabled{false};
96
97 int m_quantity{0};
98
100 bool m_enabledHasBeenSet = false;
101 bool m_quantityHasBeenSet = false;
102 bool m_itemsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace CloudFront
107} // namespace Aws
TrustedSigners & WithQuantity(int value)
TrustedSigners & WithEnabled(bool value)
TrustedSigners & AddItems(ItemsT &&value)
AWS_CLOUDFRONT_API TrustedSigners(const Aws::Utils::Xml::XmlNode &xmlNode)
TrustedSigners & WithItems(ItemsT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< Aws::String > & GetItems() const
AWS_CLOUDFRONT_API TrustedSigners & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API TrustedSigners()=default
std::vector< T, Aws::Allocator< T > > Vector