AWS SDK for C++  1.9.104
AWS SDK for C++
SplitShardRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Kinesis
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SplitShard"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetStreamName() const{ return m_streamName; }
45 
49  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
50 
54  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
55 
59  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
60 
64  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
65 
69  inline SplitShardRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
70 
74  inline SplitShardRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
75 
79  inline SplitShardRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
80 
81 
85  inline const Aws::String& GetShardToSplit() const{ return m_shardToSplit; }
86 
90  inline bool ShardToSplitHasBeenSet() const { return m_shardToSplitHasBeenSet; }
91 
95  inline void SetShardToSplit(const Aws::String& value) { m_shardToSplitHasBeenSet = true; m_shardToSplit = value; }
96 
100  inline void SetShardToSplit(Aws::String&& value) { m_shardToSplitHasBeenSet = true; m_shardToSplit = std::move(value); }
101 
105  inline void SetShardToSplit(const char* value) { m_shardToSplitHasBeenSet = true; m_shardToSplit.assign(value); }
106 
110  inline SplitShardRequest& WithShardToSplit(const Aws::String& value) { SetShardToSplit(value); return *this;}
111 
115  inline SplitShardRequest& WithShardToSplit(Aws::String&& value) { SetShardToSplit(std::move(value)); return *this;}
116 
120  inline SplitShardRequest& WithShardToSplit(const char* value) { SetShardToSplit(value); return *this;}
121 
122 
132  inline const Aws::String& GetNewStartingHashKey() const{ return m_newStartingHashKey; }
133 
143  inline bool NewStartingHashKeyHasBeenSet() const { return m_newStartingHashKeyHasBeenSet; }
144 
154  inline void SetNewStartingHashKey(const Aws::String& value) { m_newStartingHashKeyHasBeenSet = true; m_newStartingHashKey = value; }
155 
165  inline void SetNewStartingHashKey(Aws::String&& value) { m_newStartingHashKeyHasBeenSet = true; m_newStartingHashKey = std::move(value); }
166 
176  inline void SetNewStartingHashKey(const char* value) { m_newStartingHashKeyHasBeenSet = true; m_newStartingHashKey.assign(value); }
177 
187  inline SplitShardRequest& WithNewStartingHashKey(const Aws::String& value) { SetNewStartingHashKey(value); return *this;}
188 
198  inline SplitShardRequest& WithNewStartingHashKey(Aws::String&& value) { SetNewStartingHashKey(std::move(value)); return *this;}
199 
209  inline SplitShardRequest& WithNewStartingHashKey(const char* value) { SetNewStartingHashKey(value); return *this;}
210 
211  private:
212 
213  Aws::String m_streamName;
214  bool m_streamNameHasBeenSet;
215 
216  Aws::String m_shardToSplit;
217  bool m_shardToSplitHasBeenSet;
218 
219  Aws::String m_newStartingHashKey;
220  bool m_newStartingHashKeyHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace Kinesis
225 } // namespace Aws
Aws::Kinesis::Model::SplitShardRequest::ShardToSplitHasBeenSet
bool ShardToSplitHasBeenSet() const
Definition: SplitShardRequest.h:90
Aws::Kinesis::Model::SplitShardRequest::SetStreamName
void SetStreamName(const char *value)
Definition: SplitShardRequest.h:64
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::SplitShardRequest::WithStreamName
SplitShardRequest & WithStreamName(Aws::String &&value)
Definition: SplitShardRequest.h:74
Aws::Kinesis::Model::SplitShardRequest::SetShardToSplit
void SetShardToSplit(const char *value)
Definition: SplitShardRequest.h:105
Aws::Kinesis::Model::SplitShardRequest::SetNewStartingHashKey
void SetNewStartingHashKey(Aws::String &&value)
Definition: SplitShardRequest.h:165
Aws::Kinesis::Model::SplitShardRequest::WithShardToSplit
SplitShardRequest & WithShardToSplit(Aws::String &&value)
Definition: SplitShardRequest.h:115
Aws::Kinesis::Model::SplitShardRequest
Definition: SplitShardRequest.h:26
Aws::Kinesis::Model::SplitShardRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: SplitShardRequest.h:44
Aws::Kinesis::Model::SplitShardRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::SplitShardRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SplitShardRequest.h:34
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
KinesisRequest.h
Aws::Kinesis::Model::SplitShardRequest::WithShardToSplit
SplitShardRequest & WithShardToSplit(const char *value)
Definition: SplitShardRequest.h:120
Aws::Kinesis::Model::SplitShardRequest::WithStreamName
SplitShardRequest & WithStreamName(const char *value)
Definition: SplitShardRequest.h:79
Aws::Kinesis::Model::SplitShardRequest::WithNewStartingHashKey
SplitShardRequest & WithNewStartingHashKey(const Aws::String &value)
Definition: SplitShardRequest.h:187
Aws::Kinesis::Model::SplitShardRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: SplitShardRequest.h:49
Aws::Kinesis::Model::SplitShardRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: SplitShardRequest.h:59
Aws::Kinesis::Model::SplitShardRequest::SetShardToSplit
void SetShardToSplit(Aws::String &&value)
Definition: SplitShardRequest.h:100
Aws::Kinesis::Model::SplitShardRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::SplitShardRequest::SplitShardRequest
SplitShardRequest()
Aws::Kinesis::Model::SplitShardRequest::GetNewStartingHashKey
const Aws::String & GetNewStartingHashKey() const
Definition: SplitShardRequest.h:132
Kinesis_EXPORTS.h
Aws::Kinesis::Model::SplitShardRequest::WithNewStartingHashKey
SplitShardRequest & WithNewStartingHashKey(Aws::String &&value)
Definition: SplitShardRequest.h:198
Aws::Kinesis::Model::SplitShardRequest::SetNewStartingHashKey
void SetNewStartingHashKey(const char *value)
Definition: SplitShardRequest.h:176
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::SplitShardRequest::WithNewStartingHashKey
SplitShardRequest & WithNewStartingHashKey(const char *value)
Definition: SplitShardRequest.h:209
Aws::Kinesis::Model::SplitShardRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: SplitShardRequest.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::SplitShardRequest::NewStartingHashKeyHasBeenSet
bool NewStartingHashKeyHasBeenSet() const
Definition: SplitShardRequest.h:143
Aws::Kinesis::Model::SplitShardRequest::WithStreamName
SplitShardRequest & WithStreamName(const Aws::String &value)
Definition: SplitShardRequest.h:69
Aws::Kinesis::Model::SplitShardRequest::SetNewStartingHashKey
void SetNewStartingHashKey(const Aws::String &value)
Definition: SplitShardRequest.h:154
Aws::Kinesis::Model::SplitShardRequest::GetShardToSplit
const Aws::String & GetShardToSplit() const
Definition: SplitShardRequest.h:85
Aws::Kinesis::Model::SplitShardRequest::SetShardToSplit
void SetShardToSplit(const Aws::String &value)
Definition: SplitShardRequest.h:95
Aws::Kinesis::Model::SplitShardRequest::WithShardToSplit
SplitShardRequest & WithShardToSplit(const Aws::String &value)
Definition: SplitShardRequest.h:110