AWS SDK for C++  1.8.71
AWS SDK for C++
ListDistributionsByCachePolicyId2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace CloudFront
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListDistributionsByCachePolicyId"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
48  inline const Aws::String& GetMarker() const{ return m_marker; }
49 
57  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
58 
66  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
67 
75  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
76 
84  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
85 
93  inline ListDistributionsByCachePolicyId2020_05_31Request& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
94 
102  inline ListDistributionsByCachePolicyId2020_05_31Request& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
103 
111  inline ListDistributionsByCachePolicyId2020_05_31Request& WithMarker(const char* value) { SetMarker(value); return *this;}
112 
113 
117  inline const Aws::String& GetMaxItems() const{ return m_maxItems; }
118 
122  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
123 
127  inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
128 
132  inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); }
133 
137  inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); }
138 
142  inline ListDistributionsByCachePolicyId2020_05_31Request& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;}
143 
147  inline ListDistributionsByCachePolicyId2020_05_31Request& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;}
148 
152  inline ListDistributionsByCachePolicyId2020_05_31Request& WithMaxItems(const char* value) { SetMaxItems(value); return *this;}
153 
154 
159  inline const Aws::String& GetCachePolicyId() const{ return m_cachePolicyId; }
160 
165  inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
166 
171  inline void SetCachePolicyId(const Aws::String& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = value; }
172 
177  inline void SetCachePolicyId(Aws::String&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::move(value); }
178 
183  inline void SetCachePolicyId(const char* value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId.assign(value); }
184 
189  inline ListDistributionsByCachePolicyId2020_05_31Request& WithCachePolicyId(const Aws::String& value) { SetCachePolicyId(value); return *this;}
190 
195  inline ListDistributionsByCachePolicyId2020_05_31Request& WithCachePolicyId(Aws::String&& value) { SetCachePolicyId(std::move(value)); return *this;}
196 
201  inline ListDistributionsByCachePolicyId2020_05_31Request& WithCachePolicyId(const char* value) { SetCachePolicyId(value); return *this;}
202 
203  private:
204 
205  Aws::String m_marker;
206  bool m_markerHasBeenSet;
207 
208  Aws::String m_maxItems;
209  bool m_maxItemsHasBeenSet;
210 
211  Aws::String m_cachePolicyId;
212  bool m_cachePolicyIdHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace CloudFront
217 } // namespace Aws
ListDistributionsByCachePolicyId2020_05_31Request & WithMaxItems(const Aws::String &value)
ListDistributionsByCachePolicyId2020_05_31Request & WithCachePolicyId(const char *value)
ListDistributionsByCachePolicyId2020_05_31Request & WithCachePolicyId(const Aws::String &value)
#define AWS_CLOUDFRONT_API
ListDistributionsByCachePolicyId2020_05_31Request & WithMarker(const Aws::String &value)
ListDistributionsByCachePolicyId2020_05_31Request & WithMaxItems(Aws::String &&value)
ListDistributionsByCachePolicyId2020_05_31Request & WithMaxItems(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListDistributionsByCachePolicyId2020_05_31Request & WithMarker(Aws::String &&value)
ListDistributionsByCachePolicyId2020_05_31Request & WithCachePolicyId(Aws::String &&value)