AWS SDK for C++  1.9.16
AWS SDK for C++
CustomHeaders.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 
45  inline int GetQuantity() const{ return m_quantity; }
46 
50  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
51 
55  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
56 
60  inline CustomHeaders& WithQuantity(int value) { SetQuantity(value); return *this;}
61 
62 
68  inline const Aws::Vector<OriginCustomHeader>& GetItems() const{ return m_items; }
69 
75  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
76 
82  inline void SetItems(const Aws::Vector<OriginCustomHeader>& value) { m_itemsHasBeenSet = true; m_items = value; }
83 
89  inline void SetItems(Aws::Vector<OriginCustomHeader>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
90 
96  inline CustomHeaders& WithItems(const Aws::Vector<OriginCustomHeader>& value) { SetItems(value); return *this;}
97 
103  inline CustomHeaders& WithItems(Aws::Vector<OriginCustomHeader>&& value) { SetItems(std::move(value)); return *this;}
104 
110  inline CustomHeaders& AddItems(const OriginCustomHeader& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
111 
117  inline CustomHeaders& AddItems(OriginCustomHeader&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
118 
119  private:
120 
121  int m_quantity;
122  bool m_quantityHasBeenSet;
123 
125  bool m_itemsHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace CloudFront
130 } // namespace Aws
Aws::CloudFront::Model::CustomHeaders::WithItems
CustomHeaders & WithItems(Aws::Vector< OriginCustomHeader > &&value)
Definition: CustomHeaders.h:103
Aws::CloudFront::Model::CustomHeaders
Definition: CustomHeaders.h:33
Aws::CloudFront::Model::CustomHeaders::operator=
CustomHeaders & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::CustomHeaders::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginCustomHeader
Definition: OriginCustomHeader.h:33
Aws::CloudFront::Model::CustomHeaders::CustomHeaders
CustomHeaders(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CustomHeaders::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: CustomHeaders.h:50
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CustomHeaders::GetItems
const Aws::Vector< OriginCustomHeader > & GetItems() const
Definition: CustomHeaders.h:68
Aws::CloudFront::Model::CustomHeaders::SetItems
void SetItems(const Aws::Vector< OriginCustomHeader > &value)
Definition: CustomHeaders.h:82
Aws::CloudFront::Model::CustomHeaders::WithQuantity
CustomHeaders & WithQuantity(int value)
Definition: CustomHeaders.h:60
Aws::CloudFront::Model::CustomHeaders::AddItems
CustomHeaders & AddItems(OriginCustomHeader &&value)
Definition: CustomHeaders.h:117
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CustomHeaders::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: CustomHeaders.h:75
CloudFront_EXPORTS.h
Aws::CloudFront::Model::CustomHeaders::CustomHeaders
CustomHeaders()
OriginCustomHeader.h
Aws::CloudFront::Model::CustomHeaders::WithItems
CustomHeaders & WithItems(const Aws::Vector< OriginCustomHeader > &value)
Definition: CustomHeaders.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::CustomHeaders::SetQuantity
void SetQuantity(int value)
Definition: CustomHeaders.h:55
Aws::CloudFront::Model::CustomHeaders::GetQuantity
int GetQuantity() const
Definition: CustomHeaders.h:45
Aws::CloudFront::Model::CustomHeaders::SetItems
void SetItems(Aws::Vector< OriginCustomHeader > &&value)
Definition: CustomHeaders.h:89
Aws::CloudFront::Model::CustomHeaders::AddItems
CustomHeaders & AddItems(const OriginCustomHeader &value)
Definition: CustomHeaders.h:110