AWS SDK for C++  0.14.3
AWS SDK for C++
DistributionList.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudFront
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  DistributionList& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
46 
50  inline const Aws::String& GetMarker() const{ return m_marker; }
51 
55  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
56 
60  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
61 
65  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
66 
70  inline DistributionList& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
71 
75  inline DistributionList& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
76 
80  inline DistributionList& WithMarker(const char* value) { SetMarker(value); return *this;}
81 
87  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
88 
94  inline void SetNextMarker(const Aws::String& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; }
95 
101  inline void SetNextMarker(Aws::String&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = value; }
102 
108  inline void SetNextMarker(const char* value) { m_nextMarkerHasBeenSet = true; m_nextMarker.assign(value); }
109 
115  inline DistributionList& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
116 
122  inline DistributionList& WithNextMarker(Aws::String&& value) { SetNextMarker(value); return *this;}
123 
129  inline DistributionList& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
130 
134  inline int GetMaxItems() const{ return m_maxItems; }
135 
139  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
140 
144  inline DistributionList& WithMaxItems(int value) { SetMaxItems(value); return *this;}
145 
151  inline bool GetIsTruncated() const{ return m_isTruncated; }
152 
158  inline void SetIsTruncated(bool value) { m_isTruncatedHasBeenSet = true; m_isTruncated = value; }
159 
165  inline DistributionList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
166 
170  inline int GetQuantity() const{ return m_quantity; }
171 
175  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
176 
180  inline DistributionList& WithQuantity(int value) { SetQuantity(value); return *this;}
181 
186  inline const Aws::Vector<DistributionSummary>& GetItems() const{ return m_items; }
187 
192  inline void SetItems(const Aws::Vector<DistributionSummary>& value) { m_itemsHasBeenSet = true; m_items = value; }
193 
198  inline void SetItems(Aws::Vector<DistributionSummary>&& value) { m_itemsHasBeenSet = true; m_items = value; }
199 
204  inline DistributionList& WithItems(const Aws::Vector<DistributionSummary>& value) { SetItems(value); return *this;}
205 
210  inline DistributionList& WithItems(Aws::Vector<DistributionSummary>&& value) { SetItems(value); return *this;}
211 
216  inline DistributionList& AddItems(const DistributionSummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
217 
222  inline DistributionList& AddItems(DistributionSummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
223 
224  private:
225  Aws::String m_marker;
226  bool m_markerHasBeenSet;
227  Aws::String m_nextMarker;
228  bool m_nextMarkerHasBeenSet;
229  int m_maxItems;
230  bool m_maxItemsHasBeenSet;
231  bool m_isTruncated;
232  bool m_isTruncatedHasBeenSet;
233  int m_quantity;
234  bool m_quantityHasBeenSet;
236  bool m_itemsHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace CloudFront
241 } // namespace Aws
DistributionList & WithNextMarker(const char *value)
const Aws::String & GetMarker() const
DistributionList & WithNextMarker(Aws::String &&value)
DistributionList & WithMaxItems(int value)
DistributionList & WithItems(Aws::Vector< DistributionSummary > &&value)
DistributionList & WithItems(const Aws::Vector< DistributionSummary > &value)
DistributionList & WithMarker(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetItems(const Aws::Vector< DistributionSummary > &value)
const Aws::String & GetNextMarker() const
DistributionList & AddItems(DistributionSummary &&value)
DistributionList & WithQuantity(int value)
DistributionList & WithIsTruncated(bool value)
DistributionList & WithMarker(Aws::String &&value)
#define AWS_CLOUDFRONT_API
void SetItems(Aws::Vector< DistributionSummary > &&value)
DistributionList & WithNextMarker(const Aws::String &value)
DistributionList & WithMarker(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< DistributionSummary > & GetItems() const
void SetMarker(const Aws::String &value)
void SetNextMarker(const Aws::String &value)
JSON (JavaScript Object Notation).
DistributionList & AddItems(const DistributionSummary &value)