AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Origins.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/Origin.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
32 class Origins
33 {
34 public:
35 AWS_CLOUDFRONT_API Origins();
36 AWS_CLOUDFRONT_API Origins(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API Origins& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline int GetQuantity() const{ return m_quantity; }
47 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
48 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
49 inline Origins& WithQuantity(int value) { SetQuantity(value); return *this;}
51
53
56 inline const Aws::Vector<Origin>& GetItems() const{ return m_items; }
57 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
58 inline void SetItems(const Aws::Vector<Origin>& value) { m_itemsHasBeenSet = true; m_items = value; }
59 inline void SetItems(Aws::Vector<Origin>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
60 inline Origins& WithItems(const Aws::Vector<Origin>& value) { SetItems(value); return *this;}
61 inline Origins& WithItems(Aws::Vector<Origin>&& value) { SetItems(std::move(value)); return *this;}
62 inline Origins& AddItems(const Origin& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
63 inline Origins& AddItems(Origin&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
65 private:
66
67 int m_quantity;
68 bool m_quantityHasBeenSet = false;
69
70 Aws::Vector<Origin> m_items;
71 bool m_itemsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CloudFront
76} // namespace Aws
void SetQuantity(int value)
Definition Origins.h:48
Origins & AddItems(const Origin &value)
Definition Origins.h:62
Origins & WithItems(Aws::Vector< Origin > &&value)
Definition Origins.h:61
AWS_CLOUDFRONT_API Origins(const Aws::Utils::Xml::XmlNode &xmlNode)
Origins & WithQuantity(int value)
Definition Origins.h:49
void SetItems(const Aws::Vector< Origin > &value)
Definition Origins.h:58
AWS_CLOUDFRONT_API Origins & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetItems(Aws::Vector< Origin > &&value)
Definition Origins.h:59
Origins & AddItems(Origin &&value)
Definition Origins.h:63
const Aws::Vector< Origin > & GetItems() const
Definition Origins.h:56
AWS_CLOUDFRONT_API Origins()
bool QuantityHasBeenSet() const
Definition Origins.h:47
Origins & WithItems(const Aws::Vector< Origin > &value)
Definition Origins.h:60
std::vector< T, Aws::Allocator< T > > Vector