AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 AWS_KINESIS_API Aws::String SerializePayload() const override;
36
38
43
47 inline const SubscribeToShardHandler& GetEventStreamHandler() const { return m_handler; }
48
52 inline void SetEventStreamHandler(const SubscribeToShardHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
53
58
62 AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override;
63
65
69 inline const Aws::String& GetConsumerARN() const{ return m_consumerARN; }
70 inline bool ConsumerARNHasBeenSet() const { return m_consumerARNHasBeenSet; }
71 inline void SetConsumerARN(const Aws::String& value) { m_consumerARNHasBeenSet = true; m_consumerARN = value; }
72 inline void SetConsumerARN(Aws::String&& value) { m_consumerARNHasBeenSet = true; m_consumerARN = std::move(value); }
73 inline void SetConsumerARN(const char* value) { m_consumerARNHasBeenSet = true; m_consumerARN.assign(value); }
74 inline SubscribeToShardRequest& WithConsumerARN(const Aws::String& value) { SetConsumerARN(value); return *this;}
75 inline SubscribeToShardRequest& WithConsumerARN(Aws::String&& value) { SetConsumerARN(std::move(value)); return *this;}
76 inline SubscribeToShardRequest& WithConsumerARN(const char* value) { SetConsumerARN(value); return *this;}
78
80
84 inline const Aws::String& GetShardId() const{ return m_shardId; }
85 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
86 inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
87 inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
88 inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
89 inline SubscribeToShardRequest& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
90 inline SubscribeToShardRequest& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
91 inline SubscribeToShardRequest& WithShardId(const char* value) { SetShardId(value); return *this;}
93
95
98 inline const StartingPosition& GetStartingPosition() const{ return m_startingPosition; }
99 inline bool StartingPositionHasBeenSet() const { return m_startingPositionHasBeenSet; }
100 inline void SetStartingPosition(const StartingPosition& value) { m_startingPositionHasBeenSet = true; m_startingPosition = value; }
101 inline void SetStartingPosition(StartingPosition&& value) { m_startingPositionHasBeenSet = true; m_startingPosition = std::move(value); }
103 inline SubscribeToShardRequest& WithStartingPosition(StartingPosition&& value) { SetStartingPosition(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_consumerARN;
108 bool m_consumerARNHasBeenSet = false;
109
110 Aws::String m_shardId;
111 bool m_shardIdHasBeenSet = false;
112
113 StartingPosition m_startingPosition;
114 bool m_startingPositionHasBeenSet = false;
115 SubscribeToShardHandler m_handler;
117
118 };
119
120} // namespace Model
121} // namespace Kinesis
122} // namespace Aws
Aws::Endpoint::EndpointParameters EndpointParameters
const SubscribeToShardHandler & GetEventStreamHandler() const
SubscribeToShardRequest & WithShardId(const Aws::String &value)
const StartingPosition & GetStartingPosition() const
SubscribeToShardRequest & WithConsumerARN(const char *value)
SubscribeToShardRequest & WithConsumerARN(Aws::String &&value)
SubscribeToShardRequest & WithConsumerARN(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
SubscribeToShardRequest & WithStartingPosition(const StartingPosition &value)
SubscribeToShardRequest & WithShardId(const char *value)
AWS_KINESIS_API EndpointParameters GetEndpointContextParams() const override
AWS_KINESIS_API Aws::String SerializePayload() const override
void SetStartingPosition(const StartingPosition &value)
SubscribeToShardRequest & WithStartingPosition(StartingPosition &&value)
SubscribeToShardRequest & WithEventStreamHandler(const SubscribeToShardHandler &value)
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEventStreamHandler(const SubscribeToShardHandler &value)
SubscribeToShardRequest & WithShardId(Aws::String &&value)
void ResetEventStreamHandler(EventStreamHandler *handler)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String