AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CreateWorkflowRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/Tag.h>
10#include <aws/awstransfer/model/WorkflowStep.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Transfer {
18namespace Model {
19
23 public:
24 AWS_TRANSFER_API CreateWorkflowRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkflow"; }
31
32 AWS_TRANSFER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDescription() const { return m_description; }
41 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
42 template <typename DescriptionT = Aws::String>
43 void SetDescription(DescriptionT&& value) {
44 m_descriptionHasBeenSet = true;
45 m_description = std::forward<DescriptionT>(value);
46 }
47 template <typename DescriptionT = Aws::String>
48 CreateWorkflowRequest& WithDescription(DescriptionT&& value) {
49 SetDescription(std::forward<DescriptionT>(value));
50 return *this;
51 }
53
55
68 inline const Aws::Vector<WorkflowStep>& GetSteps() const { return m_steps; }
69 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
70 template <typename StepsT = Aws::Vector<WorkflowStep>>
71 void SetSteps(StepsT&& value) {
72 m_stepsHasBeenSet = true;
73 m_steps = std::forward<StepsT>(value);
74 }
75 template <typename StepsT = Aws::Vector<WorkflowStep>>
77 SetSteps(std::forward<StepsT>(value));
78 return *this;
79 }
80 template <typename StepsT = WorkflowStep>
82 m_stepsHasBeenSet = true;
83 m_steps.emplace_back(std::forward<StepsT>(value));
84 return *this;
85 }
87
89
96 inline const Aws::Vector<WorkflowStep>& GetOnExceptionSteps() const { return m_onExceptionSteps; }
97 inline bool OnExceptionStepsHasBeenSet() const { return m_onExceptionStepsHasBeenSet; }
98 template <typename OnExceptionStepsT = Aws::Vector<WorkflowStep>>
99 void SetOnExceptionSteps(OnExceptionStepsT&& value) {
100 m_onExceptionStepsHasBeenSet = true;
101 m_onExceptionSteps = std::forward<OnExceptionStepsT>(value);
102 }
103 template <typename OnExceptionStepsT = Aws::Vector<WorkflowStep>>
104 CreateWorkflowRequest& WithOnExceptionSteps(OnExceptionStepsT&& value) {
105 SetOnExceptionSteps(std::forward<OnExceptionStepsT>(value));
106 return *this;
107 }
108 template <typename OnExceptionStepsT = WorkflowStep>
109 CreateWorkflowRequest& AddOnExceptionSteps(OnExceptionStepsT&& value) {
110 m_onExceptionStepsHasBeenSet = true;
111 m_onExceptionSteps.emplace_back(std::forward<OnExceptionStepsT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template <typename TagsT = Aws::Vector<Tag>>
124 void SetTags(TagsT&& value) {
125 m_tagsHasBeenSet = true;
126 m_tags = std::forward<TagsT>(value);
127 }
128 template <typename TagsT = Aws::Vector<Tag>>
130 SetTags(std::forward<TagsT>(value));
131 return *this;
132 }
133 template <typename TagsT = Tag>
135 m_tagsHasBeenSet = true;
136 m_tags.emplace_back(std::forward<TagsT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_description;
142 bool m_descriptionHasBeenSet = false;
143
145 bool m_stepsHasBeenSet = false;
146
147 Aws::Vector<WorkflowStep> m_onExceptionSteps;
148 bool m_onExceptionStepsHasBeenSet = false;
149
150 Aws::Vector<Tag> m_tags;
151 bool m_tagsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Transfer
156} // namespace Aws
CreateWorkflowRequest & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateWorkflowRequest & WithOnExceptionSteps(OnExceptionStepsT &&value)
const Aws::Vector< WorkflowStep > & GetSteps() const
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetOnExceptionSteps(OnExceptionStepsT &&value)
CreateWorkflowRequest & AddOnExceptionSteps(OnExceptionStepsT &&value)
CreateWorkflowRequest & AddSteps(StepsT &&value)
CreateWorkflowRequest & WithDescription(DescriptionT &&value)
CreateWorkflowRequest & WithTags(TagsT &&value)
AWS_TRANSFER_API CreateWorkflowRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_TRANSFER_API Aws::String SerializePayload() const override
const Aws::Vector< WorkflowStep > & GetOnExceptionSteps() const
CreateWorkflowRequest & WithSteps(StepsT &&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