AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
ExecutionStepResult.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/ExecutionError.h>
9#include <aws/awstransfer/model/WorkflowStepType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Transfer {
22namespace Model {
23
31 public:
32 AWS_TRANSFER_API ExecutionStepResult() = default;
35 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
47 inline WorkflowStepType GetStepType() const { return m_stepType; }
48 inline bool StepTypeHasBeenSet() const { return m_stepTypeHasBeenSet; }
49 inline void SetStepType(WorkflowStepType value) {
50 m_stepTypeHasBeenSet = true;
51 m_stepType = value;
52 }
54 SetStepType(value);
55 return *this;
56 }
58
60
64 inline const Aws::String& GetOutputs() const { return m_outputs; }
65 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
66 template <typename OutputsT = Aws::String>
67 void SetOutputs(OutputsT&& value) {
68 m_outputsHasBeenSet = true;
69 m_outputs = std::forward<OutputsT>(value);
70 }
71 template <typename OutputsT = Aws::String>
72 ExecutionStepResult& WithOutputs(OutputsT&& value) {
73 SetOutputs(std::forward<OutputsT>(value));
74 return *this;
75 }
77
79
83 inline const ExecutionError& GetError() const { return m_error; }
84 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
85 template <typename ErrorT = ExecutionError>
86 void SetError(ErrorT&& value) {
87 m_errorHasBeenSet = true;
88 m_error = std::forward<ErrorT>(value);
89 }
90 template <typename ErrorT = ExecutionError>
91 ExecutionStepResult& WithError(ErrorT&& value) {
92 SetError(std::forward<ErrorT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::String m_outputs;
100
101 ExecutionError m_error;
102 bool m_stepTypeHasBeenSet = false;
103 bool m_outputsHasBeenSet = false;
104 bool m_errorHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Transfer
109} // namespace Aws
ExecutionStepResult & WithError(ErrorT &&value)
const ExecutionError & GetError() const
AWS_TRANSFER_API ExecutionStepResult(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSFER_API ExecutionStepResult()=default
ExecutionStepResult & WithOutputs(OutputsT &&value)
AWS_TRANSFER_API ExecutionStepResult & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionStepResult & WithStepType(WorkflowStepType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue