AWS SDK for C++  1.8.95
AWS SDK for C++
GetShardIteratorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DynamoDBStreams
16 {
17 namespace Model
18 {
19 
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 "GetShardIterator"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::String& GetStreamArn() const{ return m_streamArn; }
46 
50  inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
51 
55  inline void SetStreamArn(const Aws::String& value) { m_streamArnHasBeenSet = true; m_streamArn = value; }
56 
60  inline void SetStreamArn(Aws::String&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::move(value); }
61 
65  inline void SetStreamArn(const char* value) { m_streamArnHasBeenSet = true; m_streamArn.assign(value); }
66 
70  inline GetShardIteratorRequest& WithStreamArn(const Aws::String& value) { SetStreamArn(value); return *this;}
71 
75  inline GetShardIteratorRequest& WithStreamArn(Aws::String&& value) { SetStreamArn(std::move(value)); return *this;}
76 
80  inline GetShardIteratorRequest& WithStreamArn(const char* value) { SetStreamArn(value); return *this;}
81 
82 
87  inline const Aws::String& GetShardId() const{ return m_shardId; }
88 
93  inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
94 
99  inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
100 
105  inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
106 
111  inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
112 
117  inline GetShardIteratorRequest& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
118 
123  inline GetShardIteratorRequest& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
124 
129  inline GetShardIteratorRequest& WithShardId(const char* value) { SetShardId(value); return *this;}
130 
131 
145  inline const ShardIteratorType& GetShardIteratorType() const{ return m_shardIteratorType; }
146 
160  inline bool ShardIteratorTypeHasBeenSet() const { return m_shardIteratorTypeHasBeenSet; }
161 
175  inline void SetShardIteratorType(const ShardIteratorType& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = value; }
176 
190  inline void SetShardIteratorType(ShardIteratorType&& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = std::move(value); }
191 
205  inline GetShardIteratorRequest& WithShardIteratorType(const ShardIteratorType& value) { SetShardIteratorType(value); return *this;}
206 
220  inline GetShardIteratorRequest& WithShardIteratorType(ShardIteratorType&& value) { SetShardIteratorType(std::move(value)); return *this;}
221 
222 
227  inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
228 
233  inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
234 
239  inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
240 
245  inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
246 
251  inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
252 
257  inline GetShardIteratorRequest& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
258 
263  inline GetShardIteratorRequest& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
264 
269  inline GetShardIteratorRequest& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
270 
271  private:
272 
273  Aws::String m_streamArn;
274  bool m_streamArnHasBeenSet;
275 
276  Aws::String m_shardId;
277  bool m_shardIdHasBeenSet;
278 
279  ShardIteratorType m_shardIteratorType;
280  bool m_shardIteratorTypeHasBeenSet;
281 
282  Aws::String m_sequenceNumber;
283  bool m_sequenceNumberHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace DynamoDBStreams
288 } // namespace Aws
GetShardIteratorRequest & WithStreamArn(Aws::String &&value)
GetShardIteratorRequest & WithSequenceNumber(Aws::String &&value)
GetShardIteratorRequest & WithShardId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
GetShardIteratorRequest & WithShardIteratorType(ShardIteratorType &&value)
GetShardIteratorRequest & WithStreamArn(const char *value)
void SetShardIteratorType(const ShardIteratorType &value)
#define AWS_DYNAMODBSTREAMS_API
GetShardIteratorRequest & WithShardId(const Aws::String &value)
GetShardIteratorRequest & WithSequenceNumber(const char *value)
GetShardIteratorRequest & WithSequenceNumber(const Aws::String &value)
GetShardIteratorRequest & WithShardIteratorType(const ShardIteratorType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override
GetShardIteratorRequest & WithStreamArn(const Aws::String &value)
GetShardIteratorRequest & WithShardId(const char *value)