AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomErrorResponses.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cloudfront/model/CustomErrorResponse.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_CLOUDFRONT_API CustomErrorResponses();
42 AWS_CLOUDFRONT_API CustomErrorResponses(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_CLOUDFRONT_API CustomErrorResponses& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46
47
49
54 inline int GetQuantity() const{ return m_quantity; }
55 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
56 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
57 inline CustomErrorResponses& WithQuantity(int value) { SetQuantity(value); return *this;}
59
61
66 inline const Aws::Vector<CustomErrorResponse>& GetItems() const{ return m_items; }
67 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
68 inline void SetItems(const Aws::Vector<CustomErrorResponse>& value) { m_itemsHasBeenSet = true; m_items = value; }
69 inline void SetItems(Aws::Vector<CustomErrorResponse>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
70 inline CustomErrorResponses& WithItems(const Aws::Vector<CustomErrorResponse>& value) { SetItems(value); return *this;}
71 inline CustomErrorResponses& WithItems(Aws::Vector<CustomErrorResponse>&& value) { SetItems(std::move(value)); return *this;}
72 inline CustomErrorResponses& AddItems(const CustomErrorResponse& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
73 inline CustomErrorResponses& AddItems(CustomErrorResponse&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
75 private:
76
77 int m_quantity;
78 bool m_quantityHasBeenSet = false;
79
81 bool m_itemsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CloudFront
86} // namespace Aws
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetItems(Aws::Vector< CustomErrorResponse > &&value)
CustomErrorResponses & WithItems(Aws::Vector< CustomErrorResponse > &&value)
AWS_CLOUDFRONT_API CustomErrorResponses(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetItems(const Aws::Vector< CustomErrorResponse > &value)
CustomErrorResponses & AddItems(const CustomErrorResponse &value)
CustomErrorResponses & WithItems(const Aws::Vector< CustomErrorResponse > &value)
CustomErrorResponses & WithQuantity(int value)
AWS_CLOUDFRONT_API CustomErrorResponses & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< CustomErrorResponse > & GetItems() const
CustomErrorResponses & AddItems(CustomErrorResponse &&value)
std::vector< T, Aws::Allocator< T > > Vector