AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/amplify/model/Step.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 Amplify
24{
25namespace Model
26{
27
33 class Job
34 {
35 public:
36 AWS_AMPLIFY_API Job() = default;
37 AWS_AMPLIFY_API Job(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFY_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const JobSummary& GetSummary() const { return m_summary; }
47 inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
48 template<typename SummaryT = JobSummary>
49 void SetSummary(SummaryT&& value) { m_summaryHasBeenSet = true; m_summary = std::forward<SummaryT>(value); }
50 template<typename SummaryT = JobSummary>
51 Job& WithSummary(SummaryT&& value) { SetSummary(std::forward<SummaryT>(value)); return *this;}
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) { m_stepsHasBeenSet = true; m_steps = std::forward<StepsT>(value); }
62 template<typename StepsT = Aws::Vector<Step>>
63 Job& WithSteps(StepsT&& value) { SetSteps(std::forward<StepsT>(value)); return *this;}
64 template<typename StepsT = Step>
65 Job& AddSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps.emplace_back(std::forward<StepsT>(value)); return *this; }
67 private:
68
69 JobSummary m_summary;
70 bool m_summaryHasBeenSet = false;
71
72 Aws::Vector<Step> m_steps;
73 bool m_stepsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Amplify
78} // namespace Aws
bool StepsHasBeenSet() const
Definition Job.h:59
void SetSteps(StepsT &&value)
Definition Job.h:61
void SetSummary(SummaryT &&value)
Definition Job.h:49
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:65
bool SummaryHasBeenSet() const
Definition Job.h:47
Job & WithSummary(SummaryT &&value)
Definition Job.h:51
const JobSummary & GetSummary() const
Definition Job.h:46
AWS_AMPLIFY_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithSteps(StepsT &&value)
Definition Job.h:63
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