AWS SDK for C++  1.9.18
AWS SDK for C++
ActiveTrustedKeyGroups.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
34  {
35  public:
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
48  inline bool GetEnabled() const{ return m_enabled; }
49 
55  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
56 
62  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
63 
69  inline ActiveTrustedKeyGroups& WithEnabled(bool value) { SetEnabled(value); return *this;}
70 
71 
75  inline int GetQuantity() const{ return m_quantity; }
76 
80  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
81 
85  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
86 
90  inline ActiveTrustedKeyGroups& WithQuantity(int value) { SetQuantity(value); return *this;}
91 
92 
98  inline const Aws::Vector<KGKeyPairIds>& GetItems() const{ return m_items; }
99 
105  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
106 
112  inline void SetItems(const Aws::Vector<KGKeyPairIds>& value) { m_itemsHasBeenSet = true; m_items = value; }
113 
119  inline void SetItems(Aws::Vector<KGKeyPairIds>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
120 
126  inline ActiveTrustedKeyGroups& WithItems(const Aws::Vector<KGKeyPairIds>& value) { SetItems(value); return *this;}
127 
133  inline ActiveTrustedKeyGroups& WithItems(Aws::Vector<KGKeyPairIds>&& value) { SetItems(std::move(value)); return *this;}
134 
140  inline ActiveTrustedKeyGroups& AddItems(const KGKeyPairIds& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
141 
147  inline ActiveTrustedKeyGroups& AddItems(KGKeyPairIds&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
148 
149  private:
150 
151  bool m_enabled;
152  bool m_enabledHasBeenSet;
153 
154  int m_quantity;
155  bool m_quantityHasBeenSet;
156 
158  bool m_itemsHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace CloudFront
163 } // namespace Aws
KGKeyPairIds.h
Aws::CloudFront::Model::ActiveTrustedKeyGroups::WithItems
ActiveTrustedKeyGroups & WithItems(Aws::Vector< KGKeyPairIds > &&value)
Definition: ActiveTrustedKeyGroups.h:133
Aws::CloudFront::Model::ActiveTrustedKeyGroups::ActiveTrustedKeyGroups
ActiveTrustedKeyGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::ActiveTrustedKeyGroups::GetEnabled
bool GetEnabled() const
Definition: ActiveTrustedKeyGroups.h:48
Aws::CloudFront::Model::ActiveTrustedKeyGroups::SetItems
void SetItems(const Aws::Vector< KGKeyPairIds > &value)
Definition: ActiveTrustedKeyGroups.h:112
Aws::CloudFront::Model::ActiveTrustedKeyGroups::AddItems
ActiveTrustedKeyGroups & AddItems(const KGKeyPairIds &value)
Definition: ActiveTrustedKeyGroups.h:140
Aws::CloudFront::Model::ActiveTrustedKeyGroups::WithItems
ActiveTrustedKeyGroups & WithItems(const Aws::Vector< KGKeyPairIds > &value)
Definition: ActiveTrustedKeyGroups.h:126
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::ActiveTrustedKeyGroups::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ActiveTrustedKeyGroups.h:55
Aws::CloudFront::Model::ActiveTrustedKeyGroups::SetQuantity
void SetQuantity(int value)
Definition: ActiveTrustedKeyGroups.h:85
AWSVector.h
Aws::CloudFront::Model::ActiveTrustedKeyGroups::SetItems
void SetItems(Aws::Vector< KGKeyPairIds > &&value)
Definition: ActiveTrustedKeyGroups.h:119
Aws::CloudFront::Model::KGKeyPairIds
Definition: KGKeyPairIds.h:33
Aws::CloudFront::Model::ActiveTrustedKeyGroups::SetEnabled
void SetEnabled(bool value)
Definition: ActiveTrustedKeyGroups.h:62
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::ActiveTrustedKeyGroups::GetQuantity
int GetQuantity() const
Definition: ActiveTrustedKeyGroups.h:75
Aws::CloudFront::Model::ActiveTrustedKeyGroups::ActiveTrustedKeyGroups
ActiveTrustedKeyGroups()
Aws::CloudFront::Model::ActiveTrustedKeyGroups::WithEnabled
ActiveTrustedKeyGroups & WithEnabled(bool value)
Definition: ActiveTrustedKeyGroups.h:69
Aws::CloudFront::Model::ActiveTrustedKeyGroups
Definition: ActiveTrustedKeyGroups.h:34
Aws::CloudFront::Model::ActiveTrustedKeyGroups::WithQuantity
ActiveTrustedKeyGroups & WithQuantity(int value)
Definition: ActiveTrustedKeyGroups.h:90
Aws::CloudFront::Model::ActiveTrustedKeyGroups::operator=
ActiveTrustedKeyGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::ActiveTrustedKeyGroups::GetItems
const Aws::Vector< KGKeyPairIds > & GetItems() const
Definition: ActiveTrustedKeyGroups.h:98
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::ActiveTrustedKeyGroups::AddItems
ActiveTrustedKeyGroups & AddItems(KGKeyPairIds &&value)
Definition: ActiveTrustedKeyGroups.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ActiveTrustedKeyGroups::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::ActiveTrustedKeyGroups::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: ActiveTrustedKeyGroups.h:105
Aws::CloudFront::Model::ActiveTrustedKeyGroups::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: ActiveTrustedKeyGroups.h:80