AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSummary(const JobSummary& value) { m_summaryHasBeenSet = true; m_summary = value; }
49 inline void SetSummary(JobSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
50 inline Job& WithSummary(const JobSummary& value) { SetSummary(value); return *this;}
51 inline Job& WithSummary(JobSummary&& value) { SetSummary(std::move(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 inline void SetSteps(const Aws::Vector<Step>& value) { m_stepsHasBeenSet = true; m_steps = value; }
61 inline void SetSteps(Aws::Vector<Step>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
62 inline Job& WithSteps(const Aws::Vector<Step>& value) { SetSteps(value); return *this;}
63 inline Job& WithSteps(Aws::Vector<Step>&& value) { SetSteps(std::move(value)); return *this;}
64 inline Job& AddSteps(const Step& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
65 inline Job& AddSteps(Step&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(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 SetSummary(const JobSummary &value)
Definition Job.h:48
void SetSummary(JobSummary &&value)
Definition Job.h:49
Job & WithSteps(Aws::Vector< Step > &&value)
Definition Job.h:63
Job & WithSteps(const Aws::Vector< Step > &value)
Definition Job.h:62
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Step > & GetSteps() const
Definition Job.h:58
AWS_AMPLIFY_API Job()
Job & WithSummary(JobSummary &&value)
Definition Job.h:51
bool SummaryHasBeenSet() const
Definition Job.h:47
Job & AddSteps(Step &&value)
Definition Job.h:65
void SetSteps(Aws::Vector< Step > &&value)
Definition Job.h:61
Job & WithSummary(const JobSummary &value)
Definition Job.h:50
const JobSummary & GetSummary() const
Definition Job.h:46
AWS_AMPLIFY_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSteps(const Aws::Vector< Step > &value)
Definition Job.h:60
AWS_AMPLIFY_API Job(Aws::Utils::Json::JsonView jsonValue)
Job & AddSteps(const Step &value)
Definition Job.h:64
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue