AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesis/KinesisRequest.h>
10#include <aws/kinesis/Kinesis_EXPORTS.h>
11#include <aws/kinesis/model/StreamModeDetails.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Kinesis {
17namespace Model {
18
26 public:
27 AWS_KINESIS_API CreateStreamRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
34
35 AWS_KINESIS_API Aws::String SerializePayload() const override;
36
38
40
48 inline const Aws::String& GetStreamName() const { return m_streamName; }
49 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
50 template <typename StreamNameT = Aws::String>
51 void SetStreamName(StreamNameT&& value) {
52 m_streamNameHasBeenSet = true;
53 m_streamName = std::forward<StreamNameT>(value);
54 }
55 template <typename StreamNameT = Aws::String>
56 CreateStreamRequest& WithStreamName(StreamNameT&& value) {
57 SetStreamName(std::forward<StreamNameT>(value));
58 return *this;
59 }
61
63
68 inline int GetShardCount() const { return m_shardCount; }
69 inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; }
70 inline void SetShardCount(int value) {
71 m_shardCountHasBeenSet = true;
72 m_shardCount = value;
73 }
75 SetShardCount(value);
76 return *this;
77 }
79
81
86 inline const StreamModeDetails& GetStreamModeDetails() const { return m_streamModeDetails; }
87 inline bool StreamModeDetailsHasBeenSet() const { return m_streamModeDetailsHasBeenSet; }
88 template <typename StreamModeDetailsT = StreamModeDetails>
89 void SetStreamModeDetails(StreamModeDetailsT&& value) {
90 m_streamModeDetailsHasBeenSet = true;
91 m_streamModeDetails = std::forward<StreamModeDetailsT>(value);
92 }
93 template <typename StreamModeDetailsT = StreamModeDetails>
94 CreateStreamRequest& WithStreamModeDetails(StreamModeDetailsT&& value) {
95 SetStreamModeDetails(std::forward<StreamModeDetailsT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 void SetTags(TagsT&& value) {
109 m_tagsHasBeenSet = true;
110 m_tags = std::forward<TagsT>(value);
111 }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 SetTags(std::forward<TagsT>(value));
115 return *this;
116 }
117 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
118 CreateStreamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
121 return *this;
122 }
124
126
131 inline int GetWarmThroughputMiBps() const { return m_warmThroughputMiBps; }
132 inline bool WarmThroughputMiBpsHasBeenSet() const { return m_warmThroughputMiBpsHasBeenSet; }
133 inline void SetWarmThroughputMiBps(int value) {
134 m_warmThroughputMiBpsHasBeenSet = true;
135 m_warmThroughputMiBps = value;
136 }
139 return *this;
140 }
142
144
148 inline int GetMaxRecordSizeInKiB() const { return m_maxRecordSizeInKiB; }
149 inline bool MaxRecordSizeInKiBHasBeenSet() const { return m_maxRecordSizeInKiBHasBeenSet; }
150 inline void SetMaxRecordSizeInKiB(int value) {
151 m_maxRecordSizeInKiBHasBeenSet = true;
152 m_maxRecordSizeInKiB = value;
153 }
156 return *this;
157 }
159 private:
160 Aws::String m_streamName;
161
162 int m_shardCount{0};
163
164 StreamModeDetails m_streamModeDetails;
165
167
168 int m_warmThroughputMiBps{0};
169
170 int m_maxRecordSizeInKiB{0};
171 bool m_streamNameHasBeenSet = false;
172 bool m_shardCountHasBeenSet = false;
173 bool m_streamModeDetailsHasBeenSet = false;
174 bool m_tagsHasBeenSet = false;
175 bool m_warmThroughputMiBpsHasBeenSet = false;
176 bool m_maxRecordSizeInKiBHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace Kinesis
181} // namespace Aws
AWS_KINESIS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStreamRequest & WithShardCount(int value)
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & WithStreamName(StreamNameT &&value)
void SetStreamModeDetails(StreamModeDetailsT &&value)
CreateStreamRequest & WithStreamModeDetails(StreamModeDetailsT &&value)
CreateStreamRequest & WithTags(TagsT &&value)
CreateStreamRequest & WithWarmThroughputMiBps(int value)
AWS_KINESIS_API Aws::String SerializePayload() const override
CreateStreamRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateStreamRequest & WithMaxRecordSizeInKiB(int value)
const StreamModeDetails & GetStreamModeDetails() const
AWS_KINESIS_API CreateStreamRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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