AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateStreamRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dsql/DSQLRequest.h>
11#include <aws/dsql/DSQL_EXPORTS.h>
12#include <aws/dsql/model/StreamFormat.h>
13#include <aws/dsql/model/StreamOrdering.h>
14#include <aws/dsql/model/TargetDefinition.h>
15
16#include <utility>
17
18namespace Aws {
19namespace DSQL {
20namespace Model {
21
25 public:
26 AWS_DSQL_API CreateStreamRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateStream"; }
33
34 AWS_DSQL_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
41 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
42 template <typename ClusterIdentifierT = Aws::String>
43 void SetClusterIdentifier(ClusterIdentifierT&& value) {
44 m_clusterIdentifierHasBeenSet = true;
45 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
46 }
47 template <typename ClusterIdentifierT = Aws::String>
48 CreateStreamRequest& WithClusterIdentifier(ClusterIdentifierT&& value) {
49 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const TargetDefinition& GetTargetDefinition() const { return m_targetDefinition; }
60 inline bool TargetDefinitionHasBeenSet() const { return m_targetDefinitionHasBeenSet; }
61 template <typename TargetDefinitionT = TargetDefinition>
62 void SetTargetDefinition(TargetDefinitionT&& value) {
63 m_targetDefinitionHasBeenSet = true;
64 m_targetDefinition = std::forward<TargetDefinitionT>(value);
65 }
66 template <typename TargetDefinitionT = TargetDefinition>
67 CreateStreamRequest& WithTargetDefinition(TargetDefinitionT&& value) {
68 SetTargetDefinition(std::forward<TargetDefinitionT>(value));
69 return *this;
70 }
72
74
78 inline StreamOrdering GetOrdering() const { return m_ordering; }
79 inline bool OrderingHasBeenSet() const { return m_orderingHasBeenSet; }
80 inline void SetOrdering(StreamOrdering value) {
81 m_orderingHasBeenSet = true;
82 m_ordering = value;
83 }
85 SetOrdering(value);
86 return *this;
87 }
89
91
94 inline StreamFormat GetFormat() const { return m_format; }
95 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
96 inline void SetFormat(StreamFormat value) {
97 m_formatHasBeenSet = true;
98 m_format = value;
99 }
101 SetFormat(value);
102 return *this;
103 }
105
107
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateStreamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129
131
140 inline const Aws::String& GetClientToken() const { return m_clientToken; }
141 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
142 template <typename ClientTokenT = Aws::String>
143 void SetClientToken(ClientTokenT&& value) {
144 m_clientTokenHasBeenSet = true;
145 m_clientToken = std::forward<ClientTokenT>(value);
146 }
147 template <typename ClientTokenT = Aws::String>
148 CreateStreamRequest& WithClientToken(ClientTokenT&& value) {
149 SetClientToken(std::forward<ClientTokenT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_clusterIdentifier;
155
156 TargetDefinition m_targetDefinition;
157
159
161
163
165 bool m_clusterIdentifierHasBeenSet = false;
166 bool m_targetDefinitionHasBeenSet = false;
167 bool m_orderingHasBeenSet = false;
168 bool m_formatHasBeenSet = false;
169 bool m_tagsHasBeenSet = false;
170 bool m_clientTokenHasBeenSet = true;
171};
172
173} // namespace Model
174} // namespace DSQL
175} // namespace Aws
void SetClusterIdentifier(ClusterIdentifierT &&value)
AWS_DSQL_API CreateStreamRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTargetDefinition(TargetDefinitionT &&value)
CreateStreamRequest & WithOrdering(StreamOrdering value)
const Aws::String & GetClusterIdentifier() const
CreateStreamRequest & WithTags(TagsT &&value)
AWS_DSQL_API Aws::String SerializePayload() const override
CreateStreamRequest & WithTargetDefinition(TargetDefinitionT &&value)
CreateStreamRequest & WithClientToken(ClientTokenT &&value)
const TargetDefinition & GetTargetDefinition() const
CreateStreamRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
virtual const char * GetServiceRequestName() const override
CreateStreamRequest & WithFormat(StreamFormat value)
CreateStreamRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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