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

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

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) for the job.

*/ inline const Aws::String& GetJobArn() const{ return m_jobArn; } /** *

The Amazon Resource Name (ARN) for the job.

*/ inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the job.

*/ inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; } /** *

The Amazon Resource Name (ARN) for the job.

*/ inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the job.

*/ inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the job.

*/ inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the job.

*/ inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the job.

*/ inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;} /** *

The unique ID for the job.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The unique ID for the job.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The unique ID for the job.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The unique ID for the job.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The unique ID for the job.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The unique ID for the job.

*/ inline JobSummary& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The unique ID for the job.

*/ inline JobSummary& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The unique ID for the job.

*/ inline JobSummary& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The commit ID from a third-party repository provider for the job.

*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *

The commit ID from a third-party repository provider for the job.

*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *

The commit ID from a third-party repository provider for the job.

*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *

The commit ID from a third-party repository provider for the job.

*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *

The commit ID from a third-party repository provider for the job.

*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *

The commit ID from a third-party repository provider for the job.

*/ inline JobSummary& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *

The commit ID from a third-party repository provider for the job.

*/ inline JobSummary& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *

The commit ID from a third-party repository provider for the job.

*/ inline JobSummary& WithCommitId(const char* value) { SetCommitId(value); return *this;} /** *

The commit message from a third-party repository provider for the job.

*/ inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; } /** *

The commit message from a third-party repository provider for the job.

*/ inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; } /** *

The commit message from a third-party repository provider for the job.

*/ inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; } /** *

The commit message from a third-party repository provider for the job.

*/ inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); } /** *

The commit message from a third-party repository provider for the job.

*/ inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); } /** *

The commit message from a third-party repository provider for the job.

*/ inline JobSummary& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;} /** *

The commit message from a third-party repository provider for the job.

*/ inline JobSummary& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;} /** *

The commit message from a third-party repository provider for the job.

*/ inline JobSummary& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;} /** *

The commit date and time for the job.

*/ inline const Aws::Utils::DateTime& GetCommitTime() const{ return m_commitTime; } /** *

The commit date and time for the job.

*/ inline bool CommitTimeHasBeenSet() const { return m_commitTimeHasBeenSet; } /** *

The commit date and time for the job.

*/ inline void SetCommitTime(const Aws::Utils::DateTime& value) { m_commitTimeHasBeenSet = true; m_commitTime = value; } /** *

The commit date and time for the job.

*/ inline void SetCommitTime(Aws::Utils::DateTime&& value) { m_commitTimeHasBeenSet = true; m_commitTime = std::move(value); } /** *

The commit date and time for the job.

*/ inline JobSummary& WithCommitTime(const Aws::Utils::DateTime& value) { SetCommitTime(value); return *this;} /** *

The commit date and time for the job.

*/ inline JobSummary& WithCommitTime(Aws::Utils::DateTime&& value) { SetCommitTime(std::move(value)); return *this;} /** *

The start date and time for the job.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start date and time for the job.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start date and time for the job.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start date and time for the job.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start date and time for the job.

*/ inline JobSummary& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start date and time for the job.

*/ inline JobSummary& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The current status for the job.

*/ inline const JobStatus& GetStatus() const{ return m_status; } /** *

The current status for the job.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current status for the job.

*/ inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current status for the job.

*/ inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current status for the job.

*/ inline JobSummary& WithStatus(const JobStatus& value) { SetStatus(value); return *this;} /** *

The current status for the job.

*/ inline JobSummary& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The end date and time for the job.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end date and time for the job.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end date and time for the job.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end date and time for the job.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end date and time for the job.

*/ inline JobSummary& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end date and time for the job.

*/ inline JobSummary& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The type for the job. If the value is RELEASE, the job was * manually released from its source by using the StartJob API. If the * value is RETRY, the job was manually retried using the * StartJob API. If the value is WEB_HOOK, the job was * automatically triggered by webhooks.

*/ inline const JobType& GetJobType() const{ return m_jobType; } /** *

The type for the job. If the value is RELEASE, the job was * manually released from its source by using the StartJob API. If the * value is RETRY, the job was manually retried using the * StartJob API. If the value is WEB_HOOK, the job was * automatically triggered by webhooks.

*/ inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; } /** *

The type for the job. If the value is RELEASE, the job was * manually released from its source by using the StartJob API. If the * value is RETRY, the job was manually retried using the * StartJob API. If the value is WEB_HOOK, the job was * automatically triggered by webhooks.

*/ inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; } /** *

The type for the job. If the value is RELEASE, the job was * manually released from its source by using the StartJob API. If the * value is RETRY, the job was manually retried using the * StartJob API. If the value is WEB_HOOK, the job was * automatically triggered by webhooks.

*/ inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); } /** *

The type for the job. If the value is RELEASE, the job was * manually released from its source by using the StartJob API. If the * value is RETRY, the job was manually retried using the * StartJob API. If the value is WEB_HOOK, the job was * automatically triggered by webhooks.

*/ inline JobSummary& WithJobType(const JobType& value) { SetJobType(value); return *this;} /** *

The type for the job. If the value is RELEASE, the job was * manually released from its source by using the StartJob API. If the * value is RETRY, the job was manually retried using the * StartJob API. If the value is WEB_HOOK, the job was * automatically triggered by webhooks.

*/ inline JobSummary& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;} private: Aws::String m_jobArn; bool m_jobArnHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; Aws::String m_commitId; bool m_commitIdHasBeenSet = false; Aws::String m_commitMessage; bool m_commitMessageHasBeenSet = false; Aws::Utils::DateTime m_commitTime; bool m_commitTimeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; JobStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; JobType m_jobType; bool m_jobTypeHasBeenSet = false; }; } // namespace Model } // namespace Amplify } // namespace Aws