AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
48 template<typename DescriptionT = Aws::String>
49 CreateWorkflowRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
51
53
66 inline const Aws::Vector<WorkflowStep>& GetSteps() const { return m_steps; }
67 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
68 template<typename StepsT = Aws::Vector<WorkflowStep>>
69 void SetSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps = std::forward<StepsT>(value); }
70 template<typename StepsT = Aws::Vector<WorkflowStep>>
71 CreateWorkflowRequest& WithSteps(StepsT&& value) { SetSteps(std::forward<StepsT>(value)); return *this;}
72 template<typename StepsT = WorkflowStep>
73 CreateWorkflowRequest& AddSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps.emplace_back(std::forward<StepsT>(value)); return *this; }
75
77
84 inline const Aws::Vector<WorkflowStep>& GetOnExceptionSteps() const { return m_onExceptionSteps; }
85 inline bool OnExceptionStepsHasBeenSet() const { return m_onExceptionStepsHasBeenSet; }
86 template<typename OnExceptionStepsT = Aws::Vector<WorkflowStep>>
87 void SetOnExceptionSteps(OnExceptionStepsT&& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps = std::forward<OnExceptionStepsT>(value); }
88 template<typename OnExceptionStepsT = Aws::Vector<WorkflowStep>>
89 CreateWorkflowRequest& WithOnExceptionSteps(OnExceptionStepsT&& value) { SetOnExceptionSteps(std::forward<OnExceptionStepsT>(value)); return *this;}
90 template<typename OnExceptionStepsT = WorkflowStep>
91 CreateWorkflowRequest& AddOnExceptionSteps(OnExceptionStepsT&& value) { m_onExceptionStepsHasBeenSet = true; m_onExceptionSteps.emplace_back(std::forward<OnExceptionStepsT>(value)); return *this; }
93
95
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Vector<Tag>>
104 CreateWorkflowRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsT = Tag>
106 CreateWorkflowRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
108 private:
109
110 Aws::String m_description;
111 bool m_descriptionHasBeenSet = false;
112
114 bool m_stepsHasBeenSet = false;
115
116 Aws::Vector<WorkflowStep> m_onExceptionSteps;
117 bool m_onExceptionStepsHasBeenSet = false;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Transfer
125} // 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