AWS SDK for C++  1.9.20
AWS SDK for C++
EncryptionEntities.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 
46  inline int GetQuantity() const{ return m_quantity; }
47 
52  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
53 
58  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
59 
64  inline EncryptionEntities& WithQuantity(int value) { SetQuantity(value); return *this;}
65 
66 
71  inline const Aws::Vector<EncryptionEntity>& GetItems() const{ return m_items; }
72 
77  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
78 
83  inline void SetItems(const Aws::Vector<EncryptionEntity>& value) { m_itemsHasBeenSet = true; m_items = value; }
84 
89  inline void SetItems(Aws::Vector<EncryptionEntity>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
90 
95  inline EncryptionEntities& WithItems(const Aws::Vector<EncryptionEntity>& value) { SetItems(value); return *this;}
96 
101  inline EncryptionEntities& WithItems(Aws::Vector<EncryptionEntity>&& value) { SetItems(std::move(value)); return *this;}
102 
107  inline EncryptionEntities& AddItems(const EncryptionEntity& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
108 
113  inline EncryptionEntities& AddItems(EncryptionEntity&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  int m_quantity;
118  bool m_quantityHasBeenSet;
119 
121  bool m_itemsHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace CloudFront
126 } // namespace Aws
Aws::CloudFront::Model::EncryptionEntities
Definition: EncryptionEntities.h:33
Aws::CloudFront::Model::EncryptionEntities::WithQuantity
EncryptionEntities & WithQuantity(int value)
Definition: EncryptionEntities.h:64
Aws::CloudFront::Model::EncryptionEntities::WithItems
EncryptionEntities & WithItems(Aws::Vector< EncryptionEntity > &&value)
Definition: EncryptionEntities.h:101
Aws::CloudFront::Model::EncryptionEntities::GetQuantity
int GetQuantity() const
Definition: EncryptionEntities.h:46
Aws::CloudFront::Model::EncryptionEntities::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: EncryptionEntities.h:77
Aws::CloudFront::Model::EncryptionEntities::SetItems
void SetItems(Aws::Vector< EncryptionEntity > &&value)
Definition: EncryptionEntities.h:89
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::EncryptionEntities::SetItems
void SetItems(const Aws::Vector< EncryptionEntity > &value)
Definition: EncryptionEntities.h:83
Aws::CloudFront::Model::EncryptionEntity
Definition: EncryptionEntity.h:33
AWSVector.h
Aws::CloudFront::Model::EncryptionEntities::AddItems
EncryptionEntities & AddItems(const EncryptionEntity &value)
Definition: EncryptionEntities.h:107
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
EncryptionEntity.h
Aws::CloudFront::Model::EncryptionEntities::EncryptionEntities
EncryptionEntities()
Aws::CloudFront::Model::EncryptionEntities::AddItems
EncryptionEntities & AddItems(EncryptionEntity &&value)
Definition: EncryptionEntities.h:113
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::EncryptionEntities::SetQuantity
void SetQuantity(int value)
Definition: EncryptionEntities.h:58
CloudFront_EXPORTS.h
Aws::CloudFront::Model::EncryptionEntities::operator=
EncryptionEntities & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::EncryptionEntities::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::EncryptionEntities::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: EncryptionEntities.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::EncryptionEntities::EncryptionEntities
EncryptionEntities(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::EncryptionEntities::GetItems
const Aws::Vector< EncryptionEntity > & GetItems() const
Definition: EncryptionEntities.h:71
Aws::CloudFront::Model::EncryptionEntities::WithItems
EncryptionEntities & WithItems(const Aws::Vector< EncryptionEntity > &value)
Definition: EncryptionEntities.h:95