AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
DescribedWorkflow.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/Tag.h>
9#include <aws/awstransfer/model/WorkflowStep.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Transfer {
23namespace Model {
24
32 public:
33 AWS_TRANSFER_API DescribedWorkflow() = default;
34 AWS_TRANSFER_API DescribedWorkflow(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 DescribedWorkflow& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
68 DescribedWorkflow& WithDescription(DescriptionT&& value) {
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<WorkflowStep>& GetSteps() const { return m_steps; }
79 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
80 template <typename StepsT = Aws::Vector<WorkflowStep>>
81 void SetSteps(StepsT&& value) {
82 m_stepsHasBeenSet = true;
83 m_steps = std::forward<StepsT>(value);
84 }
85 template <typename StepsT = Aws::Vector<WorkflowStep>>
86 DescribedWorkflow& WithSteps(StepsT&& value) {
87 SetSteps(std::forward<StepsT>(value));
88 return *this;
89 }
90 template <typename StepsT = WorkflowStep>
91 DescribedWorkflow& AddSteps(StepsT&& value) {
92 m_stepsHasBeenSet = true;
93 m_steps.emplace_back(std::forward<StepsT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Vector<WorkflowStep>& GetOnExceptionSteps() const { return m_onExceptionSteps; }
104 inline bool OnExceptionStepsHasBeenSet() const { return m_onExceptionStepsHasBeenSet; }
105 template <typename OnExceptionStepsT = Aws::Vector<WorkflowStep>>
106 void SetOnExceptionSteps(OnExceptionStepsT&& value) {
107 m_onExceptionStepsHasBeenSet = true;
108 m_onExceptionSteps = std::forward<OnExceptionStepsT>(value);
109 }
110 template <typename OnExceptionStepsT = Aws::Vector<WorkflowStep>>
111 DescribedWorkflow& WithOnExceptionSteps(OnExceptionStepsT&& value) {
112 SetOnExceptionSteps(std::forward<OnExceptionStepsT>(value));
113 return *this;
114 }
115 template <typename OnExceptionStepsT = WorkflowStep>
116 DescribedWorkflow& AddOnExceptionSteps(OnExceptionStepsT&& value) {
117 m_onExceptionStepsHasBeenSet = true;
118 m_onExceptionSteps.emplace_back(std::forward<OnExceptionStepsT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetWorkflowId() const { return m_workflowId; }
128 inline bool WorkflowIdHasBeenSet() const { return m_workflowIdHasBeenSet; }
129 template <typename WorkflowIdT = Aws::String>
130 void SetWorkflowId(WorkflowIdT&& value) {
131 m_workflowIdHasBeenSet = true;
132 m_workflowId = std::forward<WorkflowIdT>(value);
133 }
134 template <typename WorkflowIdT = Aws::String>
135 DescribedWorkflow& WithWorkflowId(WorkflowIdT&& value) {
136 SetWorkflowId(std::forward<WorkflowIdT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
147 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
148 template <typename TagsT = Aws::Vector<Tag>>
149 void SetTags(TagsT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags = std::forward<TagsT>(value);
152 }
153 template <typename TagsT = Aws::Vector<Tag>>
154 DescribedWorkflow& WithTags(TagsT&& value) {
155 SetTags(std::forward<TagsT>(value));
156 return *this;
157 }
158 template <typename TagsT = Tag>
159 DescribedWorkflow& AddTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags.emplace_back(std::forward<TagsT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_arn;
167
168 Aws::String m_description;
169
171
172 Aws::Vector<WorkflowStep> m_onExceptionSteps;
173
174 Aws::String m_workflowId;
175
176 Aws::Vector<Tag> m_tags;
177 bool m_arnHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_stepsHasBeenSet = false;
180 bool m_onExceptionStepsHasBeenSet = false;
181 bool m_workflowIdHasBeenSet = false;
182 bool m_tagsHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Transfer
187} // namespace Aws
DescribedWorkflow & AddSteps(StepsT &&value)
void SetOnExceptionSteps(OnExceptionStepsT &&value)
const Aws::String & GetWorkflowId() const
DescribedWorkflow & WithOnExceptionSteps(OnExceptionStepsT &&value)
AWS_TRANSFER_API DescribedWorkflow()=default
const Aws::Vector< WorkflowStep > & GetOnExceptionSteps() const
const Aws::Vector< WorkflowStep > & GetSteps() const
DescribedWorkflow & WithSteps(StepsT &&value)
DescribedWorkflow & WithWorkflowId(WorkflowIdT &&value)
void SetDescription(DescriptionT &&value)
AWS_TRANSFER_API DescribedWorkflow(Aws::Utils::Json::JsonView jsonValue)
DescribedWorkflow & AddTags(TagsT &&value)
const Aws::String & GetDescription() const
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
DescribedWorkflow & AddOnExceptionSteps(OnExceptionStepsT &&value)
const Aws::Vector< Tag > & GetTags() const
DescribedWorkflow & WithArn(ArnT &&value)
AWS_TRANSFER_API DescribedWorkflow & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedWorkflow & WithTags(TagsT &&value)
DescribedWorkflow & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue