AWS SDK for C++  1.9.20
AWS SDK for C++
TrustedSigners.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 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
47  inline bool GetEnabled() const{ return m_enabled; }
48 
54  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
55 
61  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
62 
68  inline TrustedSigners& WithEnabled(bool value) { SetEnabled(value); return *this;}
69 
70 
74  inline int GetQuantity() const{ return m_quantity; }
75 
79  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
80 
84  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
85 
89  inline TrustedSigners& WithQuantity(int value) { SetQuantity(value); return *this;}
90 
91 
95  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
96 
100  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
101 
105  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
106 
110  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
111 
115  inline TrustedSigners& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
116 
120  inline TrustedSigners& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
121 
125  inline TrustedSigners& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
126 
130  inline TrustedSigners& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
131 
135  inline TrustedSigners& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
136 
137  private:
138 
139  bool m_enabled;
140  bool m_enabledHasBeenSet;
141 
142  int m_quantity;
143  bool m_quantityHasBeenSet;
144 
145  Aws::Vector<Aws::String> m_items;
146  bool m_itemsHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace CloudFront
151 } // namespace Aws
Aws::CloudFront::Model::TrustedSigners::SetEnabled
void SetEnabled(bool value)
Definition: TrustedSigners.h:61
Aws::CloudFront::Model::TrustedSigners::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: TrustedSigners.h:110
Aws::CloudFront::Model::TrustedSigners::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: TrustedSigners.h:95
Aws::CloudFront::Model::TrustedSigners::AddItems
TrustedSigners & AddItems(Aws::String &&value)
Definition: TrustedSigners.h:130
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::TrustedSigners::GetQuantity
int GetQuantity() const
Definition: TrustedSigners.h:74
Aws::CloudFront::Model::TrustedSigners::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::TrustedSigners::TrustedSigners
TrustedSigners()
Aws::CloudFront::Model::TrustedSigners::WithItems
TrustedSigners & WithItems(Aws::Vector< Aws::String > &&value)
Definition: TrustedSigners.h:120
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::TrustedSigners::GetEnabled
bool GetEnabled() const
Definition: TrustedSigners.h:47
Aws::CloudFront::Model::TrustedSigners::SetQuantity
void SetQuantity(int value)
Definition: TrustedSigners.h:84
Aws::CloudFront::Model::TrustedSigners::TrustedSigners
TrustedSigners(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::TrustedSigners::WithItems
TrustedSigners & WithItems(const Aws::Vector< Aws::String > &value)
Definition: TrustedSigners.h:115
Aws::CloudFront::Model::TrustedSigners::WithQuantity
TrustedSigners & WithQuantity(int value)
Definition: TrustedSigners.h:89
Aws::CloudFront::Model::TrustedSigners::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: TrustedSigners.h:79
Aws::CloudFront::Model::TrustedSigners::operator=
TrustedSigners & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::TrustedSigners::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: TrustedSigners.h:54
AWSString.h
Aws::CloudFront::Model::TrustedSigners::AddItems
TrustedSigners & AddItems(const Aws::String &value)
Definition: TrustedSigners.h:125
Aws::CloudFront::Model::TrustedSigners
Definition: TrustedSigners.h:33
Aws::CloudFront::Model::TrustedSigners::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: TrustedSigners.h:105
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::TrustedSigners::WithEnabled
TrustedSigners & WithEnabled(bool value)
Definition: TrustedSigners.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::TrustedSigners::AddItems
TrustedSigners & AddItems(const char *value)
Definition: TrustedSigners.h:135
Aws::CloudFront::Model::TrustedSigners::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: TrustedSigners.h:100