AWS SDK for C++  1.9.20
AWS SDK for C++
TrustedKeyGroups.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 TrustedKeyGroups& 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 TrustedKeyGroups& 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 TrustedKeyGroups& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
116 
120  inline TrustedKeyGroups& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
121 
125  inline TrustedKeyGroups& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
126 
130  inline TrustedKeyGroups& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
131 
135  inline TrustedKeyGroups& 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::TrustedKeyGroups::WithItems
TrustedKeyGroups & WithItems(Aws::Vector< Aws::String > &&value)
Definition: TrustedKeyGroups.h:120
Aws::CloudFront::Model::TrustedKeyGroups::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: TrustedKeyGroups.h:95
Aws::CloudFront::Model::TrustedKeyGroups::SetEnabled
void SetEnabled(bool value)
Definition: TrustedKeyGroups.h:61
Aws::CloudFront::Model::TrustedKeyGroups::WithEnabled
TrustedKeyGroups & WithEnabled(bool value)
Definition: TrustedKeyGroups.h:68
Aws::CloudFront::Model::TrustedKeyGroups::operator=
TrustedKeyGroups & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::TrustedKeyGroups::GetEnabled
bool GetEnabled() const
Definition: TrustedKeyGroups.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::TrustedKeyGroups::AddItems
TrustedKeyGroups & AddItems(const char *value)
Definition: TrustedKeyGroups.h:135
Aws::CloudFront::Model::TrustedKeyGroups
Definition: TrustedKeyGroups.h:33
AWSVector.h
Aws::CloudFront::Model::TrustedKeyGroups::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: TrustedKeyGroups.h:79
Aws::CloudFront::Model::TrustedKeyGroups::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: TrustedKeyGroups.h:105
Aws::CloudFront::Model::TrustedKeyGroups::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: TrustedKeyGroups.h:54
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::TrustedKeyGroups::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: TrustedKeyGroups.h:100
Aws::CloudFront::Model::TrustedKeyGroups::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: TrustedKeyGroups.h:110
Aws::CloudFront::Model::TrustedKeyGroups::SetQuantity
void SetQuantity(int value)
Definition: TrustedKeyGroups.h:84
Aws::CloudFront::Model::TrustedKeyGroups::GetQuantity
int GetQuantity() const
Definition: TrustedKeyGroups.h:74
AWSString.h
Aws::CloudFront::Model::TrustedKeyGroups::TrustedKeyGroups
TrustedKeyGroups()
Aws::CloudFront::Model::TrustedKeyGroups::TrustedKeyGroups
TrustedKeyGroups(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::TrustedKeyGroups::AddItems
TrustedKeyGroups & AddItems(const Aws::String &value)
Definition: TrustedKeyGroups.h:125
Aws::CloudFront::Model::TrustedKeyGroups::WithItems
TrustedKeyGroups & WithItems(const Aws::Vector< Aws::String > &value)
Definition: TrustedKeyGroups.h:115
CloudFront_EXPORTS.h
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::TrustedKeyGroups::AddItems
TrustedKeyGroups & AddItems(Aws::String &&value)
Definition: TrustedKeyGroups.h:130
Aws::CloudFront::Model::TrustedKeyGroups::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::TrustedKeyGroups::WithQuantity
TrustedKeyGroups & WithQuantity(int value)
Definition: TrustedKeyGroups.h:89