AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Aliases.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Aliases
33 {
34 public:
35 AWS_CLOUDFRONT_API Aliases();
36 AWS_CLOUDFRONT_API Aliases(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API Aliases& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
47 inline int GetQuantity() const{ return m_quantity; }
48 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
49 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
50 inline Aliases& WithQuantity(int value) { SetQuantity(value); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
59 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
60 inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
61 inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
62 inline Aliases& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
63 inline Aliases& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
64 inline Aliases& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
65 inline Aliases& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
66 inline Aliases& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
68 private:
69
70 int m_quantity;
71 bool m_quantityHasBeenSet = false;
72
74 bool m_itemsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CloudFront
79} // namespace Aws
Aliases & WithItems(Aws::Vector< Aws::String > &&value)
Definition Aliases.h:63
Aliases & AddItems(Aws::String &&value)
Definition Aliases.h:65
Aliases & AddItems(const Aws::String &value)
Definition Aliases.h:64
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aliases & WithItems(const Aws::Vector< Aws::String > &value)
Definition Aliases.h:62
AWS_CLOUDFRONT_API Aliases()
bool QuantityHasBeenSet() const
Definition Aliases.h:48
Aliases & AddItems(const char *value)
Definition Aliases.h:66
void SetItems(const Aws::Vector< Aws::String > &value)
Definition Aliases.h:60
void SetQuantity(int value)
Definition Aliases.h:49
const Aws::Vector< Aws::String > & GetItems() const
Definition Aliases.h:58
Aliases & WithQuantity(int value)
Definition Aliases.h:50
AWS_CLOUDFRONT_API Aliases & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API Aliases(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetItems(Aws::Vector< Aws::String > &&value)
Definition Aliases.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector