/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SnowDeviceManagement { namespace Model { class DescribeExecutionResult { public: AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult(); AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult(const Aws::AmazonWebServiceResult& result); AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the execution.

*/ inline const Aws::String& GetExecutionId() const{ return m_executionId; } /** *

The ID of the execution.

*/ inline void SetExecutionId(const Aws::String& value) { m_executionId = value; } /** *

The ID of the execution.

*/ inline void SetExecutionId(Aws::String&& value) { m_executionId = std::move(value); } /** *

The ID of the execution.

*/ inline void SetExecutionId(const char* value) { m_executionId.assign(value); } /** *

The ID of the execution.

*/ inline DescribeExecutionResult& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;} /** *

The ID of the execution.

*/ inline DescribeExecutionResult& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;} /** *

The ID of the execution.

*/ inline DescribeExecutionResult& WithExecutionId(const char* value) { SetExecutionId(value); return *this;} /** *

When the status of the execution was last updated.

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

When the status of the execution was last updated.

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

When the status of the execution was last updated.

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

When the status of the execution was last updated.

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

When the status of the execution was last updated.

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

The ID of the managed device that the task is being executed on.

*/ inline const Aws::String& GetManagedDeviceId() const{ return m_managedDeviceId; } /** *

The ID of the managed device that the task is being executed on.

*/ inline void SetManagedDeviceId(const Aws::String& value) { m_managedDeviceId = value; } /** *

The ID of the managed device that the task is being executed on.

*/ inline void SetManagedDeviceId(Aws::String&& value) { m_managedDeviceId = std::move(value); } /** *

The ID of the managed device that the task is being executed on.

*/ inline void SetManagedDeviceId(const char* value) { m_managedDeviceId.assign(value); } /** *

The ID of the managed device that the task is being executed on.

*/ inline DescribeExecutionResult& WithManagedDeviceId(const Aws::String& value) { SetManagedDeviceId(value); return *this;} /** *

The ID of the managed device that the task is being executed on.

*/ inline DescribeExecutionResult& WithManagedDeviceId(Aws::String&& value) { SetManagedDeviceId(std::move(value)); return *this;} /** *

The ID of the managed device that the task is being executed on.

*/ inline DescribeExecutionResult& WithManagedDeviceId(const char* value) { SetManagedDeviceId(value); return *this;} /** *

When the execution began.

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

When the execution began.

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

When the execution began.

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

When the execution began.

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

When the execution began.

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

The current state of the execution.

*/ inline const ExecutionState& GetState() const{ return m_state; } /** *

The current state of the execution.

*/ inline void SetState(const ExecutionState& value) { m_state = value; } /** *

The current state of the execution.

*/ inline void SetState(ExecutionState&& value) { m_state = std::move(value); } /** *

The current state of the execution.

*/ inline DescribeExecutionResult& WithState(const ExecutionState& value) { SetState(value); return *this;} /** *

The current state of the execution.

*/ inline DescribeExecutionResult& WithState(ExecutionState&& value) { SetState(std::move(value)); return *this;} /** *

The ID of the task being executed on the device.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

The ID of the task being executed on the device.

*/ inline void SetTaskId(const Aws::String& value) { m_taskId = value; } /** *

The ID of the task being executed on the device.

*/ inline void SetTaskId(Aws::String&& value) { m_taskId = std::move(value); } /** *

The ID of the task being executed on the device.

*/ inline void SetTaskId(const char* value) { m_taskId.assign(value); } /** *

The ID of the task being executed on the device.

*/ inline DescribeExecutionResult& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

The ID of the task being executed on the device.

*/ inline DescribeExecutionResult& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

The ID of the task being executed on the device.

*/ inline DescribeExecutionResult& WithTaskId(const char* value) { SetTaskId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeExecutionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeExecutionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeExecutionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_executionId; Aws::Utils::DateTime m_lastUpdatedAt; Aws::String m_managedDeviceId; Aws::Utils::DateTime m_startedAt; ExecutionState m_state; Aws::String m_taskId; Aws::String m_requestId; }; } // namespace Model } // namespace SnowDeviceManagement } // namespace Aws