/** * 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 IoTJobsDataPlane { namespace Model { /** *

Contains data about the state of a job execution.

See Also:

* AWS * API Reference

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

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", * "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

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

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", * "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

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

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", * "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

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

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", * "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

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

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", * "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

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

The status of the job execution. Can be one of: "QUEUED", "IN_PROGRESS", * "FAILED", "SUCCESS", "CANCELED", "REJECTED", or "REMOVED".

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

A collection of name/value pairs that describe the status of the job * execution.

*/ inline const Aws::Map& GetStatusDetails() const{ return m_statusDetails; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline void SetStatusDetails(const Aws::Map& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline void SetStatusDetails(Aws::Map&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& WithStatusDetails(const Aws::Map& value) { SetStatusDetails(value); return *this;} /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& WithStatusDetails(Aws::Map&& value) { SetStatusDetails(std::move(value)); return *this;} /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(const Aws::String& key, const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, value); return *this; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(Aws::String&& key, const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), value); return *this; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(const Aws::String& key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, std::move(value)); return *this; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(Aws::String&& key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), std::move(value)); return *this; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(const char* key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, std::move(value)); return *this; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(Aws::String&& key, const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), value); return *this; } /** *

A collection of name/value pairs that describe the status of the job * execution.

*/ inline JobExecutionState& AddStatusDetails(const char* key, const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, value); return *this; } /** *

The version of the job execution. Job execution versions are incremented each * time they are updated by a device.

*/ inline long long GetVersionNumber() const{ return m_versionNumber; } /** *

The version of the job execution. Job execution versions are incremented each * time they are updated by a device.

*/ inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } /** *

The version of the job execution. Job execution versions are incremented each * time they are updated by a device.

*/ inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } /** *

The version of the job execution. Job execution versions are incremented each * time they are updated by a device.

*/ inline JobExecutionState& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} private: JobExecutionStatus m_status; bool m_statusHasBeenSet = false; Aws::Map m_statusDetails; bool m_statusDetailsHasBeenSet = false; long long m_versionNumber; bool m_versionNumberHasBeenSet = false; }; } // namespace Model } // namespace IoTJobsDataPlane } // namespace Aws