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

Error messages returned for each import task that you deleted as a response * for this command.

See Also:

AWS * API Reference

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

The unique import ID associated with the error that occurred.

*/ inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; } /** *

The unique import ID associated with the error that occurred.

*/ inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; } /** *

The unique import ID associated with the error that occurred.

*/ inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; } /** *

The unique import ID associated with the error that occurred.

*/ inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); } /** *

The unique import ID associated with the error that occurred.

*/ inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); } /** *

The unique import ID associated with the error that occurred.

*/ inline BatchDeleteImportDataError& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;} /** *

The unique import ID associated with the error that occurred.

*/ inline BatchDeleteImportDataError& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;} /** *

The unique import ID associated with the error that occurred.

*/ inline BatchDeleteImportDataError& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;} /** *

The type of error that occurred for a specific import task.

*/ inline const BatchDeleteImportDataErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The type of error that occurred for a specific import task.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The type of error that occurred for a specific import task.

*/ inline void SetErrorCode(const BatchDeleteImportDataErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The type of error that occurred for a specific import task.

*/ inline void SetErrorCode(BatchDeleteImportDataErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The type of error that occurred for a specific import task.

*/ inline BatchDeleteImportDataError& WithErrorCode(const BatchDeleteImportDataErrorCode& value) { SetErrorCode(value); return *this;} /** *

The type of error that occurred for a specific import task.

*/ inline BatchDeleteImportDataError& WithErrorCode(BatchDeleteImportDataErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

The description of the error that occurred for a specific import task.

*/ inline const Aws::String& GetErrorDescription() const{ return m_errorDescription; } /** *

The description of the error that occurred for a specific import task.

*/ inline bool ErrorDescriptionHasBeenSet() const { return m_errorDescriptionHasBeenSet; } /** *

The description of the error that occurred for a specific import task.

*/ inline void SetErrorDescription(const Aws::String& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = value; } /** *

The description of the error that occurred for a specific import task.

*/ inline void SetErrorDescription(Aws::String&& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = std::move(value); } /** *

The description of the error that occurred for a specific import task.

*/ inline void SetErrorDescription(const char* value) { m_errorDescriptionHasBeenSet = true; m_errorDescription.assign(value); } /** *

The description of the error that occurred for a specific import task.

*/ inline BatchDeleteImportDataError& WithErrorDescription(const Aws::String& value) { SetErrorDescription(value); return *this;} /** *

The description of the error that occurred for a specific import task.

*/ inline BatchDeleteImportDataError& WithErrorDescription(Aws::String&& value) { SetErrorDescription(std::move(value)); return *this;} /** *

The description of the error that occurred for a specific import task.

*/ inline BatchDeleteImportDataError& WithErrorDescription(const char* value) { SetErrorDescription(value); return *this;} private: Aws::String m_importTaskId; bool m_importTaskIdHasBeenSet = false; BatchDeleteImportDataErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorDescription; bool m_errorDescriptionHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws