AWS SDK for C++  1.9.16
AWS SDK for C++
ActiveTrustedSigners.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 ActiveTrustedSigners& 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 ActiveTrustedSigners& WithQuantity(int value) { SetQuantity(value); return *this;}
91 
92 
98  inline const Aws::Vector<Signer>& GetItems() const{ return m_items; }
99 
105  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
106 
112  inline void SetItems(const Aws::Vector<Signer>& value) { m_itemsHasBeenSet = true; m_items = value; }
113 
119  inline void SetItems(Aws::Vector<Signer>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
120 
126  inline ActiveTrustedSigners& WithItems(const Aws::Vector<Signer>& value) { SetItems(value); return *this;}
127 
133  inline ActiveTrustedSigners& WithItems(Aws::Vector<Signer>&& value) { SetItems(std::move(value)); return *this;}
134 
140  inline ActiveTrustedSigners& AddItems(const Signer& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
141 
147  inline ActiveTrustedSigners& AddItems(Signer&& 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 
157  Aws::Vector<Signer> m_items;
158  bool m_itemsHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace CloudFront
163 } // namespace Aws
Aws::CloudFront::Model::ActiveTrustedSigners
Definition: ActiveTrustedSigners.h:34
Aws::CloudFront::Model::ActiveTrustedSigners::WithQuantity
ActiveTrustedSigners & WithQuantity(int value)
Definition: ActiveTrustedSigners.h:90
Aws::CloudFront::Model::ActiveTrustedSigners::WithEnabled
ActiveTrustedSigners & WithEnabled(bool value)
Definition: ActiveTrustedSigners.h:69
Aws::CloudFront::Model::ActiveTrustedSigners::ActiveTrustedSigners
ActiveTrustedSigners()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::Signer
Definition: Signer.h:34
Aws::CloudFront::Model::ActiveTrustedSigners::GetEnabled
bool GetEnabled() const
Definition: ActiveTrustedSigners.h:48
AWSVector.h
Aws::CloudFront::Model::ActiveTrustedSigners::SetItems
void SetItems(Aws::Vector< Signer > &&value)
Definition: ActiveTrustedSigners.h:119
Aws::CloudFront::Model::ActiveTrustedSigners::GetQuantity
int GetQuantity() const
Definition: ActiveTrustedSigners.h:75
Signer.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::ActiveTrustedSigners::ActiveTrustedSigners
ActiveTrustedSigners(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::ActiveTrustedSigners::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: ActiveTrustedSigners.h:105
Aws::CloudFront::Model::ActiveTrustedSigners::GetItems
const Aws::Vector< Signer > & GetItems() const
Definition: ActiveTrustedSigners.h:98
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::ActiveTrustedSigners::WithItems
ActiveTrustedSigners & WithItems(const Aws::Vector< Signer > &value)
Definition: ActiveTrustedSigners.h:126
Aws::CloudFront::Model::ActiveTrustedSigners::AddItems
ActiveTrustedSigners & AddItems(Signer &&value)
Definition: ActiveTrustedSigners.h:147
CloudFront_EXPORTS.h
Aws::CloudFront::Model::ActiveTrustedSigners::SetEnabled
void SetEnabled(bool value)
Definition: ActiveTrustedSigners.h:62
Aws::CloudFront::Model::ActiveTrustedSigners::SetQuantity
void SetQuantity(int value)
Definition: ActiveTrustedSigners.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ActiveTrustedSigners::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::ActiveTrustedSigners::operator=
ActiveTrustedSigners & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::ActiveTrustedSigners::SetItems
void SetItems(const Aws::Vector< Signer > &value)
Definition: ActiveTrustedSigners.h:112
Aws::CloudFront::Model::ActiveTrustedSigners::AddItems
ActiveTrustedSigners & AddItems(const Signer &value)
Definition: ActiveTrustedSigners.h:140
Aws::CloudFront::Model::ActiveTrustedSigners::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ActiveTrustedSigners.h:55
Aws::CloudFront::Model::ActiveTrustedSigners::WithItems
ActiveTrustedSigners & WithItems(Aws::Vector< Signer > &&value)
Definition: ActiveTrustedSigners.h:133
Aws::CloudFront::Model::ActiveTrustedSigners::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: ActiveTrustedSigners.h:80