AWS SDK for C++  0.12.9
AWS SDK for C++
Paths.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudFront
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  Paths();
42  Paths(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Paths& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
50  inline long GetQuantity() const{ return m_quantity; }
51 
55  inline void SetQuantity(long value) { m_quantityHasBeenSet = true; m_quantity = value; }
56 
60  inline Paths& WithQuantity(long value) { SetQuantity(value); return *this;}
61 
65  inline const Aws::Vector<Aws::String>& GetItems() const{ return m_items; }
66 
70  inline void SetItems(const Aws::Vector<Aws::String>& value) { m_itemsHasBeenSet = true; m_items = value; }
71 
75  inline void SetItems(Aws::Vector<Aws::String>&& value) { m_itemsHasBeenSet = true; m_items = value; }
76 
80  inline Paths& WithItems(const Aws::Vector<Aws::String>& value) { SetItems(value); return *this;}
81 
85  inline Paths& WithItems(Aws::Vector<Aws::String>&& value) { SetItems(value); return *this;}
86 
90  inline Paths& AddItems(const Aws::String& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
91 
95  inline Paths& AddItems(Aws::String&& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
96 
100  inline Paths& AddItems(const char* value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
101 
102  private:
103  long m_quantity;
104  bool m_quantityHasBeenSet;
105  Aws::Vector<Aws::String> m_items;
106  bool m_itemsHasBeenSet;
107  };
108 
109 } // namespace Model
110 } // namespace CloudFront
111 } // namespace Aws
Paths & AddItems(Aws::String &&value)
Definition: Paths.h:95
void SetItems(const Aws::Vector< Aws::String > &value)
Definition: Paths.h:70
void SetQuantity(long value)
Definition: Paths.h:55
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
long GetQuantity() const
Definition: Paths.h:50
Paths & WithQuantity(long value)
Definition: Paths.h:60
Paths & AddItems(const Aws::String &value)
Definition: Paths.h:90
#define AWS_CLOUDFRONT_API
const Aws::Vector< Aws::String > & GetItems() const
Definition: Paths.h:65
Paths & WithItems(const Aws::Vector< Aws::String > &value)
Definition: Paths.h:80
Paths & WithItems(Aws::Vector< Aws::String > &&value)
Definition: Paths.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Paths & AddItems(const char *value)
Definition: Paths.h:100
void SetItems(Aws::Vector< Aws::String > &&value)
Definition: Paths.h:75
JSON (JavaScript Object Notation).