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

The job execution summary.

See Also:

AWS * API Reference

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

The status of the job execution.

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

The status of the job execution.

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

The status of the job execution.

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

The status of the job execution.

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

The status of the job execution.

*/ inline JobExecutionSummary& WithStatus(const JobExecutionStatus& value) { SetStatus(value); return *this;} /** *

The status of the job execution.

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

The time, in seconds since the epoch, when the job execution was queued.

*/ inline const Aws::Utils::DateTime& GetQueuedAt() const{ return m_queuedAt; } /** *

The time, in seconds since the epoch, when the job execution was queued.

*/ inline bool QueuedAtHasBeenSet() const { return m_queuedAtHasBeenSet; } /** *

The time, in seconds since the epoch, when the job execution was queued.

*/ inline void SetQueuedAt(const Aws::Utils::DateTime& value) { m_queuedAtHasBeenSet = true; m_queuedAt = value; } /** *

The time, in seconds since the epoch, when the job execution was queued.

*/ inline void SetQueuedAt(Aws::Utils::DateTime&& value) { m_queuedAtHasBeenSet = true; m_queuedAt = std::move(value); } /** *

The time, in seconds since the epoch, when the job execution was queued.

*/ inline JobExecutionSummary& WithQueuedAt(const Aws::Utils::DateTime& value) { SetQueuedAt(value); return *this;} /** *

The time, in seconds since the epoch, when the job execution was queued.

*/ inline JobExecutionSummary& WithQueuedAt(Aws::Utils::DateTime&& value) { SetQueuedAt(std::move(value)); return *this;} /** *

The time, in seconds since the epoch, when the job execution started.

*/ inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; } /** *

The time, in seconds since the epoch, when the job execution started.

*/ inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; } /** *

The time, in seconds since the epoch, when the job execution started.

*/ inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; } /** *

The time, in seconds since the epoch, when the job execution started.

*/ inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); } /** *

The time, in seconds since the epoch, when the job execution started.

*/ inline JobExecutionSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;} /** *

The time, in seconds since the epoch, when the job execution started.

*/ inline JobExecutionSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;} /** *

The time, in seconds since the epoch, when the job execution was last * updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The time, in seconds since the epoch, when the job execution was last * updated.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The time, in seconds since the epoch, when the job execution was last * updated.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The time, in seconds since the epoch, when the job execution was last * updated.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The time, in seconds since the epoch, when the job execution was last * updated.

*/ inline JobExecutionSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The time, in seconds since the epoch, when the job execution was last * updated.

*/ inline JobExecutionSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

A string (consisting of the digits "0" through "9") which identifies this * particular job execution on this particular device. It can be used later in * commands which return or update job execution information.

*/ inline long long GetExecutionNumber() const{ return m_executionNumber; } /** *

A string (consisting of the digits "0" through "9") which identifies this * particular job execution on this particular device. It can be used later in * commands which return or update job execution information.

*/ inline bool ExecutionNumberHasBeenSet() const { return m_executionNumberHasBeenSet; } /** *

A string (consisting of the digits "0" through "9") which identifies this * particular job execution on this particular device. It can be used later in * commands which return or update job execution information.

*/ inline void SetExecutionNumber(long long value) { m_executionNumberHasBeenSet = true; m_executionNumber = value; } /** *

A string (consisting of the digits "0" through "9") which identifies this * particular job execution on this particular device. It can be used later in * commands which return or update job execution information.

*/ inline JobExecutionSummary& WithExecutionNumber(long long value) { SetExecutionNumber(value); return *this;} /** *

The number that indicates how many retry attempts have been completed for * this job on this device.

*/ inline int GetRetryAttempt() const{ return m_retryAttempt; } /** *

The number that indicates how many retry attempts have been completed for * this job on this device.

*/ inline bool RetryAttemptHasBeenSet() const { return m_retryAttemptHasBeenSet; } /** *

The number that indicates how many retry attempts have been completed for * this job on this device.

*/ inline void SetRetryAttempt(int value) { m_retryAttemptHasBeenSet = true; m_retryAttempt = value; } /** *

The number that indicates how many retry attempts have been completed for * this job on this device.

*/ inline JobExecutionSummary& WithRetryAttempt(int value) { SetRetryAttempt(value); return *this;} private: JobExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_queuedAt; bool m_queuedAtHasBeenSet = false; Aws::Utils::DateTime m_startedAt; bool m_startedAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; long long m_executionNumber; bool m_executionNumberHasBeenSet = false; int m_retryAttempt; bool m_retryAttemptHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws