AWS SDK for C++  1.9.107
AWS SDK for C++
MergeShardsRequest.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 "MergeShards"; }
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 MergeShardsRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
70 
74  inline MergeShardsRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
75 
79  inline MergeShardsRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
80 
81 
86  inline const Aws::String& GetShardToMerge() const{ return m_shardToMerge; }
87 
92  inline bool ShardToMergeHasBeenSet() const { return m_shardToMergeHasBeenSet; }
93 
98  inline void SetShardToMerge(const Aws::String& value) { m_shardToMergeHasBeenSet = true; m_shardToMerge = value; }
99 
104  inline void SetShardToMerge(Aws::String&& value) { m_shardToMergeHasBeenSet = true; m_shardToMerge = std::move(value); }
105 
110  inline void SetShardToMerge(const char* value) { m_shardToMergeHasBeenSet = true; m_shardToMerge.assign(value); }
111 
116  inline MergeShardsRequest& WithShardToMerge(const Aws::String& value) { SetShardToMerge(value); return *this;}
117 
122  inline MergeShardsRequest& WithShardToMerge(Aws::String&& value) { SetShardToMerge(std::move(value)); return *this;}
123 
128  inline MergeShardsRequest& WithShardToMerge(const char* value) { SetShardToMerge(value); return *this;}
129 
130 
134  inline const Aws::String& GetAdjacentShardToMerge() const{ return m_adjacentShardToMerge; }
135 
139  inline bool AdjacentShardToMergeHasBeenSet() const { return m_adjacentShardToMergeHasBeenSet; }
140 
144  inline void SetAdjacentShardToMerge(const Aws::String& value) { m_adjacentShardToMergeHasBeenSet = true; m_adjacentShardToMerge = value; }
145 
149  inline void SetAdjacentShardToMerge(Aws::String&& value) { m_adjacentShardToMergeHasBeenSet = true; m_adjacentShardToMerge = std::move(value); }
150 
154  inline void SetAdjacentShardToMerge(const char* value) { m_adjacentShardToMergeHasBeenSet = true; m_adjacentShardToMerge.assign(value); }
155 
159  inline MergeShardsRequest& WithAdjacentShardToMerge(const Aws::String& value) { SetAdjacentShardToMerge(value); return *this;}
160 
164  inline MergeShardsRequest& WithAdjacentShardToMerge(Aws::String&& value) { SetAdjacentShardToMerge(std::move(value)); return *this;}
165 
169  inline MergeShardsRequest& WithAdjacentShardToMerge(const char* value) { SetAdjacentShardToMerge(value); return *this;}
170 
171  private:
172 
173  Aws::String m_streamName;
174  bool m_streamNameHasBeenSet;
175 
176  Aws::String m_shardToMerge;
177  bool m_shardToMergeHasBeenSet;
178 
179  Aws::String m_adjacentShardToMerge;
180  bool m_adjacentShardToMergeHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace Kinesis
185 } // namespace Aws
Aws::Kinesis::Model::MergeShardsRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: MergeShardsRequest.h:44
Aws::Kinesis::Model::MergeShardsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: MergeShardsRequest.h:34
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::MergeShardsRequest::SetAdjacentShardToMerge
void SetAdjacentShardToMerge(Aws::String &&value)
Definition: MergeShardsRequest.h:149
Aws::Kinesis::Model::MergeShardsRequest::WithShardToMerge
MergeShardsRequest & WithShardToMerge(Aws::String &&value)
Definition: MergeShardsRequest.h:122
Aws::Kinesis::Model::MergeShardsRequest::WithStreamName
MergeShardsRequest & WithStreamName(const Aws::String &value)
Definition: MergeShardsRequest.h:69
Aws::Kinesis::Model::MergeShardsRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: MergeShardsRequest.h:54
Aws::Kinesis::Model::MergeShardsRequest::SetShardToMerge
void SetShardToMerge(Aws::String &&value)
Definition: MergeShardsRequest.h:104
Aws::Kinesis::Model::MergeShardsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Kinesis::Model::MergeShardsRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: MergeShardsRequest.h:49
Aws::Kinesis::Model::MergeShardsRequest::WithShardToMerge
MergeShardsRequest & WithShardToMerge(const char *value)
Definition: MergeShardsRequest.h:128
Aws::Kinesis::Model::MergeShardsRequest::GetAdjacentShardToMerge
const Aws::String & GetAdjacentShardToMerge() const
Definition: MergeShardsRequest.h:134
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::MergeShardsRequest::AdjacentShardToMergeHasBeenSet
bool AdjacentShardToMergeHasBeenSet() const
Definition: MergeShardsRequest.h:139
Aws::Kinesis::Model::MergeShardsRequest::WithStreamName
MergeShardsRequest & WithStreamName(const char *value)
Definition: MergeShardsRequest.h:79
KinesisRequest.h
Aws::Kinesis::Model::MergeShardsRequest::WithAdjacentShardToMerge
MergeShardsRequest & WithAdjacentShardToMerge(const Aws::String &value)
Definition: MergeShardsRequest.h:159
Aws::Kinesis::Model::MergeShardsRequest::WithShardToMerge
MergeShardsRequest & WithShardToMerge(const Aws::String &value)
Definition: MergeShardsRequest.h:116
AWSString.h
Aws::Kinesis::Model::MergeShardsRequest::GetShardToMerge
const Aws::String & GetShardToMerge() const
Definition: MergeShardsRequest.h:86
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::MergeShardsRequest::SetShardToMerge
void SetShardToMerge(const Aws::String &value)
Definition: MergeShardsRequest.h:98
Aws::Kinesis::Model::MergeShardsRequest::SetAdjacentShardToMerge
void SetAdjacentShardToMerge(const char *value)
Definition: MergeShardsRequest.h:154
Aws::Kinesis::Model::MergeShardsRequest::SerializePayload
Aws::String SerializePayload() const override
Kinesis_EXPORTS.h
Aws::Kinesis::Model::MergeShardsRequest::SetShardToMerge
void SetShardToMerge(const char *value)
Definition: MergeShardsRequest.h:110
Aws::Kinesis::Model::MergeShardsRequest::SetAdjacentShardToMerge
void SetAdjacentShardToMerge(const Aws::String &value)
Definition: MergeShardsRequest.h:144
Aws::Kinesis::Model::MergeShardsRequest::ShardToMergeHasBeenSet
bool ShardToMergeHasBeenSet() const
Definition: MergeShardsRequest.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::MergeShardsRequest
Definition: MergeShardsRequest.h:26
Aws::Kinesis::Model::MergeShardsRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: MergeShardsRequest.h:59
Aws::Kinesis::Model::MergeShardsRequest::WithStreamName
MergeShardsRequest & WithStreamName(Aws::String &&value)
Definition: MergeShardsRequest.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::MergeShardsRequest::WithAdjacentShardToMerge
MergeShardsRequest & WithAdjacentShardToMerge(const char *value)
Definition: MergeShardsRequest.h:169
Aws::Kinesis::Model::MergeShardsRequest::MergeShardsRequest
MergeShardsRequest()
Aws::Kinesis::Model::MergeShardsRequest::SetStreamName
void SetStreamName(const char *value)
Definition: MergeShardsRequest.h:64
Aws::Kinesis::Model::MergeShardsRequest::WithAdjacentShardToMerge
MergeShardsRequest & WithAdjacentShardToMerge(Aws::String &&value)
Definition: MergeShardsRequest.h:164