AWS SDK for C++  1.9.156
AWS SDK for C++
Aliases.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 
46  inline int GetQuantity() const{ return m_quantity; }
47 
52  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
53 
58  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
59 
64  inline Aliases& WithQuantity(int value) { SetQuantity(value); return *this;}
65 
66 
71  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
72 
77  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
78 
83  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
84 
89  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
90 
95  inline Aliases& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
96 
101  inline Aliases& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
102 
107  inline Aliases& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
108 
113  inline Aliases& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
114 
119  inline Aliases& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
120 
121  private:
122 
123  int m_quantity;
124  bool m_quantityHasBeenSet;
125 
126  Aws::Vector<Aws::String> m_items;
127  bool m_itemsHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace CloudFront
132 } // namespace Aws
Aws::CloudFront::Model::Aliases::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: Aliases.h:71
Aws::CloudFront::Model::Aliases::operator=
Aliases & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Aliases::WithQuantity
Aliases & WithQuantity(int value)
Definition: Aliases.h:64
Aws::CloudFront::Model::Aliases::Aliases
Aliases(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::Aliases::AddItems
Aliases & AddItems(const Aws::String &value)
Definition: Aliases.h:107
Aws::CloudFront::Model::Aliases::GetQuantity
int GetQuantity() const
Definition: Aliases.h:46
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::Aliases::WithItems
Aliases & WithItems(const Aws::Vector< Aws::String > &value)
Definition: Aliases.h:95
Aws::CloudFront::Model::Aliases::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: Aliases.h:89
Aws::CloudFront::Model::Aliases::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: Aliases.h:52
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWSString.h
Aws::CloudFront::Model::Aliases::WithItems
Aliases & WithItems(Aws::Vector< Aws::String > &&value)
Definition: Aliases.h:101
Aws::CloudFront::Model::Aliases::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: Aliases.h:83
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::Aliases::Aliases
Aliases()
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::Aliases::AddItems
Aliases & AddItems(Aws::String &&value)
Definition: Aliases.h:113
Aws::CloudFront::Model::Aliases::SetQuantity
void SetQuantity(int value)
Definition: Aliases.h:58
Aws::CloudFront::Model::Aliases::AddItems
Aliases & AddItems(const char *value)
Definition: Aliases.h:119
Aws::CloudFront::Model::Aliases::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::Aliases
Definition: Aliases.h:33
Aws::CloudFront::Model::Aliases::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: Aliases.h:77