AWS SDK for C++  0.14.3
AWS SDK for C++
StreamingDistributionList.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  StreamingDistributionList& 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 StreamingDistributionList& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
71 
75  inline StreamingDistributionList& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
76 
80  inline StreamingDistributionList& 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 StreamingDistributionList& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
116 
122  inline StreamingDistributionList& WithNextMarker(Aws::String&& value) { SetNextMarker(value); return *this;}
123 
129  inline StreamingDistributionList& 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 StreamingDistributionList& 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 StreamingDistributionList& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
166 
171  inline int GetQuantity() const{ return m_quantity; }
172 
177  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
178 
183  inline StreamingDistributionList& WithQuantity(int value) { SetQuantity(value); return *this;}
184 
189  inline const Aws::Vector<StreamingDistributionSummary>& GetItems() const{ return m_items; }
190 
195  inline void SetItems(const Aws::Vector<StreamingDistributionSummary>& value) { m_itemsHasBeenSet = true; m_items = value; }
196 
201  inline void SetItems(Aws::Vector<StreamingDistributionSummary>&& value) { m_itemsHasBeenSet = true; m_items = value; }
202 
207  inline StreamingDistributionList& WithItems(const Aws::Vector<StreamingDistributionSummary>& value) { SetItems(value); return *this;}
208 
213  inline StreamingDistributionList& WithItems(Aws::Vector<StreamingDistributionSummary>&& value) { SetItems(value); return *this;}
214 
219  inline StreamingDistributionList& AddItems(const StreamingDistributionSummary& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
220 
225  inline StreamingDistributionList& AddItems(StreamingDistributionSummary&& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
226 
227  private:
228  Aws::String m_marker;
229  bool m_markerHasBeenSet;
230  Aws::String m_nextMarker;
231  bool m_nextMarkerHasBeenSet;
232  int m_maxItems;
233  bool m_maxItemsHasBeenSet;
234  bool m_isTruncated;
235  bool m_isTruncatedHasBeenSet;
236  int m_quantity;
237  bool m_quantityHasBeenSet;
239  bool m_itemsHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace CloudFront
244 } // namespace Aws
StreamingDistributionList & AddItems(StreamingDistributionSummary &&value)
const Aws::Vector< StreamingDistributionSummary > & GetItems() const
StreamingDistributionList & WithQuantity(int value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
StreamingDistributionList & WithItems(const Aws::Vector< StreamingDistributionSummary > &value)
StreamingDistributionList & WithMaxItems(int value)
StreamingDistributionList & WithItems(Aws::Vector< StreamingDistributionSummary > &&value)
void SetItems(const Aws::Vector< StreamingDistributionSummary > &value)
StreamingDistributionList & WithMarker(Aws::String &&value)
StreamingDistributionList & WithMarker(const Aws::String &value)
#define AWS_CLOUDFRONT_API
StreamingDistributionList & WithNextMarker(const Aws::String &value)
StreamingDistributionList & WithNextMarker(Aws::String &&value)
StreamingDistributionList & WithNextMarker(const char *value)
StreamingDistributionList & WithIsTruncated(bool value)
void SetItems(Aws::Vector< StreamingDistributionSummary > &&value)
StreamingDistributionList & WithMarker(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
StreamingDistributionList & AddItems(const StreamingDistributionSummary &value)
JSON (JavaScript Object Notation).