AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
ExecutionResults.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/ExecutionStepResult.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Transfer {
21namespace Model {
22
30 public:
31 AWS_TRANSFER_API ExecutionResults() = default;
32 AWS_TRANSFER_API ExecutionResults(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<ExecutionStepResult>& GetSteps() const { return m_steps; }
41 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
42 template <typename StepsT = Aws::Vector<ExecutionStepResult>>
43 void SetSteps(StepsT&& value) {
44 m_stepsHasBeenSet = true;
45 m_steps = std::forward<StepsT>(value);
46 }
47 template <typename StepsT = Aws::Vector<ExecutionStepResult>>
48 ExecutionResults& WithSteps(StepsT&& value) {
49 SetSteps(std::forward<StepsT>(value));
50 return *this;
51 }
52 template <typename StepsT = ExecutionStepResult>
53 ExecutionResults& AddSteps(StepsT&& value) {
54 m_stepsHasBeenSet = true;
55 m_steps.emplace_back(std::forward<StepsT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<ExecutionStepResult>& GetOnExceptionSteps() const { return m_onExceptionSteps; }
66 inline bool OnExceptionStepsHasBeenSet() const { return m_onExceptionStepsHasBeenSet; }
67 template <typename OnExceptionStepsT = Aws::Vector<ExecutionStepResult>>
68 void SetOnExceptionSteps(OnExceptionStepsT&& value) {
69 m_onExceptionStepsHasBeenSet = true;
70 m_onExceptionSteps = std::forward<OnExceptionStepsT>(value);
71 }
72 template <typename OnExceptionStepsT = Aws::Vector<ExecutionStepResult>>
73 ExecutionResults& WithOnExceptionSteps(OnExceptionStepsT&& value) {
74 SetOnExceptionSteps(std::forward<OnExceptionStepsT>(value));
75 return *this;
76 }
77 template <typename OnExceptionStepsT = ExecutionStepResult>
78 ExecutionResults& AddOnExceptionSteps(OnExceptionStepsT&& value) {
79 m_onExceptionStepsHasBeenSet = true;
80 m_onExceptionSteps.emplace_back(std::forward<OnExceptionStepsT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::Vector<ExecutionStepResult> m_onExceptionSteps;
88 bool m_stepsHasBeenSet = false;
89 bool m_onExceptionStepsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Transfer
94} // namespace Aws
ExecutionResults & WithOnExceptionSteps(OnExceptionStepsT &&value)
AWS_TRANSFER_API ExecutionResults & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ExecutionStepResult > & GetSteps() const
ExecutionResults & AddSteps(StepsT &&value)
ExecutionResults & WithSteps(StepsT &&value)
AWS_TRANSFER_API ExecutionResults(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API ExecutionResults()=default
const Aws::Vector< ExecutionStepResult > & GetOnExceptionSteps() const
ExecutionResults & AddOnExceptionSteps(OnExceptionStepsT &&value)
void SetOnExceptionSteps(OnExceptionStepsT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue