AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActiveTrustedKeyGroups.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/KGKeyPairIds.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 ActiveTrustedKeyGroups();
37 AWS_CLOUDFRONT_API ActiveTrustedKeyGroups(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API ActiveTrustedKeyGroups& 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 ActiveTrustedKeyGroups& 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 ActiveTrustedKeyGroups& WithQuantity(int value) { SetQuantity(value); return *this;}
64
66
71 inline const Aws::Vector<KGKeyPairIds>& GetItems() const{ return m_items; }
72 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
73 inline void SetItems(const Aws::Vector<KGKeyPairIds>& value) { m_itemsHasBeenSet = true; m_items = value; }
74 inline void SetItems(Aws::Vector<KGKeyPairIds>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
75 inline ActiveTrustedKeyGroups& WithItems(const Aws::Vector<KGKeyPairIds>& value) { SetItems(value); return *this;}
76 inline ActiveTrustedKeyGroups& WithItems(Aws::Vector<KGKeyPairIds>&& value) { SetItems(std::move(value)); return *this;}
77 inline ActiveTrustedKeyGroups& AddItems(const KGKeyPairIds& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
78 inline ActiveTrustedKeyGroups& AddItems(KGKeyPairIds&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
80 private:
81
82 bool m_enabled;
83 bool m_enabledHasBeenSet = false;
84
85 int m_quantity;
86 bool m_quantityHasBeenSet = false;
87
89 bool m_itemsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudFront
94} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ActiveTrustedKeyGroups & WithQuantity(int value)
ActiveTrustedKeyGroups & AddItems(const KGKeyPairIds &value)
ActiveTrustedKeyGroups & WithItems(const Aws::Vector< KGKeyPairIds > &value)
void SetItems(Aws::Vector< KGKeyPairIds > &&value)
void SetItems(const Aws::Vector< KGKeyPairIds > &value)
AWS_CLOUDFRONT_API ActiveTrustedKeyGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API ActiveTrustedKeyGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ActiveTrustedKeyGroups & WithEnabled(bool value)
const Aws::Vector< KGKeyPairIds > & GetItems() const
ActiveTrustedKeyGroups & AddItems(KGKeyPairIds &&value)
ActiveTrustedKeyGroups & WithItems(Aws::Vector< KGKeyPairIds > &&value)
std::vector< T, Aws::Allocator< T > > Vector