/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains data about the state of a job execution.See Also:
* AWS
* API Reference
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::MapA 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::MapA collection of name/value pairs that describe the status of the job * execution.
*/ inline void SetStatusDetails(Aws::MapA collection of name/value pairs that describe the status of the job * execution.
*/ inline JobExecutionState& WithStatusDetails(const Aws::MapA collection of name/value pairs that describe the status of the job * execution.
*/ inline JobExecutionState& WithStatusDetails(Aws::MapA 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