AWS SDK for C++  0.14.3
AWS SDK for C++
ListObjectVersionsRequest.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
16 #include <aws/s3/S3_EXPORTS.h>
17 #include <aws/s3/S3Request.h>
20 
21 namespace Aws
22 {
23 namespace Http
24 {
25  class URI;
26 } //namespace Http
27 namespace S3
28 {
29 namespace Model
30 {
31 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42 
43  inline const Aws::String& GetBucket() const{ return m_bucket; }
44 
45 
46  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
47 
48 
49  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
50 
51 
52  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
53 
54 
55  inline ListObjectVersionsRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
56 
57 
58  inline ListObjectVersionsRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
59 
60 
61  inline ListObjectVersionsRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
62 
66  inline const Aws::String& GetDelimiter() const{ return m_delimiter; }
67 
71  inline void SetDelimiter(const Aws::String& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
72 
76  inline void SetDelimiter(Aws::String&& value) { m_delimiterHasBeenSet = true; m_delimiter = value; }
77 
81  inline void SetDelimiter(const char* value) { m_delimiterHasBeenSet = true; m_delimiter.assign(value); }
82 
86  inline ListObjectVersionsRequest& WithDelimiter(const Aws::String& value) { SetDelimiter(value); return *this;}
87 
91  inline ListObjectVersionsRequest& WithDelimiter(Aws::String&& value) { SetDelimiter(value); return *this;}
92 
96  inline ListObjectVersionsRequest& WithDelimiter(const char* value) { SetDelimiter(value); return *this;}
97 
98 
99  inline const EncodingType& GetEncodingType() const{ return m_encodingType; }
100 
101 
102  inline void SetEncodingType(const EncodingType& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
103 
104 
105  inline void SetEncodingType(EncodingType&& value) { m_encodingTypeHasBeenSet = true; m_encodingType = value; }
106 
107 
108  inline ListObjectVersionsRequest& WithEncodingType(const EncodingType& value) { SetEncodingType(value); return *this;}
109 
110 
111  inline ListObjectVersionsRequest& WithEncodingType(EncodingType&& value) { SetEncodingType(value); return *this;}
112 
116  inline const Aws::String& GetKeyMarker() const{ return m_keyMarker; }
117 
121  inline void SetKeyMarker(const Aws::String& value) { m_keyMarkerHasBeenSet = true; m_keyMarker = value; }
122 
126  inline void SetKeyMarker(Aws::String&& value) { m_keyMarkerHasBeenSet = true; m_keyMarker = value; }
127 
131  inline void SetKeyMarker(const char* value) { m_keyMarkerHasBeenSet = true; m_keyMarker.assign(value); }
132 
136  inline ListObjectVersionsRequest& WithKeyMarker(const Aws::String& value) { SetKeyMarker(value); return *this;}
137 
141  inline ListObjectVersionsRequest& WithKeyMarker(Aws::String&& value) { SetKeyMarker(value); return *this;}
142 
146  inline ListObjectVersionsRequest& WithKeyMarker(const char* value) { SetKeyMarker(value); return *this;}
147 
152  inline int GetMaxKeys() const{ return m_maxKeys; }
153 
158  inline void SetMaxKeys(int value) { m_maxKeysHasBeenSet = true; m_maxKeys = value; }
159 
164  inline ListObjectVersionsRequest& WithMaxKeys(int value) { SetMaxKeys(value); return *this;}
165 
169  inline const Aws::String& GetPrefix() const{ return m_prefix; }
170 
174  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
175 
179  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = value; }
180 
184  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
185 
189  inline ListObjectVersionsRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
190 
194  inline ListObjectVersionsRequest& WithPrefix(Aws::String&& value) { SetPrefix(value); return *this;}
195 
199  inline ListObjectVersionsRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
200 
204  inline const Aws::String& GetVersionIdMarker() const{ return m_versionIdMarker; }
205 
209  inline void SetVersionIdMarker(const Aws::String& value) { m_versionIdMarkerHasBeenSet = true; m_versionIdMarker = value; }
210 
214  inline void SetVersionIdMarker(Aws::String&& value) { m_versionIdMarkerHasBeenSet = true; m_versionIdMarker = value; }
215 
219  inline void SetVersionIdMarker(const char* value) { m_versionIdMarkerHasBeenSet = true; m_versionIdMarker.assign(value); }
220 
224  inline ListObjectVersionsRequest& WithVersionIdMarker(const Aws::String& value) { SetVersionIdMarker(value); return *this;}
225 
229  inline ListObjectVersionsRequest& WithVersionIdMarker(Aws::String&& value) { SetVersionIdMarker(value); return *this;}
230 
234  inline ListObjectVersionsRequest& WithVersionIdMarker(const char* value) { SetVersionIdMarker(value); return *this;}
235 
236  private:
237  Aws::String m_bucket;
238  bool m_bucketHasBeenSet;
239  Aws::String m_delimiter;
240  bool m_delimiterHasBeenSet;
241  EncodingType m_encodingType;
242  bool m_encodingTypeHasBeenSet;
243  Aws::String m_keyMarker;
244  bool m_keyMarkerHasBeenSet;
245  int m_maxKeys;
246  bool m_maxKeysHasBeenSet;
247  Aws::String m_prefix;
248  bool m_prefixHasBeenSet;
249  Aws::String m_versionIdMarker;
250  bool m_versionIdMarkerHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace S3
255 } // namespace Aws
ListObjectVersionsRequest & WithVersionIdMarker(const char *value)
ListObjectVersionsRequest & WithPrefix(Aws::String &&value)
ListObjectVersionsRequest & WithPrefix(const char *value)
ListObjectVersionsRequest & WithEncodingType(const EncodingType &value)
ListObjectVersionsRequest & WithKeyMarker(const Aws::String &value)
ListObjectVersionsRequest & WithKeyMarker(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
ListObjectVersionsRequest & WithDelimiter(const char *value)
ListObjectVersionsRequest & WithKeyMarker(Aws::String &&value)
ListObjectVersionsRequest & WithDelimiter(const Aws::String &value)
ListObjectVersionsRequest & WithVersionIdMarker(const Aws::String &value)
ListObjectVersionsRequest & WithMaxKeys(int value)
ListObjectVersionsRequest & WithBucket(const char *value)
ListObjectVersionsRequest & WithBucket(const Aws::String &value)
ListObjectVersionsRequest & WithEncodingType(EncodingType &&value)
ListObjectVersionsRequest & WithPrefix(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListObjectVersionsRequest & WithDelimiter(Aws::String &&value)
ListObjectVersionsRequest & WithVersionIdMarker(Aws::String &&value)
JSON (JavaScript Object Notation).
ListObjectVersionsRequest & WithBucket(Aws::String &&value)