AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline CreateStateMachineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline CreateStateMachineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline CreateStateMachineRequest& WithName(const char* value) { SetName(value); return *this;}
62
64
69 inline const Aws::String& GetDefinition() const{ return m_definition; }
70 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
71 inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
72 inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
73 inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
74 inline CreateStateMachineRequest& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
75 inline CreateStateMachineRequest& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
76 inline CreateStateMachineRequest& WithDefinition(const char* value) { SetDefinition(value); return *this;}
78
80
84 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
85 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
86 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
87 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
88 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
89 inline CreateStateMachineRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
90 inline CreateStateMachineRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
91 inline CreateStateMachineRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
93
95
100 inline const StateMachineType& GetType() const{ return m_type; }
101 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
102 inline void SetType(const StateMachineType& value) { m_typeHasBeenSet = true; m_type = value; }
103 inline void SetType(StateMachineType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
104 inline CreateStateMachineRequest& WithType(const StateMachineType& value) { SetType(value); return *this;}
105 inline CreateStateMachineRequest& WithType(StateMachineType&& value) { SetType(std::move(value)); return *this;}
107
109
116 inline const LoggingConfiguration& GetLoggingConfiguration() const{ return m_loggingConfiguration; }
117 inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
118 inline void SetLoggingConfiguration(const LoggingConfiguration& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = value; }
119 inline void SetLoggingConfiguration(LoggingConfiguration&& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = std::move(value); }
123
125
135 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 inline CreateStateMachineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
140 inline CreateStateMachineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
141 inline CreateStateMachineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
142 inline CreateStateMachineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
144
146
149 inline const TracingConfiguration& GetTracingConfiguration() const{ return m_tracingConfiguration; }
150 inline bool TracingConfigurationHasBeenSet() const { return m_tracingConfigurationHasBeenSet; }
151 inline void SetTracingConfiguration(const TracingConfiguration& value) { m_tracingConfigurationHasBeenSet = true; m_tracingConfiguration = value; }
152 inline void SetTracingConfiguration(TracingConfiguration&& value) { m_tracingConfigurationHasBeenSet = true; m_tracingConfiguration = std::move(value); }
156
158
162 inline bool GetPublish() const{ return m_publish; }
163 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
164 inline void SetPublish(bool value) { m_publishHasBeenSet = true; m_publish = value; }
165 inline CreateStateMachineRequest& WithPublish(bool value) { SetPublish(value); return *this;}
167
169
176 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
177 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
178 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
179 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
180 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
182 inline CreateStateMachineRequest& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
183 inline CreateStateMachineRequest& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
185
187
190 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
191 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
192 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
193 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
197 private:
198
199 Aws::String m_name;
200 bool m_nameHasBeenSet = false;
201
202 Aws::String m_definition;
203 bool m_definitionHasBeenSet = false;
204
205 Aws::String m_roleArn;
206 bool m_roleArnHasBeenSet = false;
207
208 StateMachineType m_type;
209 bool m_typeHasBeenSet = false;
210
211 LoggingConfiguration m_loggingConfiguration;
212 bool m_loggingConfigurationHasBeenSet = false;
213
214 Aws::Vector<Tag> m_tags;
215 bool m_tagsHasBeenSet = false;
216
217 TracingConfiguration m_tracingConfiguration;
218 bool m_tracingConfigurationHasBeenSet = false;
219
220 bool m_publish;
221 bool m_publishHasBeenSet = false;
222
223 Aws::String m_versionDescription;
224 bool m_versionDescriptionHasBeenSet = false;
225
226 EncryptionConfiguration m_encryptionConfiguration;
227 bool m_encryptionConfigurationHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace SFN
232} // namespace Aws
CreateStateMachineRequest & WithDefinition(const Aws::String &value)
CreateStateMachineRequest & AddTags(Tag &&value)
CreateStateMachineRequest & WithType(const StateMachineType &value)
CreateStateMachineRequest & WithPublish(bool value)
CreateStateMachineRequest & WithRoleArn(const Aws::String &value)
CreateStateMachineRequest & WithTracingConfiguration(TracingConfiguration &&value)
AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStateMachineRequest & WithEncryptionConfiguration(const EncryptionConfiguration &value)
CreateStateMachineRequest & WithTags(const Aws::Vector< Tag > &value)
CreateStateMachineRequest & WithVersionDescription(Aws::String &&value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
CreateStateMachineRequest & WithName(Aws::String &&value)
CreateStateMachineRequest & WithRoleArn(const char *value)
CreateStateMachineRequest & WithTracingConfiguration(const TracingConfiguration &value)
CreateStateMachineRequest & WithLoggingConfiguration(const LoggingConfiguration &value)
const TracingConfiguration & GetTracingConfiguration() const
virtual const char * GetServiceRequestName() const override
CreateStateMachineRequest & WithEncryptionConfiguration(EncryptionConfiguration &&value)
CreateStateMachineRequest & WithDefinition(Aws::String &&value)
CreateStateMachineRequest & AddTags(const Tag &value)
CreateStateMachineRequest & WithName(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateStateMachineRequest & WithDefinition(const char *value)
void SetTracingConfiguration(TracingConfiguration &&value)
CreateStateMachineRequest & WithVersionDescription(const char *value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateStateMachineRequest & WithType(StateMachineType &&value)
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
const LoggingConfiguration & GetLoggingConfiguration() const
void SetLoggingConfiguration(LoggingConfiguration &&value)
CreateStateMachineRequest & WithRoleArn(Aws::String &&value)
void SetLoggingConfiguration(const LoggingConfiguration &value)
AWS_SFN_API Aws::String SerializePayload() const override
CreateStateMachineRequest & WithLoggingConfiguration(LoggingConfiguration &&value)
void SetTracingConfiguration(const TracingConfiguration &value)
CreateStateMachineRequest & WithName(const Aws::String &value)
CreateStateMachineRequest & WithVersionDescription(const Aws::String &value)
CreateStateMachineRequest & WithTags(Aws::Vector< Tag > &&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