AWS SDK for C++  1.9.104
AWS SDK for C++
CreateStateMachineRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <aws/states/model/Tag.h>
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace SFN
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateStateMachine"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
51  inline const Aws::String& GetName() const{ return m_name; }
52 
62  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 
73  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 
84  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 
95  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 
106  inline CreateStateMachineRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
107 
117  inline CreateStateMachineRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
128  inline CreateStateMachineRequest& WithName(const char* value) { SetName(value); return *this;}
129 
130 
136  inline const Aws::String& GetDefinition() const{ return m_definition; }
137 
143  inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
144 
150  inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
151 
157  inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
158 
164  inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
165 
171  inline CreateStateMachineRequest& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
172 
178  inline CreateStateMachineRequest& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
179 
185  inline CreateStateMachineRequest& WithDefinition(const char* value) { SetDefinition(value); return *this;}
186 
187 
192  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
193 
198  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
199 
204  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
205 
210  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
211 
216  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
217 
222  inline CreateStateMachineRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
223 
228  inline CreateStateMachineRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
229 
234  inline CreateStateMachineRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
235 
236 
242  inline const StateMachineType& GetType() const{ return m_type; }
243 
249  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
250 
256  inline void SetType(const StateMachineType& value) { m_typeHasBeenSet = true; m_type = value; }
257 
263  inline void SetType(StateMachineType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
264 
270  inline CreateStateMachineRequest& WithType(const StateMachineType& value) { SetType(value); return *this;}
271 
277  inline CreateStateMachineRequest& WithType(StateMachineType&& value) { SetType(std::move(value)); return *this;}
278 
279 
287  inline const LoggingConfiguration& GetLoggingConfiguration() const{ return m_loggingConfiguration; }
288 
296  inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
297 
305  inline void SetLoggingConfiguration(const LoggingConfiguration& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = value; }
306 
314  inline void SetLoggingConfiguration(LoggingConfiguration&& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = std::move(value); }
315 
323  inline CreateStateMachineRequest& WithLoggingConfiguration(const LoggingConfiguration& value) { SetLoggingConfiguration(value); return *this;}
324 
332  inline CreateStateMachineRequest& WithLoggingConfiguration(LoggingConfiguration&& value) { SetLoggingConfiguration(std::move(value)); return *this;}
333 
334 
345  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
346 
357  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
358 
369  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
370 
381  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
382 
393  inline CreateStateMachineRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
394 
405  inline CreateStateMachineRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
406 
417  inline CreateStateMachineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
418 
429  inline CreateStateMachineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
430 
431 
435  inline const TracingConfiguration& GetTracingConfiguration() const{ return m_tracingConfiguration; }
436 
440  inline bool TracingConfigurationHasBeenSet() const { return m_tracingConfigurationHasBeenSet; }
441 
445  inline void SetTracingConfiguration(const TracingConfiguration& value) { m_tracingConfigurationHasBeenSet = true; m_tracingConfiguration = value; }
446 
450  inline void SetTracingConfiguration(TracingConfiguration&& value) { m_tracingConfigurationHasBeenSet = true; m_tracingConfiguration = std::move(value); }
451 
455  inline CreateStateMachineRequest& WithTracingConfiguration(const TracingConfiguration& value) { SetTracingConfiguration(value); return *this;}
456 
460  inline CreateStateMachineRequest& WithTracingConfiguration(TracingConfiguration&& value) { SetTracingConfiguration(std::move(value)); return *this;}
461 
462  private:
463 
464  Aws::String m_name;
465  bool m_nameHasBeenSet;
466 
467  Aws::String m_definition;
468  bool m_definitionHasBeenSet;
469 
470  Aws::String m_roleArn;
471  bool m_roleArnHasBeenSet;
472 
473  StateMachineType m_type;
474  bool m_typeHasBeenSet;
475 
476  LoggingConfiguration m_loggingConfiguration;
477  bool m_loggingConfigurationHasBeenSet;
478 
479  Aws::Vector<Tag> m_tags;
480  bool m_tagsHasBeenSet;
481 
482  TracingConfiguration m_tracingConfiguration;
483  bool m_tracingConfigurationHasBeenSet;
484  };
485 
486 } // namespace Model
487 } // namespace SFN
488 } // namespace Aws
Aws::SFN::Model::CreateStateMachineRequest::GetTracingConfiguration
const TracingConfiguration & GetTracingConfiguration() const
Definition: CreateStateMachineRequest.h:435
Aws::SFN::Model::CreateStateMachineRequest::GetName
const Aws::String & GetName() const
Definition: CreateStateMachineRequest.h:51
TracingConfiguration.h
Aws::SFN::Model::TracingConfiguration
Definition: TracingConfiguration.h:31
Aws::SFN::Model::CreateStateMachineRequest::WithType
CreateStateMachineRequest & WithType(StateMachineType &&value)
Definition: CreateStateMachineRequest.h:277
Aws::SFN::Model::CreateStateMachineRequest::SetLoggingConfiguration
void SetLoggingConfiguration(const LoggingConfiguration &value)
Definition: CreateStateMachineRequest.h:305
Aws::SFN::Model::CreateStateMachineRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateStateMachineRequest.h:210
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SFN::Model::CreateStateMachineRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateStateMachineRequest.h:198
Aws::SFN::Model::CreateStateMachineRequest::WithRoleArn
CreateStateMachineRequest & WithRoleArn(const char *value)
Definition: CreateStateMachineRequest.h:234
Aws::SFN::Model::CreateStateMachineRequest::WithTags
CreateStateMachineRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateStateMachineRequest.h:393
Aws::SFN::Model::CreateStateMachineRequest::WithType
CreateStateMachineRequest & WithType(const StateMachineType &value)
Definition: CreateStateMachineRequest.h:270
Aws::SFN::SFNRequest
Definition: SFNRequest.h:17
Aws::SFN::Model::CreateStateMachineRequest::SetType
void SetType(const StateMachineType &value)
Definition: CreateStateMachineRequest.h:256
Aws::SFN::Model::CreateStateMachineRequest::LoggingConfigurationHasBeenSet
bool LoggingConfigurationHasBeenSet() const
Definition: CreateStateMachineRequest.h:296
Tag.h
Aws::SFN::Model::CreateStateMachineRequest::WithName
CreateStateMachineRequest & WithName(Aws::String &&value)
Definition: CreateStateMachineRequest.h:117
Aws::SFN::Model::CreateStateMachineRequest::AddTags
CreateStateMachineRequest & AddTags(const Tag &value)
Definition: CreateStateMachineRequest.h:417
Aws::SFN::Model::CreateStateMachineRequest::SetName
void SetName(const char *value)
Definition: CreateStateMachineRequest.h:95
Aws::SFN::Model::CreateStateMachineRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateStateMachineRequest.h:204
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_SFN_API
#define AWS_SFN_API
Definition: SFN_EXPORTS.h:28
Aws::SFN::Model::CreateStateMachineRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateStateMachineRequest.h:62
SFN_EXPORTS.h
AWSVector.h
Aws::SFN::Model::CreateStateMachineRequest::WithDefinition
CreateStateMachineRequest & WithDefinition(const Aws::String &value)
Definition: CreateStateMachineRequest.h:171
LoggingConfiguration.h
Aws::SFN::Model::CreateStateMachineRequest::WithLoggingConfiguration
CreateStateMachineRequest & WithLoggingConfiguration(LoggingConfiguration &&value)
Definition: CreateStateMachineRequest.h:332
Aws::SFN::Model::CreateStateMachineRequest::CreateStateMachineRequest
CreateStateMachineRequest()
Aws::SFN::Model::CreateStateMachineRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateStateMachineRequest.h:216
Aws::SFN::Model::CreateStateMachineRequest::SetDefinition
void SetDefinition(Aws::String &&value)
Definition: CreateStateMachineRequest.h:157
Aws::SFN::Model::CreateStateMachineRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateStateMachineRequest.h:357
Aws::SFN::Model::CreateStateMachineRequest::SetTracingConfiguration
void SetTracingConfiguration(const TracingConfiguration &value)
Definition: CreateStateMachineRequest.h:445
Aws::SFN::Model::CreateStateMachineRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateStateMachineRequest.h:381
Aws::SFN::Model::CreateStateMachineRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SFN::Model::CreateStateMachineRequest::WithLoggingConfiguration
CreateStateMachineRequest & WithLoggingConfiguration(const LoggingConfiguration &value)
Definition: CreateStateMachineRequest.h:323
Aws::SFN::Model::CreateStateMachineRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateStateMachineRequest.h:345
Aws::SFN::Model::CreateStateMachineRequest::SetType
void SetType(StateMachineType &&value)
Definition: CreateStateMachineRequest.h:263
Aws::SFN::Model::CreateStateMachineRequest::WithTracingConfiguration
CreateStateMachineRequest & WithTracingConfiguration(TracingConfiguration &&value)
Definition: CreateStateMachineRequest.h:460
Aws::SFN::Model::StateMachineType
StateMachineType
Definition: StateMachineType.h:17
Aws::SFN::Model::CreateStateMachineRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateStateMachineRequest.h:192
Aws::SFN::Model::CreateStateMachineRequest::WithDefinition
CreateStateMachineRequest & WithDefinition(Aws::String &&value)
Definition: CreateStateMachineRequest.h:178
Aws::SFN::Model::CreateStateMachineRequest::WithName
CreateStateMachineRequest & WithName(const Aws::String &value)
Definition: CreateStateMachineRequest.h:106
SFNRequest.h
Aws::SFN::Model::CreateStateMachineRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateStateMachineRequest.h:369
AWSString.h
Aws::SFN::Model::CreateStateMachineRequest::SetDefinition
void SetDefinition(const Aws::String &value)
Definition: CreateStateMachineRequest.h:150
Aws::SFN::Model::CreateStateMachineRequest::WithTracingConfiguration
CreateStateMachineRequest & WithTracingConfiguration(const TracingConfiguration &value)
Definition: CreateStateMachineRequest.h:455
Aws::SFN::Model::CreateStateMachineRequest::SetLoggingConfiguration
void SetLoggingConfiguration(LoggingConfiguration &&value)
Definition: CreateStateMachineRequest.h:314
Aws::SFN::Model::CreateStateMachineRequest
Definition: CreateStateMachineRequest.h:27
Aws::SFN::Model::CreateStateMachineRequest::SetDefinition
void SetDefinition(const char *value)
Definition: CreateStateMachineRequest.h:164
StateMachineType.h
Aws::SFN::Model::CreateStateMachineRequest::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: CreateStateMachineRequest.h:249
Aws::SFN::Model::CreateStateMachineRequest::GetLoggingConfiguration
const LoggingConfiguration & GetLoggingConfiguration() const
Definition: CreateStateMachineRequest.h:287
Aws::SFN::Model::CreateStateMachineRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateStateMachineRequest.h:84
Aws::SFN::Model::CreateStateMachineRequest::TracingConfigurationHasBeenSet
bool TracingConfigurationHasBeenSet() const
Definition: CreateStateMachineRequest.h:440
Aws::SFN::Model::CreateStateMachineRequest::GetType
const StateMachineType & GetType() const
Definition: CreateStateMachineRequest.h:242
Aws::SFN::Model::Tag
Definition: Tag.h:41
Aws::SFN::Model::CreateStateMachineRequest::WithDefinition
CreateStateMachineRequest & WithDefinition(const char *value)
Definition: CreateStateMachineRequest.h:185
Aws::SFN::Model::LoggingConfiguration
Definition: LoggingConfiguration.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::SFN::Model::CreateStateMachineRequest::WithTags
CreateStateMachineRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateStateMachineRequest.h:405
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SFN::Model::CreateStateMachineRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateStateMachineRequest.h:73
Aws::SFN::Model::CreateStateMachineRequest::SetTracingConfiguration
void SetTracingConfiguration(TracingConfiguration &&value)
Definition: CreateStateMachineRequest.h:450
Aws::SFN::Model::CreateStateMachineRequest::WithRoleArn
CreateStateMachineRequest & WithRoleArn(const Aws::String &value)
Definition: CreateStateMachineRequest.h:222
Aws::SFN::Model::CreateStateMachineRequest::WithName
CreateStateMachineRequest & WithName(const char *value)
Definition: CreateStateMachineRequest.h:128
Aws::SFN::Model::CreateStateMachineRequest::DefinitionHasBeenSet
bool DefinitionHasBeenSet() const
Definition: CreateStateMachineRequest.h:143
Aws::SFN::Model::CreateStateMachineRequest::AddTags
CreateStateMachineRequest & AddTags(Tag &&value)
Definition: CreateStateMachineRequest.h:429
Aws::SFN::Model::CreateStateMachineRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SFN::Model::CreateStateMachineRequest::WithRoleArn
CreateStateMachineRequest & WithRoleArn(Aws::String &&value)
Definition: CreateStateMachineRequest.h:228
Aws::SFN::Model::CreateStateMachineRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateStateMachineRequest.h:35
Aws::SFN::Model::CreateStateMachineRequest::GetDefinition
const Aws::String & GetDefinition() const
Definition: CreateStateMachineRequest.h:136