AWS SDK for C++  1.9.16
AWS SDK for C++
CustomErrorResponses.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 
39  {
40  public:
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
47 
53  inline int GetQuantity() const{ return m_quantity; }
54 
60  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
61 
67  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
68 
74  inline CustomErrorResponses& WithQuantity(int value) { SetQuantity(value); return *this;}
75 
76 
82  inline const Aws::Vector<CustomErrorResponse>& GetItems() const{ return m_items; }
83 
89  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
90 
96  inline void SetItems(const Aws::Vector<CustomErrorResponse>& value) { m_itemsHasBeenSet = true; m_items = value; }
97 
103  inline void SetItems(Aws::Vector<CustomErrorResponse>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
104 
110  inline CustomErrorResponses& WithItems(const Aws::Vector<CustomErrorResponse>& value) { SetItems(value); return *this;}
111 
117  inline CustomErrorResponses& WithItems(Aws::Vector<CustomErrorResponse>&& value) { SetItems(std::move(value)); return *this;}
118 
124  inline CustomErrorResponses& AddItems(const CustomErrorResponse& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
125 
131  inline CustomErrorResponses& AddItems(CustomErrorResponse&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
132 
133  private:
134 
135  int m_quantity;
136  bool m_quantityHasBeenSet;
137 
139  bool m_itemsHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace CloudFront
144 } // namespace Aws
Aws::CloudFront::Model::CustomErrorResponses::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::CustomErrorResponses::GetQuantity
int GetQuantity() const
Definition: CustomErrorResponses.h:53
Aws::CloudFront::Model::CustomErrorResponses::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: CustomErrorResponses.h:60
Aws::CloudFront::Model::CustomErrorResponses::SetItems
void SetItems(const Aws::Vector< CustomErrorResponse > &value)
Definition: CustomErrorResponses.h:96
Aws::CloudFront::Model::CustomErrorResponses::SetQuantity
void SetQuantity(int value)
Definition: CustomErrorResponses.h:67
Aws::CloudFront::Model::CustomErrorResponses
Definition: CustomErrorResponses.h:39
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::CustomErrorResponses::AddItems
CustomErrorResponses & AddItems(CustomErrorResponse &&value)
Definition: CustomErrorResponses.h:131
Aws::CloudFront::Model::CustomErrorResponses::WithItems
CustomErrorResponses & WithItems(Aws::Vector< CustomErrorResponse > &&value)
Definition: CustomErrorResponses.h:117
Aws::CloudFront::Model::CustomErrorResponses::WithQuantity
CustomErrorResponses & WithQuantity(int value)
Definition: CustomErrorResponses.h:74
AWSVector.h
Aws::CloudFront::Model::CustomErrorResponses::WithItems
CustomErrorResponses & WithItems(const Aws::Vector< CustomErrorResponse > &value)
Definition: CustomErrorResponses.h:110
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::CustomErrorResponses::GetItems
const Aws::Vector< CustomErrorResponse > & GetItems() const
Definition: CustomErrorResponses.h:82
Aws::CloudFront::Model::CustomErrorResponses::AddItems
CustomErrorResponses & AddItems(const CustomErrorResponse &value)
Definition: CustomErrorResponses.h:124
Aws::CloudFront::Model::CustomErrorResponses::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: CustomErrorResponses.h:89
Aws::CloudFront::Model::CustomErrorResponses::CustomErrorResponses
CustomErrorResponses()
Aws::CloudFront::Model::CustomErrorResponses::operator=
CustomErrorResponses & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::CustomErrorResponses::CustomErrorResponses
CustomErrorResponses(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::CustomErrorResponses::SetItems
void SetItems(Aws::Vector< CustomErrorResponse > &&value)
Definition: CustomErrorResponses.h:103
CustomErrorResponse.h
Aws::CloudFront::Model::CustomErrorResponse
Definition: CustomErrorResponse.h:38
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15