AWS SDK for C++  1.9.103
AWS SDK for C++
CreateStreamRequest.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 "CreateStream"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
48  inline const Aws::String& GetStreamName() const{ return m_streamName; }
49 
57  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
58 
66  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
67 
75  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
76 
84  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
85 
93  inline CreateStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
94 
102  inline CreateStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
103 
111  inline CreateStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
112 
113 
119  inline int GetShardCount() const{ return m_shardCount; }
120 
126  inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
127 
133  inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; }
134 
140  inline CreateStreamRequest& WithShardCount(int value) { SetShardCount(value); return *this;}
141 
142  private:
143 
144  Aws::String m_streamName;
145  bool m_streamNameHasBeenSet;
146 
147  int m_shardCount;
148  bool m_shardCountHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace Kinesis
153 } // namespace Aws
Aws::Kinesis::Model::CreateStreamRequest::SetShardCount
void SetShardCount(int value)
Definition: CreateStreamRequest.h:133
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::CreateStreamRequest::CreateStreamRequest
CreateStreamRequest()
Aws::Kinesis::Model::CreateStreamRequest::SetStreamName
void SetStreamName(const char *value)
Definition: CreateStreamRequest.h:84
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::CreateStreamRequest::ShardCountHasBeenSet
bool ShardCountHasBeenSet() const
Definition: CreateStreamRequest.h:126
KinesisRequest.h
Aws::Kinesis::Model::CreateStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateStreamRequest.h:34
Aws::Kinesis::Model::CreateStreamRequest::WithStreamName
CreateStreamRequest & WithStreamName(Aws::String &&value)
Definition: CreateStreamRequest.h:102
Aws::Kinesis::Model::CreateStreamRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: CreateStreamRequest.h:75
Aws::Kinesis::Model::CreateStreamRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: CreateStreamRequest.h:57
Aws::Kinesis::Model::CreateStreamRequest::WithStreamName
CreateStreamRequest & WithStreamName(const char *value)
Definition: CreateStreamRequest.h:111
Aws::Kinesis::Model::CreateStreamRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kinesis::Model::CreateStreamRequest::WithShardCount
CreateStreamRequest & WithShardCount(int value)
Definition: CreateStreamRequest.h:140
Aws::Kinesis::Model::CreateStreamRequest::WithStreamName
CreateStreamRequest & WithStreamName(const Aws::String &value)
Definition: CreateStreamRequest.h:93
AWSString.h
Aws::Kinesis::Model::CreateStreamRequest::GetShardCount
int GetShardCount() const
Definition: CreateStreamRequest.h:119
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Kinesis_EXPORTS.h
Aws::Kinesis::Model::CreateStreamRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: CreateStreamRequest.h:66
Aws::Kinesis::Model::CreateStreamRequest
Definition: CreateStreamRequest.h:26
Aws
Definition: AccessManagementClient.h:15
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
Aws::Kinesis::Model::CreateStreamRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: CreateStreamRequest.h:48