This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

125 lines
3.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/amplify/Amplify_EXPORTS.h>
#include <aws/amplify/model/JobSummary.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/amplify/model/Step.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Amplify
{
namespace Model
{
/**
* <p> Describes an execution job for an Amplify app. </p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/Job">AWS API
* Reference</a></p>
*/
class AWS_AMPLIFY_API Job
{
public:
Job();
Job(Aws::Utils::Json::JsonView jsonValue);
Job& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> Describes the summary for an execution job for an Amplify app. </p>
*/
inline const JobSummary& GetSummary() const{ return m_summary; }
/**
* <p> Describes the summary for an execution job for an Amplify app. </p>
*/
inline bool SummaryHasBeenSet() const { return m_summaryHasBeenSet; }
/**
* <p> Describes the summary for an execution job for an Amplify app. </p>
*/
inline void SetSummary(const JobSummary& value) { m_summaryHasBeenSet = true; m_summary = value; }
/**
* <p> Describes the summary for an execution job for an Amplify app. </p>
*/
inline void SetSummary(JobSummary&& value) { m_summaryHasBeenSet = true; m_summary = std::move(value); }
/**
* <p> Describes the summary for an execution job for an Amplify app. </p>
*/
inline Job& WithSummary(const JobSummary& value) { SetSummary(value); return *this;}
/**
* <p> Describes the summary for an execution job for an Amplify app. </p>
*/
inline Job& WithSummary(JobSummary&& value) { SetSummary(std::move(value)); return *this;}
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline const Aws::Vector<Step>& GetSteps() const{ return m_steps; }
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline void SetSteps(const Aws::Vector<Step>& value) { m_stepsHasBeenSet = true; m_steps = value; }
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline void SetSteps(Aws::Vector<Step>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline Job& WithSteps(const Aws::Vector<Step>& value) { SetSteps(value); return *this;}
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline Job& WithSteps(Aws::Vector<Step>&& value) { SetSteps(std::move(value)); return *this;}
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline Job& AddSteps(const Step& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
/**
* <p> The execution steps for an execution job, for an Amplify app. </p>
*/
inline Job& AddSteps(Step&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; }
private:
JobSummary m_summary;
bool m_summaryHasBeenSet;
Aws::Vector<Step> m_steps;
bool m_stepsHasBeenSet;
};
} // namespace Model
} // namespace Amplify
} // namespace Aws