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

Gets the details of a network operation.

A network operation is any * operation that is done to your network, such as network instance instantiation * or termination.

See Also:

AWS * API Reference

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

Context for the network operation task.

*/ inline const Aws::Map& GetTaskContext() const{ return m_taskContext; } /** *

Context for the network operation task.

*/ inline bool TaskContextHasBeenSet() const { return m_taskContextHasBeenSet; } /** *

Context for the network operation task.

*/ inline void SetTaskContext(const Aws::Map& value) { m_taskContextHasBeenSet = true; m_taskContext = value; } /** *

Context for the network operation task.

*/ inline void SetTaskContext(Aws::Map&& value) { m_taskContextHasBeenSet = true; m_taskContext = std::move(value); } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskContext(const Aws::Map& value) { SetTaskContext(value); return *this;} /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskContext(Aws::Map&& value) { SetTaskContext(std::move(value)); return *this;} /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(const Aws::String& key, const Aws::String& value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(key, value); return *this; } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(Aws::String&& key, const Aws::String& value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(std::move(key), value); return *this; } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(const Aws::String& key, Aws::String&& value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(key, std::move(value)); return *this; } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(Aws::String&& key, Aws::String&& value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(std::move(key), std::move(value)); return *this; } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(const char* key, Aws::String&& value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(key, std::move(value)); return *this; } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(Aws::String&& key, const char* value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(std::move(key), value); return *this; } /** *

Context for the network operation task.

*/ inline GetSolNetworkOperationTaskDetails& AddTaskContext(const char* key, const char* value) { m_taskContextHasBeenSet = true; m_taskContext.emplace(key, value); return *this; } /** *

Task end time.

*/ inline const Aws::Utils::DateTime& GetTaskEndTime() const{ return m_taskEndTime; } /** *

Task end time.

*/ inline bool TaskEndTimeHasBeenSet() const { return m_taskEndTimeHasBeenSet; } /** *

Task end time.

*/ inline void SetTaskEndTime(const Aws::Utils::DateTime& value) { m_taskEndTimeHasBeenSet = true; m_taskEndTime = value; } /** *

Task end time.

*/ inline void SetTaskEndTime(Aws::Utils::DateTime&& value) { m_taskEndTimeHasBeenSet = true; m_taskEndTime = std::move(value); } /** *

Task end time.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskEndTime(const Aws::Utils::DateTime& value) { SetTaskEndTime(value); return *this;} /** *

Task end time.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskEndTime(Aws::Utils::DateTime&& value) { SetTaskEndTime(std::move(value)); return *this;} /** *

Task error details.

*/ inline const ErrorInfo& GetTaskErrorDetails() const{ return m_taskErrorDetails; } /** *

Task error details.

*/ inline bool TaskErrorDetailsHasBeenSet() const { return m_taskErrorDetailsHasBeenSet; } /** *

Task error details.

*/ inline void SetTaskErrorDetails(const ErrorInfo& value) { m_taskErrorDetailsHasBeenSet = true; m_taskErrorDetails = value; } /** *

Task error details.

*/ inline void SetTaskErrorDetails(ErrorInfo&& value) { m_taskErrorDetailsHasBeenSet = true; m_taskErrorDetails = std::move(value); } /** *

Task error details.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskErrorDetails(const ErrorInfo& value) { SetTaskErrorDetails(value); return *this;} /** *

Task error details.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskErrorDetails(ErrorInfo&& value) { SetTaskErrorDetails(std::move(value)); return *this;} /** *

Task name.

*/ inline const Aws::String& GetTaskName() const{ return m_taskName; } /** *

Task name.

*/ inline bool TaskNameHasBeenSet() const { return m_taskNameHasBeenSet; } /** *

Task name.

*/ inline void SetTaskName(const Aws::String& value) { m_taskNameHasBeenSet = true; m_taskName = value; } /** *

Task name.

*/ inline void SetTaskName(Aws::String&& value) { m_taskNameHasBeenSet = true; m_taskName = std::move(value); } /** *

Task name.

*/ inline void SetTaskName(const char* value) { m_taskNameHasBeenSet = true; m_taskName.assign(value); } /** *

Task name.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskName(const Aws::String& value) { SetTaskName(value); return *this;} /** *

Task name.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskName(Aws::String&& value) { SetTaskName(std::move(value)); return *this;} /** *

Task name.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskName(const char* value) { SetTaskName(value); return *this;} /** *

Task start time.

*/ inline const Aws::Utils::DateTime& GetTaskStartTime() const{ return m_taskStartTime; } /** *

Task start time.

*/ inline bool TaskStartTimeHasBeenSet() const { return m_taskStartTimeHasBeenSet; } /** *

Task start time.

*/ inline void SetTaskStartTime(const Aws::Utils::DateTime& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = value; } /** *

Task start time.

*/ inline void SetTaskStartTime(Aws::Utils::DateTime&& value) { m_taskStartTimeHasBeenSet = true; m_taskStartTime = std::move(value); } /** *

Task start time.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskStartTime(const Aws::Utils::DateTime& value) { SetTaskStartTime(value); return *this;} /** *

Task start time.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskStartTime(Aws::Utils::DateTime&& value) { SetTaskStartTime(std::move(value)); return *this;} /** *

Task status.

*/ inline const TaskStatus& GetTaskStatus() const{ return m_taskStatus; } /** *

Task status.

*/ inline bool TaskStatusHasBeenSet() const { return m_taskStatusHasBeenSet; } /** *

Task status.

*/ inline void SetTaskStatus(const TaskStatus& value) { m_taskStatusHasBeenSet = true; m_taskStatus = value; } /** *

Task status.

*/ inline void SetTaskStatus(TaskStatus&& value) { m_taskStatusHasBeenSet = true; m_taskStatus = std::move(value); } /** *

Task status.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskStatus(const TaskStatus& value) { SetTaskStatus(value); return *this;} /** *

Task status.

*/ inline GetSolNetworkOperationTaskDetails& WithTaskStatus(TaskStatus&& value) { SetTaskStatus(std::move(value)); return *this;} private: Aws::Map m_taskContext; bool m_taskContextHasBeenSet = false; Aws::Utils::DateTime m_taskEndTime; bool m_taskEndTimeHasBeenSet = false; ErrorInfo m_taskErrorDetails; bool m_taskErrorDetailsHasBeenSet = false; Aws::String m_taskName; bool m_taskNameHasBeenSet = false; Aws::Utils::DateTime m_taskStartTime; bool m_taskStartTimeHasBeenSet = false; TaskStatus m_taskStatus; bool m_taskStatusHasBeenSet = false; }; } // namespace Model } // namespace tnb } // namespace Aws