AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkflowRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/awstransfer/model/WorkflowStep.h>
12#include <aws/awstransfer/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Transfer
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TRANSFER_API CreateWorkflowRequest();
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 "CreateWorkflow"; }
34
35 AWS_TRANSFER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDescription() const{ return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
47 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
48 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
49 inline CreateWorkflowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
50 inline CreateWorkflowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
51 inline CreateWorkflowRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
53
55
68 inline const Aws::Vector<WorkflowStep>& GetSteps() const{ return m_steps; }
69 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
70 inline void SetSteps(const Aws::Vector<WorkflowStep>& value) { m_stepsHasBeenSet = true; m_steps = value; }
71 inline void SetSteps(Aws::Vector<WorkflowStep>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
72 inline CreateWorkflowRequest& WithSteps(const Aws::Vector<WorkflowStep>& value) { SetSteps(value); return *this;}
73 inline CreateWorkflowRequest& WithSteps(Aws::Vector<WorkflowStep>&& value) { SetSteps(std::move(value)); return *this;}
74 inline CreateWorkflowRequest& AddSteps(const WorkflowStep& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
75 inline CreateWorkflowRequest& AddSteps(WorkflowStep&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; }
77
79
86 inline const Aws::Vector<WorkflowStep>& GetOnExceptionSteps() const{ return m_onExceptionSteps; }
87 inline bool OnExceptionStepsHasBeenSet() const { return m_onExceptionStepsHasBeenSet; }
88 inline void SetOnExceptionSteps(const Aws::Vector<WorkflowStep>& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps = value; }
89 inline void SetOnExceptionSteps(Aws::Vector<WorkflowStep>&& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps = std::move(value); }
92 inline CreateWorkflowRequest& AddOnExceptionSteps(const WorkflowStep& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps.push_back(value); return *this; }
93 inline CreateWorkflowRequest& AddOnExceptionSteps(WorkflowStep&& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps.push_back(std::move(value)); return *this; }
95
97
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateWorkflowRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline CreateWorkflowRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateWorkflowRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreateWorkflowRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110 private:
111
112 Aws::String m_description;
113 bool m_descriptionHasBeenSet = false;
114
116 bool m_stepsHasBeenSet = false;
117
118 Aws::Vector<WorkflowStep> m_onExceptionSteps;
119 bool m_onExceptionStepsHasBeenSet = false;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_tagsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Transfer
127} // namespace Aws
CreateWorkflowRequest & AddSteps(const WorkflowStep &value)
CreateWorkflowRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Vector< WorkflowStep > & GetSteps() const
CreateWorkflowRequest & AddOnExceptionSteps(WorkflowStep &&value)
void SetOnExceptionSteps(const Aws::Vector< WorkflowStep > &value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkflowRequest & WithSteps(const Aws::Vector< WorkflowStep > &value)
void SetSteps(const Aws::Vector< WorkflowStep > &value)
CreateWorkflowRequest & AddSteps(WorkflowStep &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateWorkflowRequest & AddOnExceptionSteps(const WorkflowStep &value)
CreateWorkflowRequest & WithOnExceptionSteps(Aws::Vector< WorkflowStep > &&value)
void SetOnExceptionSteps(Aws::Vector< WorkflowStep > &&value)
CreateWorkflowRequest & AddTags(Tag &&value)
void SetSteps(Aws::Vector< WorkflowStep > &&value)
CreateWorkflowRequest & WithOnExceptionSteps(const Aws::Vector< WorkflowStep > &value)
CreateWorkflowRequest & AddTags(const Tag &value)
CreateWorkflowRequest & WithSteps(Aws::Vector< WorkflowStep > &&value)
CreateWorkflowRequest & WithTags(Aws::Vector< Tag > &&value)
CreateWorkflowRequest & WithDescription(Aws::String &&value)
CreateWorkflowRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::String SerializePayload() const override
const Aws::Vector< WorkflowStep > & GetOnExceptionSteps() const
CreateWorkflowRequest & WithDescription(const char *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