AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubscribeToShardRequest.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/kinesis/model/SubscribeToShardHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/kinesis/model/StartingPosition.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Kinesis
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_KINESIS_API SubscribeToShardRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SubscribeToShard"; }
34
35 inline virtual bool HasEventStreamResponse() const override { return true; }
36 AWS_KINESIS_API Aws::String SerializePayload() const override;
37
39
44
48 inline SubscribeToShardHandler& GetEventStreamHandler() { return m_handler; }
49
53 inline void SetEventStreamHandler(const SubscribeToShardHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
54
59
63 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
64
66
70 inline const Aws::String& GetConsumerARN() const { return m_consumerARN; }
71 inline bool ConsumerARNHasBeenSet() const { return m_consumerARNHasBeenSet; }
72 template<typename ConsumerARNT = Aws::String>
73 void SetConsumerARN(ConsumerARNT&& value) { m_consumerARNHasBeenSet = true; m_consumerARN = std::forward<ConsumerARNT>(value); }
74 template<typename ConsumerARNT = Aws::String>
75 SubscribeToShardRequest& WithConsumerARN(ConsumerARNT&& value) { SetConsumerARN(std::forward<ConsumerARNT>(value)); return *this;}
77
79
83 inline const Aws::String& GetShardId() const { return m_shardId; }
84 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
85 template<typename ShardIdT = Aws::String>
86 void SetShardId(ShardIdT&& value) { m_shardIdHasBeenSet = true; m_shardId = std::forward<ShardIdT>(value); }
87 template<typename ShardIdT = Aws::String>
88 SubscribeToShardRequest& WithShardId(ShardIdT&& value) { SetShardId(std::forward<ShardIdT>(value)); return *this;}
90
92
95 inline const StartingPosition& GetStartingPosition() const { return m_startingPosition; }
96 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
97 template<typename StartingPositionT = StartingPosition>
98 void SetStartingPosition(StartingPositionT&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::forward<StartingPositionT>(value); }
99 template<typename StartingPositionT = StartingPosition>
100 SubscribeToShardRequest& WithStartingPosition(StartingPositionT&& value) { SetStartingPosition(std::forward<StartingPositionT>(value)); return *this;}
102 private:
103
104 Aws::String m_consumerARN;
105 bool m_consumerARNHasBeenSet = false;
106
107 Aws::String m_shardId;
108 bool m_shardIdHasBeenSet = false;
109
110 StartingPosition m_startingPosition;
111 bool m_startingPositionHasBeenSet = false;
112 SubscribeToShardHandler m_handler;
114
115 };
116
117} // namespace Model
118} // namespace Kinesis
119} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
void SetStartingPosition(StartingPositionT &&value)
AWS_KINESIS_API SubscribeToShardRequest()=default
const StartingPosition & GetStartingPosition() const
virtual const char * GetServiceRequestName() const override
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
AWS_KINESIS_API Aws::String SerializePayload() const override
SubscribeToShardRequest & WithConsumerARN(ConsumerARNT &&value)
SubscribeToShardRequest & WithEventStreamHandler(const SubscribeToShardHandler &value)
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEventStreamHandler(const SubscribeToShardHandler &value)
SubscribeToShardRequest & WithShardId(ShardIdT &&value)
SubscribeToShardRequest & WithStartingPosition(StartingPositionT &&value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String