AWS SDK for C++  1.9.154
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 
49  inline bool GetEnabled() const{ return m_enabled; }
50 
57  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
58 
65  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
66 
73  inline ActiveTrustedSigners& WithEnabled(bool value) { SetEnabled(value); return *this;}
74 
75 
79  inline int GetQuantity() const{ return m_quantity; }
80 
84  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
85 
89  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
90 
94  inline ActiveTrustedSigners& WithQuantity(int value) { SetQuantity(value); return *this;}
95 
96 
102  inline const Aws::Vector<Signer>& GetItems() const{ return m_items; }
103 
109  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
110 
116  inline void SetItems(const Aws::Vector<Signer>& value) { m_itemsHasBeenSet = true; m_items = value; }
117 
123  inline void SetItems(Aws::Vector<Signer>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
124 
130  inline ActiveTrustedSigners& WithItems(const Aws::Vector<Signer>& value) { SetItems(value); return *this;}
131 
137  inline ActiveTrustedSigners& WithItems(Aws::Vector<Signer>&& value) { SetItems(std::move(value)); return *this;}
138 
144  inline ActiveTrustedSigners& AddItems(const Signer& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
145 
151  inline ActiveTrustedSigners& AddItems(Signer&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
152 
153  private:
154 
155  bool m_enabled;
156  bool m_enabledHasBeenSet;
157 
158  int m_quantity;
159  bool m_quantityHasBeenSet;
160 
161  Aws::Vector<Signer> m_items;
162  bool m_itemsHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace CloudFront
167 } // namespace Aws
Aws::CloudFront::Model::ActiveTrustedSigners
Definition: ActiveTrustedSigners.h:34
Aws::CloudFront::Model::ActiveTrustedSigners::WithQuantity
ActiveTrustedSigners & WithQuantity(int value)
Definition: ActiveTrustedSigners.h:94
Aws::CloudFront::Model::ActiveTrustedSigners::WithEnabled
ActiveTrustedSigners & WithEnabled(bool value)
Definition: ActiveTrustedSigners.h:73
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:49
AWSVector.h
Aws::CloudFront::Model::ActiveTrustedSigners::SetItems
void SetItems(Aws::Vector< Signer > &&value)
Definition: ActiveTrustedSigners.h:123
Aws::CloudFront::Model::ActiveTrustedSigners::GetQuantity
int GetQuantity() const
Definition: ActiveTrustedSigners.h:79
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:109
Aws::CloudFront::Model::ActiveTrustedSigners::GetItems
const Aws::Vector< Signer > & GetItems() const
Definition: ActiveTrustedSigners.h:102
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:130
Aws::CloudFront::Model::ActiveTrustedSigners::AddItems
ActiveTrustedSigners & AddItems(Signer &&value)
Definition: ActiveTrustedSigners.h:151
CloudFront_EXPORTS.h
Aws::CloudFront::Model::ActiveTrustedSigners::SetEnabled
void SetEnabled(bool value)
Definition: ActiveTrustedSigners.h:65
Aws::CloudFront::Model::ActiveTrustedSigners::SetQuantity
void SetQuantity(int value)
Definition: ActiveTrustedSigners.h:89
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:116
Aws::CloudFront::Model::ActiveTrustedSigners::AddItems
ActiveTrustedSigners & AddItems(const Signer &value)
Definition: ActiveTrustedSigners.h:144
Aws::CloudFront::Model::ActiveTrustedSigners::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: ActiveTrustedSigners.h:57
Aws::CloudFront::Model::ActiveTrustedSigners::WithItems
ActiveTrustedSigners & WithItems(Aws::Vector< Signer > &&value)
Definition: ActiveTrustedSigners.h:137
Aws::CloudFront::Model::ActiveTrustedSigners::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: ActiveTrustedSigners.h:84