/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Amplify { namespace Model { /** *

Describes an execution job for an Amplify app.

See Also:

* AWS API * Reference

*/ class Job { public: AWS_AMPLIFY_API Job(); AWS_AMPLIFY_API Job(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFY_API Job& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Describes the summary for an execution job for an Amplify app.

*/ inline const JobSummary& GetSummary() const{ return m_summary; } /** *

Describes the summary for an execution job for an Amplify app.

*/ inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; } /** *

Describes the summary for an execution job for an Amplify app.

*/ inline void SetSummary(const JobSummary& value) { m_summaryHasBeenSet = true; m_summary = value; } /** *

Describes the summary for an execution job for an Amplify app.

*/ inline void SetSummary(JobSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); } /** *

Describes the summary for an execution job for an Amplify app.

*/ inline Job& WithSummary(const JobSummary& value) { SetSummary(value); return *this;} /** *

Describes the summary for an execution job for an Amplify app.

*/ inline Job& WithSummary(JobSummary&& value) { SetSummary(std::move(value)); return *this;} /** *

The execution steps for an execution job, for an Amplify app.

*/ inline const Aws::Vector& GetSteps() const{ return m_steps; } /** *

The execution steps for an execution job, for an Amplify app.

*/ inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; } /** *

The execution steps for an execution job, for an Amplify app.

*/ inline void SetSteps(const Aws::Vector& value) { m_stepsHasBeenSet = true; m_steps = value; } /** *

The execution steps for an execution job, for an Amplify app.

*/ inline void SetSteps(Aws::Vector&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); } /** *

The execution steps for an execution job, for an Amplify app.

*/ inline Job& WithSteps(const Aws::Vector& value) { SetSteps(value); return *this;} /** *

The execution steps for an execution job, for an Amplify app.

*/ inline Job& WithSteps(Aws::Vector&& value) { SetSteps(std::move(value)); return *this;} /** *

The execution steps for an execution job, for an Amplify app.

*/ inline Job& AddSteps(const Step& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; } /** *

The execution steps for an execution job, for an Amplify app.

*/ inline Job& AddSteps(Step&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; } private: JobSummary m_summary; bool m_summaryHasBeenSet = false; Aws::Vector m_steps; bool m_stepsHasBeenSet = false; }; } // namespace Model } // namespace Amplify } // namespace Aws