AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/model/JobSummary.h>
9#include <aws/amplify/model/Step.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Amplify {
22namespace Model {
23
29class Job {
30 public:
31 AWS_AMPLIFY_API Job() = default;
32 AWS_AMPLIFY_API Job(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFY_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const JobSummary& GetSummary() const { return m_summary; }
41 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
42 template <typename SummaryT = JobSummary>
43 void SetSummary(SummaryT&& value) {
44 m_summaryHasBeenSet = true;
45 m_summary = std::forward<SummaryT>(value);
46 }
47 template <typename SummaryT = JobSummary>
48 Job& WithSummary(SummaryT&& value) {
49 SetSummary(std::forward<SummaryT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Step>& GetSteps() const { return m_steps; }
59 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
60 template <typename StepsT = Aws::Vector<Step>>
61 void SetSteps(StepsT&& value) {
62 m_stepsHasBeenSet = true;
63 m_steps = std::forward<StepsT>(value);
64 }
65 template <typename StepsT = Aws::Vector<Step>>
66 Job& WithSteps(StepsT&& value) {
67 SetSteps(std::forward<StepsT>(value));
68 return *this;
69 }
70 template <typename StepsT = Step>
71 Job& AddSteps(StepsT&& value) {
72 m_stepsHasBeenSet = true;
73 m_steps.emplace_back(std::forward<StepsT>(value));
74 return *this;
75 }
77 private:
78 JobSummary m_summary;
79
80 Aws::Vector<Step> m_steps;
81 bool m_summaryHasBeenSet = false;
82 bool m_stepsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Amplify
87} // namespace Aws
bool StepsHasBeenSet() const
Definition Job.h:59
void SetSteps(StepsT &&value)
Definition Job.h:61
void SetSummary(SummaryT &&value)
Definition Job.h:43
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Step > & GetSteps() const
Definition Job.h:58
Job & AddSteps(StepsT &&value)
Definition Job.h:71
bool SummaryHasBeenSet() const
Definition Job.h:41
Job & WithSummary(SummaryT &&value)
Definition Job.h:48
const JobSummary & GetSummary() const
Definition Job.h:40
AWS_AMPLIFY_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithSteps(StepsT &&value)
Definition Job.h:66
AWS_AMPLIFY_API Job()=default
AWS_AMPLIFY_API Job(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue