AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateStateMachineRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/states/SFNRequest.h>
10#include <aws/states/SFN_EXPORTS.h>
11#include <aws/states/model/EncryptionConfiguration.h>
12#include <aws/states/model/LoggingConfiguration.h>
13#include <aws/states/model/StateMachineType.h>
14#include <aws/states/model/Tag.h>
15#include <aws/states/model/TracingConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SFN {
21namespace Model {
22
26 public:
27 AWS_SFN_API CreateStateMachineRequest() = 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 "CreateStateMachine"; }
34
35 AWS_SFN_API Aws::String SerializePayload() const override;
36
38
40
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::String& GetDefinition() const { return m_definition; }
72 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
73 template <typename DefinitionT = Aws::String>
74 void SetDefinition(DefinitionT&& value) {
75 m_definitionHasBeenSet = true;
76 m_definition = std::forward<DefinitionT>(value);
77 }
78 template <typename DefinitionT = Aws::String>
80 SetDefinition(std::forward<DefinitionT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
91 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
92 template <typename RoleArnT = Aws::String>
93 void SetRoleArn(RoleArnT&& value) {
94 m_roleArnHasBeenSet = true;
95 m_roleArn = std::forward<RoleArnT>(value);
96 }
97 template <typename RoleArnT = Aws::String>
99 SetRoleArn(std::forward<RoleArnT>(value));
100 return *this;
101 }
103
105
110 inline StateMachineType GetType() const { return m_type; }
111 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
112 inline void SetType(StateMachineType value) {
113 m_typeHasBeenSet = true;
114 m_type = value;
115 }
117 SetType(value);
118 return *this;
119 }
121
123
130 inline const LoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
131 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
132 template <typename LoggingConfigurationT = LoggingConfiguration>
133 void SetLoggingConfiguration(LoggingConfigurationT&& value) {
134 m_loggingConfigurationHasBeenSet = true;
135 m_loggingConfiguration = std::forward<LoggingConfigurationT>(value);
136 }
137 template <typename LoggingConfigurationT = LoggingConfiguration>
138 CreateStateMachineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) {
139 SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value));
140 return *this;
141 }
143
145
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Vector<Tag>>
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsT = Tag>
169 m_tagsHasBeenSet = true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
171 return *this;
172 }
174
176
179 inline const TracingConfiguration& GetTracingConfiguration() const { return m_tracingConfiguration; }
180 inline bool TracingConfigurationHasBeenSet() const { return m_tracingConfigurationHasBeenSet; }
181 template <typename TracingConfigurationT = TracingConfiguration>
182 void SetTracingConfiguration(TracingConfigurationT&& value) {
183 m_tracingConfigurationHasBeenSet = true;
184 m_tracingConfiguration = std::forward<TracingConfigurationT>(value);
185 }
186 template <typename TracingConfigurationT = TracingConfiguration>
187 CreateStateMachineRequest& WithTracingConfiguration(TracingConfigurationT&& value) {
188 SetTracingConfiguration(std::forward<TracingConfigurationT>(value));
189 return *this;
190 }
192
194
198 inline bool GetPublish() const { return m_publish; }
199 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
200 inline void SetPublish(bool value) {
201 m_publishHasBeenSet = true;
202 m_publish = value;
203 }
205 SetPublish(value);
206 return *this;
207 }
209
211
218 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
219 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
220 template <typename VersionDescriptionT = Aws::String>
221 void SetVersionDescription(VersionDescriptionT&& value) {
222 m_versionDescriptionHasBeenSet = true;
223 m_versionDescription = std::forward<VersionDescriptionT>(value);
224 }
225 template <typename VersionDescriptionT = Aws::String>
226 CreateStateMachineRequest& WithVersionDescription(VersionDescriptionT&& value) {
227 SetVersionDescription(std::forward<VersionDescriptionT>(value));
228 return *this;
229 }
231
233
236 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
237 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
238 template <typename EncryptionConfigurationT = EncryptionConfiguration>
239 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
240 m_encryptionConfigurationHasBeenSet = true;
241 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
242 }
243 template <typename EncryptionConfigurationT = EncryptionConfiguration>
244 CreateStateMachineRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
245 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
246 return *this;
247 }
249 private:
250 Aws::String m_name;
251
252 Aws::String m_definition;
253
254 Aws::String m_roleArn;
255
257
258 LoggingConfiguration m_loggingConfiguration;
259
260 Aws::Vector<Tag> m_tags;
261
262 TracingConfiguration m_tracingConfiguration;
263
264 bool m_publish{false};
265
266 Aws::String m_versionDescription;
267
268 EncryptionConfiguration m_encryptionConfiguration;
269 bool m_nameHasBeenSet = false;
270 bool m_definitionHasBeenSet = false;
271 bool m_roleArnHasBeenSet = false;
272 bool m_typeHasBeenSet = false;
273 bool m_loggingConfigurationHasBeenSet = false;
274 bool m_tagsHasBeenSet = false;
275 bool m_tracingConfigurationHasBeenSet = false;
276 bool m_publishHasBeenSet = false;
277 bool m_versionDescriptionHasBeenSet = false;
278 bool m_encryptionConfigurationHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace SFN
283} // namespace Aws
CreateStateMachineRequest & WithPublish(bool value)
void SetLoggingConfiguration(LoggingConfigurationT &&value)
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStateMachineRequest & WithName(NameT &&value)
CreateStateMachineRequest & WithLoggingConfiguration(LoggingConfigurationT &&value)
const TracingConfiguration & GetTracingConfiguration() const
CreateStateMachineRequest & WithDefinition(DefinitionT &&value)
virtual const char * GetServiceRequestName() const override
CreateStateMachineRequest & WithTracingConfiguration(TracingConfigurationT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateStateMachineRequest & AddTags(TagsT &&value)
AWS_SFN_API CreateStateMachineRequest()=default
CreateStateMachineRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateStateMachineRequest & WithRoleArn(RoleArnT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
const LoggingConfiguration & GetLoggingConfiguration() const
void SetTracingConfiguration(TracingConfigurationT &&value)
AWS_SFN_API Aws::String SerializePayload() const override
CreateStateMachineRequest & WithTags(TagsT &&value)
void SetVersionDescription(VersionDescriptionT &&value)
CreateStateMachineRequest & WithVersionDescription(VersionDescriptionT &&value)
CreateStateMachineRequest & WithType(StateMachineType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector