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/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesis/model/ShardIteratorType.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kinesis
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_KINESIS_API GetShardIteratorRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetShardIterator"; }
37
38 AWS_KINESIS_API Aws::String SerializePayload() const override;
39
41
45 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
46
48
51 inline const Aws::String& GetStreamName() const{ return m_streamName; }
52 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
53 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
54 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
55 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
56 inline GetShardIteratorRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
57 inline GetShardIteratorRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
58 inline GetShardIteratorRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
60
62
65 inline const Aws::String& GetShardId() const{ return m_shardId; }
66 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
67 inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
68 inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
69 inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
70 inline GetShardIteratorRequest& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
71 inline GetShardIteratorRequest& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
72 inline GetShardIteratorRequest& WithShardId(const char* value) { SetShardId(value); return *this;}
74
76
91 inline const ShardIteratorType& GetShardIteratorType() const{ return m_shardIteratorType; }
92 inline bool ShardIteratorTypeHasBeenSet() const { return m_shardIteratorTypeHasBeenSet; }
93 inline void SetShardIteratorType(const ShardIteratorType& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = value; }
94 inline void SetShardIteratorType(ShardIteratorType&& value) { m_shardIteratorTypeHasBeenSet = true; m_shardIteratorType = std::move(value); }
96 inline GetShardIteratorRequest& WithShardIteratorType(ShardIteratorType&& value) { SetShardIteratorType(std::move(value)); return *this;}
98
100
105 inline const Aws::String& GetStartingSequenceNumber() const{ return m_startingSequenceNumber; }
106 inline bool StartingSequenceNumberHasBeenSet() const { return m_startingSequenceNumberHasBeenSet; }
107 inline void SetStartingSequenceNumber(const Aws::String& value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber = value; }
108 inline void SetStartingSequenceNumber(Aws::String&& value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber = std::move(value); }
109 inline void SetStartingSequenceNumber(const char* value) { m_startingSequenceNumberHasBeenSet = true; m_startingSequenceNumber.assign(value); }
112 inline GetShardIteratorRequest& WithStartingSequenceNumber(const char* value) { SetStartingSequenceNumber(value); return *this;}
114
116
126 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
127 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
128 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
129 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
130 inline GetShardIteratorRequest& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
131 inline GetShardIteratorRequest& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
133
135
138 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
139 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
140 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
141 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
142 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
143 inline GetShardIteratorRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
144 inline GetShardIteratorRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
145 inline GetShardIteratorRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
147 private:
148
149 Aws::String m_streamName;
150 bool m_streamNameHasBeenSet = false;
151
152 Aws::String m_shardId;
153 bool m_shardIdHasBeenSet = false;
154
155 ShardIteratorType m_shardIteratorType;
156 bool m_shardIteratorTypeHasBeenSet = false;
157
158 Aws::String m_startingSequenceNumber;
159 bool m_startingSequenceNumberHasBeenSet = false;
160
161 Aws::Utils::DateTime m_timestamp;
162 bool m_timestampHasBeenSet = false;
163
164 Aws::String m_streamARN;
165 bool m_streamARNHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Kinesis
170} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
const ShardIteratorType & GetShardIteratorType() const
GetShardIteratorRequest & WithTimestamp(Aws::Utils::DateTime &&value)
GetShardIteratorRequest & WithShardId(const char *value)
void SetShardIteratorType(ShardIteratorType &&value)
GetShardIteratorRequest & WithShardIteratorType(ShardIteratorType &&value)
GetShardIteratorRequest & WithStartingSequenceNumber(const Aws::String &value)
const Aws::Utils::DateTime & GetTimestamp() const
GetShardIteratorRequest & WithStreamARN(const char *value)
void SetTimestamp(const Aws::Utils::DateTime &value)
virtual const char * GetServiceRequestName() const override
GetShardIteratorRequest & WithStreamARN(Aws::String &&value)
GetShardIteratorRequest & WithStreamName(const char *value)
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTimestamp(Aws::Utils::DateTime &&value)
void SetShardIteratorType(const ShardIteratorType &value)
GetShardIteratorRequest & WithStreamARN(const Aws::String &value)
GetShardIteratorRequest & WithShardId(Aws::String &&value)
GetShardIteratorRequest & WithTimestamp(const Aws::Utils::DateTime &value)
GetShardIteratorRequest & WithStartingSequenceNumber(Aws::String &&value)
GetShardIteratorRequest & WithStreamName(Aws::String &&value)
GetShardIteratorRequest & WithStartingSequenceNumber(const char *value)
GetShardIteratorRequest & WithStreamName(const Aws::String &value)
void SetStartingSequenceNumber(const Aws::String &value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
GetShardIteratorRequest & WithShardId(const Aws::String &value)
AWS_KINESIS_API Aws::String SerializePayload() const override
GetShardIteratorRequest & WithShardIteratorType(const ShardIteratorType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String