AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExecutionStepResult.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/WorkflowStepType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/awstransfer/model/ExecutionError.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Transfer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_TRANSFER_API ExecutionStepResult() = default;
40 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
53 inline WorkflowStepType GetStepType() const { return m_stepType; }
54 inline bool StepTypeHasBeenSet() const { return m_stepTypeHasBeenSet; }
55 inline void SetStepType(WorkflowStepType value) { m_stepTypeHasBeenSet = true; m_stepType = value; }
56 inline ExecutionStepResult& WithStepType(WorkflowStepType value) { SetStepType(value); return *this;}
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) { m_outputsHasBeenSet = true; m_outputs = std::forward<OutputsT>(value); }
68 template<typename OutputsT = Aws::String>
69 ExecutionStepResult& WithOutputs(OutputsT&& value) { SetOutputs(std::forward<OutputsT>(value)); return *this;}
71
73
77 inline const ExecutionError& GetError() const { return m_error; }
78 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
79 template<typename ErrorT = ExecutionError>
80 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
81 template<typename ErrorT = ExecutionError>
82 ExecutionStepResult& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
84 private:
85
87 bool m_stepTypeHasBeenSet = false;
88
89 Aws::String m_outputs;
90 bool m_outputsHasBeenSet = false;
91
92 ExecutionError m_error;
93 bool m_errorHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Transfer
98} // 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