AWS SDK for C++  0.12.9
AWS SDK for C++
GetShardIteratorRequest.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
21 
22 namespace Aws
23 {
24 namespace Kinesis
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetStreamName() const{ return m_streamName; }
44 
48  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
49 
53  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
54 
58  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
59 
63  inline GetShardIteratorRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
64 
68  inline GetShardIteratorRequest& WithStreamName(Aws::String&& value) { SetStreamName(value); return *this;}
69 
73  inline GetShardIteratorRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
74 
78  inline const Aws::String& GetShardId() const{ return m_shardId; }
79 
83  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
84 
88  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
89 
93  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
94 
98  inline GetShardIteratorRequest& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
99 
103  inline GetShardIteratorRequest& WithShardId(Aws::String&& value) { SetShardId(value); return *this;}
104 
108  inline GetShardIteratorRequest& WithShardId(const char* value) { SetShardId(value); return *this;}
109 
124  inline const ShardIteratorType& GetShardIteratorType() const{ return m_shardIteratorType; }
125 
140  inline void SetShardIteratorType(const ShardIteratorType& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = value; }
141 
156  inline void SetShardIteratorType(ShardIteratorType&& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = value; }
157 
172  inline GetShardIteratorRequest& WithShardIteratorType(const ShardIteratorType& value) { SetShardIteratorType(value); return *this;}
173 
188  inline GetShardIteratorRequest& WithShardIteratorType(ShardIteratorType&& value) { SetShardIteratorType(value); return *this;}
189 
195  inline const Aws::String& GetStartingSequenceNumber() const{ return m_startingSequenceNumber; }
196 
202  inline void SetStartingSequenceNumber(const Aws::String& value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber = value; }
203 
209  inline void SetStartingSequenceNumber(Aws::String&& value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber = value; }
210 
216  inline void SetStartingSequenceNumber(const char* value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber.assign(value); }
217 
223  inline GetShardIteratorRequest& WithStartingSequenceNumber(const Aws::String& value) { SetStartingSequenceNumber(value); return *this;}
224 
230  inline GetShardIteratorRequest& WithStartingSequenceNumber(Aws::String&& value) { SetStartingSequenceNumber(value); return *this;}
231 
237  inline GetShardIteratorRequest& WithStartingSequenceNumber(const char* value) { SetStartingSequenceNumber(value); return *this;}
238 
248  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
249 
259  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
260 
270  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
271 
281  inline GetShardIteratorRequest& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
282 
292  inline GetShardIteratorRequest& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
293 
294  private:
295  Aws::String m_streamName;
296  bool m_streamNameHasBeenSet;
297  Aws::String m_shardId;
298  bool m_shardIdHasBeenSet;
299  ShardIteratorType m_shardIteratorType;
300  bool m_shardIteratorTypeHasBeenSet;
301  Aws::String m_startingSequenceNumber;
302  bool m_startingSequenceNumberHasBeenSet;
303  Aws::Utils::DateTime m_timestamp;
304  bool m_timestampHasBeenSet;
305  };
306 
307 } // namespace Model
308 } // namespace Kinesis
309 } // namespace Aws
void SetStartingSequenceNumber(const Aws::String &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
GetShardIteratorRequest & WithStreamName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
GetShardIteratorRequest & WithStreamName(const Aws::String &value)
const ShardIteratorType & GetShardIteratorType() const
GetShardIteratorRequest & WithShardId(const Aws::String &value)
const Aws::Utils::DateTime & GetTimestamp() const
GetShardIteratorRequest & WithShardIteratorType(ShardIteratorType &&value)
GetShardIteratorRequest & WithStreamName(Aws::String &&value)
GetShardIteratorRequest & WithTimestamp(Aws::Utils::DateTime &&value)
GetShardIteratorRequest & WithTimestamp(const Aws::Utils::DateTime &value)
GetShardIteratorRequest & WithShardId(Aws::String &&value)
void SetShardIteratorType(const ShardIteratorType &value)
GetShardIteratorRequest & WithStartingSequenceNumber(Aws::String &&value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetShardIteratorRequest & WithStartingSequenceNumber(const char *value)
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetShardIteratorType(ShardIteratorType &&value)
GetShardIteratorRequest & WithShardId(const char *value)
GetShardIteratorRequest & WithShardIteratorType(const ShardIteratorType &value)
GetShardIteratorRequest & WithStartingSequenceNumber(const Aws::String &value)
JSON (JavaScript Object Notation).