AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStateMachineRequest.h
1
6#pragma once
7#include <aws/states/SFN_EXPORTS.h>
8#include <aws/states/SFNRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/states/model/StateMachineType.h>
11#include <aws/states/model/LoggingConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/states/model/TracingConfiguration.h>
14#include <aws/states/model/EncryptionConfiguration.h>
15#include <aws/states/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace SFN
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_SFN_API CreateStateMachineRequest() = default;
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 "CreateStateMachine"; }
37
38 AWS_SFN_API Aws::String SerializePayload() const override;
39
41
42
44
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateStateMachineRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
69 inline const Aws::String& GetDefinition() const { return m_definition; }
70 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
71 template<typename DefinitionT = Aws::String>
72 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
73 template<typename DefinitionT = Aws::String>
74 CreateStateMachineRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
76
78
82 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
83 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
84 template<typename RoleArnT = Aws::String>
85 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
86 template<typename RoleArnT = Aws::String>
87 CreateStateMachineRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
89
91
96 inline StateMachineType GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(StateMachineType value) { m_typeHasBeenSet = true; m_type = value; }
99 inline CreateStateMachineRequest& WithType(StateMachineType value) { SetType(value); return *this;}
101
103
110 inline const LoggingConfiguration& GetLoggingConfiguration() const { return m_loggingConfiguration; }
111 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
112 template<typename LoggingConfigurationT = LoggingConfiguration>
113 void SetLoggingConfiguration(LoggingConfigurationT&& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = std::forward<LoggingConfigurationT>(value); }
114 template<typename LoggingConfigurationT = LoggingConfiguration>
115 CreateStateMachineRequest& WithLoggingConfiguration(LoggingConfigurationT&& value) { SetLoggingConfiguration(std::forward<LoggingConfigurationT>(value)); return *this;}
117
119
129 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Vector<Tag>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Vector<Tag>>
134 CreateStateMachineRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsT = Tag>
136 CreateStateMachineRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
138
140
143 inline const TracingConfiguration& GetTracingConfiguration() const { return m_tracingConfiguration; }
144 inline bool TracingConfigurationHasBeenSet() const { return m_tracingConfigurationHasBeenSet; }
145 template<typename TracingConfigurationT = TracingConfiguration>
146 void SetTracingConfiguration(TracingConfigurationT&& value) { m_tracingConfigurationHasBeenSet = true; m_tracingConfiguration = std::forward<TracingConfigurationT>(value); }
147 template<typename TracingConfigurationT = TracingConfiguration>
148 CreateStateMachineRequest& WithTracingConfiguration(TracingConfigurationT&& value) { SetTracingConfiguration(std::forward<TracingConfigurationT>(value)); return *this;}
150
152
156 inline bool GetPublish() const { return m_publish; }
157 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
158 inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
159 inline CreateStateMachineRequest& WithPublish(bool value) { SetPublish(value); return *this;}
161
163
170 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
171 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
172 template<typename VersionDescriptionT = Aws::String>
173 void SetVersionDescription(VersionDescriptionT&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::forward<VersionDescriptionT>(value); }
174 template<typename VersionDescriptionT = Aws::String>
175 CreateStateMachineRequest& WithVersionDescription(VersionDescriptionT&& value) { SetVersionDescription(std::forward<VersionDescriptionT>(value)); return *this;}
177
179
182 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
183 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
184 template<typename EncryptionConfigurationT = EncryptionConfiguration>
185 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value); }
186 template<typename EncryptionConfigurationT = EncryptionConfiguration>
187 CreateStateMachineRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) { SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value)); return *this;}
189 private:
190
191 Aws::String m_name;
192 bool m_nameHasBeenSet = false;
193
194 Aws::String m_definition;
195 bool m_definitionHasBeenSet = false;
196
197 Aws::String m_roleArn;
198 bool m_roleArnHasBeenSet = false;
199
201 bool m_typeHasBeenSet = false;
202
203 LoggingConfiguration m_loggingConfiguration;
204 bool m_loggingConfigurationHasBeenSet = false;
205
206 Aws::Vector<Tag> m_tags;
207 bool m_tagsHasBeenSet = false;
208
209 TracingConfiguration m_tracingConfiguration;
210 bool m_tracingConfigurationHasBeenSet = false;
211
212 bool m_publish{false};
213 bool m_publishHasBeenSet = false;
214
215 Aws::String m_versionDescription;
216 bool m_versionDescriptionHasBeenSet = false;
217
218 EncryptionConfiguration m_encryptionConfiguration;
219 bool m_encryptionConfigurationHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace SFN
224} // 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