AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateStreamRequest.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/KinesisRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesis/model/StreamModeDetails.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Kinesis
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_KINESIS_API CreateStreamRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
37
38 AWS_KINESIS_API Aws::String SerializePayload() const override;
39
41
42
44
52 inline const Aws::String& GetStreamName() const{ return m_streamName; }
53 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
54 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
55 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
56 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
57 inline CreateStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
58 inline CreateStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
59 inline CreateStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
61
63
68 inline int GetShardCount() const{ return m_shardCount; }
69 inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
70 inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; }
71 inline CreateStreamRequest& WithShardCount(int value) { SetShardCount(value); return *this;}
73
75
80 inline const StreamModeDetails& GetStreamModeDetails() const{ return m_streamModeDetails; }
81 inline bool StreamModeDetailsHasBeenSet() const { return m_streamModeDetailsHasBeenSet; }
82 inline void SetStreamModeDetails(const StreamModeDetails& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = value; }
83 inline void SetStreamModeDetails(StreamModeDetails&& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = std::move(value); }
85 inline CreateStreamRequest& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateStreamRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
97 inline CreateStreamRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateStreamRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99 inline CreateStreamRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline CreateStreamRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
101 inline CreateStreamRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
102 inline CreateStreamRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
103 inline CreateStreamRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
104 inline CreateStreamRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
106 private:
107
108 Aws::String m_streamName;
109 bool m_streamNameHasBeenSet = false;
110
111 int m_shardCount;
112 bool m_shardCountHasBeenSet = false;
113
114 StreamModeDetails m_streamModeDetails;
115 bool m_streamModeDetailsHasBeenSet = false;
116
118 bool m_tagsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Kinesis
123} // namespace Aws
void SetStreamName(const Aws::String &value)
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetStreamModeDetails(StreamModeDetails &&value)
CreateStreamRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateStreamRequest & WithShardCount(int value)
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & WithStreamName(const char *value)
CreateStreamRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateStreamRequest & AddTags(const char *key, const char *value)
AWS_KINESIS_API Aws::String SerializePayload() const override
CreateStreamRequest & WithStreamModeDetails(const StreamModeDetails &value)
CreateStreamRequest & WithStreamName(const Aws::String &value)
CreateStreamRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateStreamRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateStreamRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateStreamRequest & AddTags(Aws::String &&key, const char *value)
CreateStreamRequest & WithStreamName(Aws::String &&value)
CreateStreamRequest & WithStreamModeDetails(StreamModeDetails &&value)
const StreamModeDetails & GetStreamModeDetails() const
void SetStreamModeDetails(const StreamModeDetails &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateStreamRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateStreamRequest & AddTags(const char *key, Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String