AWS SDK for C++  1.9.20
AWS SDK for C++
ListCachePolicies2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace CloudFront
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListCachePolicies"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
48  inline const CachePolicyType& GetType() const{ return m_type; }
49 
56  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 
64  inline void SetType(const CachePolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
65 
72  inline void SetType(CachePolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
73 
80  inline ListCachePolicies2020_05_31Request& WithType(const CachePolicyType& value) { SetType(value); return *this;}
81 
88  inline ListCachePolicies2020_05_31Request& WithType(CachePolicyType&& value) { SetType(std::move(value)); return *this;}
89 
90 
97  inline const Aws::String& GetMarker() const{ return m_marker; }
98 
105  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
106 
113  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
114 
121  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
122 
129  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
130 
137  inline ListCachePolicies2020_05_31Request& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
138 
145  inline ListCachePolicies2020_05_31Request& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
146 
153  inline ListCachePolicies2020_05_31Request& WithMarker(const char* value) { SetMarker(value); return *this;}
154 
155 
159  inline const Aws::String& GetMaxItems() const{ return m_maxItems; }
160 
164  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
165 
169  inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
170 
174  inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); }
175 
179  inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); }
180 
184  inline ListCachePolicies2020_05_31Request& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;}
185 
189  inline ListCachePolicies2020_05_31Request& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;}
190 
194  inline ListCachePolicies2020_05_31Request& WithMaxItems(const char* value) { SetMaxItems(value); return *this;}
195 
196  private:
197 
198  CachePolicyType m_type;
199  bool m_typeHasBeenSet;
200 
201  Aws::String m_marker;
202  bool m_markerHasBeenSet;
203 
204  Aws::String m_maxItems;
205  bool m_maxItemsHasBeenSet;
206  };
207 
208 } // namespace Model
209 } // namespace CloudFront
210 } // namespace Aws
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithMaxItems
ListCachePolicies2020_05_31Request & WithMaxItems(Aws::String &&value)
Definition: ListCachePolicies2020_05_31Request.h:189
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCachePolicies2020_05_31Request.h:35
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request
Definition: ListCachePolicies2020_05_31Request.h:27
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: ListCachePolicies2020_05_31Request.h:56
Aws::Http::URI
Definition: URI.h:32
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetMarker
void SetMarker(const char *value)
Definition: ListCachePolicies2020_05_31Request.h:129
CloudFrontRequest.h
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::GetType
const CachePolicyType & GetType() const
Definition: ListCachePolicies2020_05_31Request.h:48
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetType
void SetType(const CachePolicyType &value)
Definition: ListCachePolicies2020_05_31Request.h:64
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::GetMaxItems
const Aws::String & GetMaxItems() const
Definition: ListCachePolicies2020_05_31Request.h:159
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithMarker
ListCachePolicies2020_05_31Request & WithMarker(Aws::String &&value)
Definition: ListCachePolicies2020_05_31Request.h:145
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithType
ListCachePolicies2020_05_31Request & WithType(const CachePolicyType &value)
Definition: ListCachePolicies2020_05_31Request.h:80
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetType
void SetType(CachePolicyType &&value)
Definition: ListCachePolicies2020_05_31Request.h:72
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetMaxItems
void SetMaxItems(Aws::String &&value)
Definition: ListCachePolicies2020_05_31Request.h:174
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListCachePolicies2020_05_31Request.h:113
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListCachePolicies2020_05_31Request.h:121
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithMaxItems
ListCachePolicies2020_05_31Request & WithMaxItems(const char *value)
Definition: ListCachePolicies2020_05_31Request.h:194
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithType
ListCachePolicies2020_05_31Request & WithType(CachePolicyType &&value)
Definition: ListCachePolicies2020_05_31Request.h:88
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetMaxItems
void SetMaxItems(const Aws::String &value)
Definition: ListCachePolicies2020_05_31Request.h:169
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: ListCachePolicies2020_05_31Request.h:164
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListCachePolicies2020_05_31Request.h:105
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithMarker
ListCachePolicies2020_05_31Request & WithMarker(const char *value)
Definition: ListCachePolicies2020_05_31Request.h:153
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::SetMaxItems
void SetMaxItems(const char *value)
Definition: ListCachePolicies2020_05_31Request.h:179
AWSString.h
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::GetMarker
const Aws::String & GetMarker() const
Definition: ListCachePolicies2020_05_31Request.h:97
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithMaxItems
ListCachePolicies2020_05_31Request & WithMaxItems(const Aws::String &value)
Definition: ListCachePolicies2020_05_31Request.h:184
CloudFront_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::ListCachePolicies2020_05_31Request
ListCachePolicies2020_05_31Request()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CachePolicyType.h
Aws::CloudFront::Model::ListCachePolicies2020_05_31Request::WithMarker
ListCachePolicies2020_05_31Request & WithMarker(const Aws::String &value)
Definition: ListCachePolicies2020_05_31Request.h:137
Aws::CloudFront::Model::CachePolicyType
CachePolicyType
Definition: CachePolicyType.h:17