AWS SDK for C++  1.9.123
AWS SDK for C++
FieldPatterns.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 
45  inline int GetQuantity() const{ return m_quantity; }
46 
50  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
51 
55  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
56 
60  inline FieldPatterns& WithQuantity(int value) { SetQuantity(value); return *this;}
61 
62 
66  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
67 
71  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
72 
76  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
77 
81  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
82 
86  inline FieldPatterns& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
87 
91  inline FieldPatterns& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(std::move(value)); return *this;}
92 
96  inline FieldPatterns& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
97 
101  inline FieldPatterns& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
102 
106  inline FieldPatterns& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
107 
108  private:
109 
110  int m_quantity;
111  bool m_quantityHasBeenSet;
112 
113  Aws::Vector<Aws::String> m_items;
114  bool m_itemsHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CloudFront
119 } // namespace Aws
Aws::CloudFront::Model::FieldPatterns::operator=
FieldPatterns & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::FieldPatterns::WithQuantity
FieldPatterns & WithQuantity(int value)
Definition: FieldPatterns.h:60
Aws::CloudFront::Model::FieldPatterns::GetItems
const Aws::Vector< Aws::String > & GetItems() const
Definition: FieldPatterns.h:66
Aws::CloudFront::Model::FieldPatterns::SetQuantity
void SetQuantity(int value)
Definition: FieldPatterns.h:55
Aws::CloudFront::Model::FieldPatterns::AddItems
FieldPatterns & AddItems(Aws::String &&value)
Definition: FieldPatterns.h:101
Aws::CloudFront::Model::FieldPatterns::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudFront::Model::FieldPatterns::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: FieldPatterns.h:71
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::FieldPatterns::WithItems
FieldPatterns & WithItems(const Aws::Vector< Aws::String > &value)
Definition: FieldPatterns.h:86
Aws::CloudFront::Model::FieldPatterns
Definition: FieldPatterns.h:33
Aws::CloudFront::Model::FieldPatterns::FieldPatterns
FieldPatterns(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::FieldPatterns::SetItems
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: FieldPatterns.h:81
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::FieldPatterns::AddItems
FieldPatterns & AddItems(const char *value)
Definition: FieldPatterns.h:106
CloudFront_EXPORTS.h
Aws::CloudFront::Model::FieldPatterns::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: FieldPatterns.h:50
Aws::CloudFront::Model::FieldPatterns::GetQuantity
int GetQuantity() const
Definition: FieldPatterns.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::FieldPatterns::FieldPatterns
FieldPatterns()
Aws::CloudFront::Model::FieldPatterns::AddItems
FieldPatterns & AddItems(const Aws::String &value)
Definition: FieldPatterns.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::FieldPatterns::WithItems
FieldPatterns & WithItems(Aws::Vector< Aws::String > &&value)
Definition: FieldPatterns.h:91
Aws::CloudFront::Model::FieldPatterns::SetItems
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: FieldPatterns.h:76