AWS SDK for C++  1.9.175
AWS SDK for C++
CreateStreamRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Kinesis
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
50  inline const Aws::String& GetStreamName() const{ return m_streamName; }
51 
60  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
61 
70  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
71 
80  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
81 
90  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
91 
100  inline CreateStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
101 
110  inline CreateStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
111 
120  inline CreateStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
121 
122 
128  inline int GetShardCount() const{ return m_shardCount; }
129 
135  inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
136 
142  inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; }
143 
149  inline CreateStreamRequest& WithShardCount(int value) { SetShardCount(value); return *this;}
150 
151 
157  inline const StreamModeDetails& GetStreamModeDetails() const{ return m_streamModeDetails; }
158 
164  inline bool StreamModeDetailsHasBeenSet() const { return m_streamModeDetailsHasBeenSet; }
165 
171  inline void SetStreamModeDetails(const StreamModeDetails& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = value; }
172 
178  inline void SetStreamModeDetails(StreamModeDetails&& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = std::move(value); }
179 
185  inline CreateStreamRequest& WithStreamModeDetails(const StreamModeDetails& value) { SetStreamModeDetails(value); return *this;}
186 
192  inline CreateStreamRequest& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;}
193 
194  private:
195 
196  Aws::String m_streamName;
197  bool m_streamNameHasBeenSet;
198 
199  int m_shardCount;
200  bool m_shardCountHasBeenSet;
201 
202  StreamModeDetails m_streamModeDetails;
203  bool m_streamModeDetailsHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace Kinesis
208 } // namespace Aws
Aws::Kinesis::Model::CreateStreamRequest::GetStreamModeDetails
const StreamModeDetails & GetStreamModeDetails() const
Definition: CreateStreamRequest.h:157
Aws::Kinesis::Model::CreateStreamRequest::SetShardCount
void SetShardCount(int value)
Definition: CreateStreamRequest.h:142
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::CreateStreamRequest::CreateStreamRequest
CreateStreamRequest()
Aws::Kinesis::Model::CreateStreamRequest::WithStreamModeDetails
CreateStreamRequest & WithStreamModeDetails(StreamModeDetails &&value)
Definition: CreateStreamRequest.h:192
Aws::Kinesis::Model::CreateStreamRequest::SetStreamModeDetails
void SetStreamModeDetails(StreamModeDetails &&value)
Definition: CreateStreamRequest.h:178
Aws::Kinesis::Model::CreateStreamRequest::SetStreamName
void SetStreamName(const char *value)
Definition: CreateStreamRequest.h:90
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::CreateStreamRequest::ShardCountHasBeenSet
bool ShardCountHasBeenSet() const
Definition: CreateStreamRequest.h:135
KinesisRequest.h
Aws::Kinesis::Model::CreateStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateStreamRequest.h:35
Aws::Kinesis::Model::CreateStreamRequest::WithStreamName
CreateStreamRequest & WithStreamName(Aws::String &&value)
Definition: CreateStreamRequest.h:110
Aws::Kinesis::Model::CreateStreamRequest::StreamModeDetailsHasBeenSet
bool StreamModeDetailsHasBeenSet() const
Definition: CreateStreamRequest.h:164
Aws::Kinesis::Model::CreateStreamRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: CreateStreamRequest.h:80
Aws::Kinesis::Model::CreateStreamRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: CreateStreamRequest.h:60
Aws::Kinesis::Model::CreateStreamRequest::WithStreamName
CreateStreamRequest & WithStreamName(const char *value)
Definition: CreateStreamRequest.h:120
Aws::Kinesis::Model::CreateStreamRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kinesis::Model::CreateStreamRequest::WithShardCount
CreateStreamRequest & WithShardCount(int value)
Definition: CreateStreamRequest.h:149
Aws::Kinesis::Model::CreateStreamRequest::WithStreamName
CreateStreamRequest & WithStreamName(const Aws::String &value)
Definition: CreateStreamRequest.h:100
AWSString.h
Aws::Kinesis::Model::CreateStreamRequest::GetShardCount
int GetShardCount() const
Definition: CreateStreamRequest.h:128
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Kinesis_EXPORTS.h
Aws::Kinesis::Model::CreateStreamRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: CreateStreamRequest.h:70
Aws::Kinesis::Model::CreateStreamRequest
Definition: CreateStreamRequest.h:27
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::CreateStreamRequest::WithStreamModeDetails
CreateStreamRequest & WithStreamModeDetails(const StreamModeDetails &value)
Definition: CreateStreamRequest.h:185
Aws::Kinesis::Model::CreateStreamRequest::SetStreamModeDetails
void SetStreamModeDetails(const StreamModeDetails &value)
Definition: CreateStreamRequest.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::CreateStreamRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StreamModeDetails.h
Aws::Kinesis::Model::StreamModeDetails
Definition: StreamModeDetails.h:35
Aws::Kinesis::Model::CreateStreamRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: CreateStreamRequest.h:50