AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetShardIteratorRequest.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/dynamodbstreams/DynamoDBStreamsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodbstreams/model/ShardIteratorType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace DynamoDBStreams
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_DYNAMODBSTREAMS_API GetShardIteratorRequest();
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_DYNAMODBSTREAMS_API Aws::String SerializePayload() const override;
38
39 AWS_DYNAMODBSTREAMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
46 inline const Aws::String& GetStreamArn() const{ return m_streamArn; }
47 inline bool StreamArnHasBeenSet() const { return m_streamArnHasBeenSet; }
48 inline void SetStreamArn(const Aws::String& value) { m_streamArnHasBeenSet = true; m_streamArn = value; }
49 inline void SetStreamArn(Aws::String&& value) { m_streamArnHasBeenSet = true; m_streamArn = std::move(value); }
50 inline void SetStreamArn(const char* value) { m_streamArnHasBeenSet = true; m_streamArn.assign(value); }
51 inline GetShardIteratorRequest& WithStreamArn(const Aws::String& value) { SetStreamArn(value); return *this;}
52 inline GetShardIteratorRequest& WithStreamArn(Aws::String&& value) { SetStreamArn(std::move(value)); return *this;}
53 inline GetShardIteratorRequest& WithStreamArn(const char* value) { SetStreamArn(value); return *this;}
55
57
61 inline const Aws::String& GetShardId() const{ return m_shardId; }
62 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
63 inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
64 inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
65 inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
66 inline GetShardIteratorRequest& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
67 inline GetShardIteratorRequest& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
68 inline GetShardIteratorRequest& WithShardId(const char* value) { SetShardId(value); return *this;}
70
72
85 inline const ShardIteratorType& GetShardIteratorType() const{ return m_shardIteratorType; }
86 inline bool ShardIteratorTypeHasBeenSet() const { return m_shardIteratorTypeHasBeenSet; }
87 inline void SetShardIteratorType(const ShardIteratorType& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = value; }
88 inline void SetShardIteratorType(ShardIteratorType&& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = std::move(value); }
90 inline GetShardIteratorRequest& WithShardIteratorType(ShardIteratorType&& value) { SetShardIteratorType(std::move(value)); return *this;}
92
94
98 inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
99 inline bool SequenceNumberHasBeenSet() const { return m_sequenceNumberHasBeenSet; }
100 inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = value; }
101 inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber = std::move(value); }
102 inline void SetSequenceNumber(const char* value) { m_sequenceNumberHasBeenSet = true; m_sequenceNumber.assign(value); }
103 inline GetShardIteratorRequest& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
104 inline GetShardIteratorRequest& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
105 inline GetShardIteratorRequest& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
107 private:
108
109 Aws::String m_streamArn;
110 bool m_streamArnHasBeenSet = false;
111
112 Aws::String m_shardId;
113 bool m_shardIdHasBeenSet = false;
114
115 ShardIteratorType m_shardIteratorType;
116 bool m_shardIteratorTypeHasBeenSet = false;
117
118 Aws::String m_sequenceNumber;
119 bool m_sequenceNumberHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace DynamoDBStreams
124} // namespace Aws
GetShardIteratorRequest & WithStreamArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetShardIteratorRequest & WithShardIteratorType(ShardIteratorType &&value)
AWS_DYNAMODBSTREAMS_API Aws::String SerializePayload() const override
AWS_DYNAMODBSTREAMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetShardIteratorRequest & WithShardId(Aws::String &&value)
GetShardIteratorRequest & WithShardIteratorType(const ShardIteratorType &value)
GetShardIteratorRequest & WithStreamArn(const char *value)
GetShardIteratorRequest & WithSequenceNumber(const char *value)
GetShardIteratorRequest & WithSequenceNumber(Aws::String &&value)
GetShardIteratorRequest & WithShardId(const Aws::String &value)
GetShardIteratorRequest & WithSequenceNumber(const Aws::String &value)
void SetShardIteratorType(const ShardIteratorType &value)
GetShardIteratorRequest & WithStreamArn(const Aws::String &value)
GetShardIteratorRequest & WithShardId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String