AWS SDK for C++  1.8.71
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 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
void SetShardToMerge(const Aws::String &value)
MergeShardsRequest & WithShardToMerge(const Aws::String &value)
MergeShardsRequest & WithShardToMerge(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
MergeShardsRequest & WithAdjacentShardToMerge(const char *value)
MergeShardsRequest & WithStreamName(const char *value)
MergeShardsRequest & WithStreamName(const Aws::String &value)
MergeShardsRequest & WithAdjacentShardToMerge(Aws::String &&value)
const Aws::String & GetStreamName() const
void SetStreamName(const Aws::String &value)
void SetAdjacentShardToMerge(const Aws::String &value)
const Aws::String & GetShardToMerge() const
virtual const char * GetServiceRequestName() const override
MergeShardsRequest & WithStreamName(Aws::String &&value)
void SetAdjacentShardToMerge(Aws::String &&value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
MergeShardsRequest & WithAdjacentShardToMerge(const Aws::String &value)
MergeShardsRequest & WithShardToMerge(const char *value)
const Aws::String & GetAdjacentShardToMerge() const
void SetAdjacentShardToMerge(const char *value)