1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/discovery/model/BatchDeleteImportDataErrorCode.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace ApplicationDiscoveryService 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Error messages returned for each import task that you deleted as a response 29 * for this command.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportDataError">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_APPLICATIONDISCOVERYSERVICE_API BatchDeleteImportDataError 34 { 35 public: 36 BatchDeleteImportDataError(); 37 BatchDeleteImportDataError(Aws::Utils::Json::JsonView jsonValue); 38 BatchDeleteImportDataError& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The unique import ID associated with the error that occurred.</p> 44 */ GetImportTaskId()45 inline const Aws::String& GetImportTaskId() const{ return m_importTaskId; } 46 47 /** 48 * <p>The unique import ID associated with the error that occurred.</p> 49 */ ImportTaskIdHasBeenSet()50 inline bool ImportTaskIdHasBeenSet() const { return m_importTaskIdHasBeenSet; } 51 52 /** 53 * <p>The unique import ID associated with the error that occurred.</p> 54 */ SetImportTaskId(const Aws::String & value)55 inline void SetImportTaskId(const Aws::String& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = value; } 56 57 /** 58 * <p>The unique import ID associated with the error that occurred.</p> 59 */ SetImportTaskId(Aws::String && value)60 inline void SetImportTaskId(Aws::String&& value) { m_importTaskIdHasBeenSet = true; m_importTaskId = std::move(value); } 61 62 /** 63 * <p>The unique import ID associated with the error that occurred.</p> 64 */ SetImportTaskId(const char * value)65 inline void SetImportTaskId(const char* value) { m_importTaskIdHasBeenSet = true; m_importTaskId.assign(value); } 66 67 /** 68 * <p>The unique import ID associated with the error that occurred.</p> 69 */ WithImportTaskId(const Aws::String & value)70 inline BatchDeleteImportDataError& WithImportTaskId(const Aws::String& value) { SetImportTaskId(value); return *this;} 71 72 /** 73 * <p>The unique import ID associated with the error that occurred.</p> 74 */ WithImportTaskId(Aws::String && value)75 inline BatchDeleteImportDataError& WithImportTaskId(Aws::String&& value) { SetImportTaskId(std::move(value)); return *this;} 76 77 /** 78 * <p>The unique import ID associated with the error that occurred.</p> 79 */ WithImportTaskId(const char * value)80 inline BatchDeleteImportDataError& WithImportTaskId(const char* value) { SetImportTaskId(value); return *this;} 81 82 83 /** 84 * <p>The type of error that occurred for a specific import task.</p> 85 */ GetErrorCode()86 inline const BatchDeleteImportDataErrorCode& GetErrorCode() const{ return m_errorCode; } 87 88 /** 89 * <p>The type of error that occurred for a specific import task.</p> 90 */ ErrorCodeHasBeenSet()91 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } 92 93 /** 94 * <p>The type of error that occurred for a specific import task.</p> 95 */ SetErrorCode(const BatchDeleteImportDataErrorCode & value)96 inline void SetErrorCode(const BatchDeleteImportDataErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } 97 98 /** 99 * <p>The type of error that occurred for a specific import task.</p> 100 */ SetErrorCode(BatchDeleteImportDataErrorCode && value)101 inline void SetErrorCode(BatchDeleteImportDataErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } 102 103 /** 104 * <p>The type of error that occurred for a specific import task.</p> 105 */ WithErrorCode(const BatchDeleteImportDataErrorCode & value)106 inline BatchDeleteImportDataError& WithErrorCode(const BatchDeleteImportDataErrorCode& value) { SetErrorCode(value); return *this;} 107 108 /** 109 * <p>The type of error that occurred for a specific import task.</p> 110 */ WithErrorCode(BatchDeleteImportDataErrorCode && value)111 inline BatchDeleteImportDataError& WithErrorCode(BatchDeleteImportDataErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} 112 113 114 /** 115 * <p>The description of the error that occurred for a specific import task.</p> 116 */ GetErrorDescription()117 inline const Aws::String& GetErrorDescription() const{ return m_errorDescription; } 118 119 /** 120 * <p>The description of the error that occurred for a specific import task.</p> 121 */ ErrorDescriptionHasBeenSet()122 inline bool ErrorDescriptionHasBeenSet() const { return m_errorDescriptionHasBeenSet; } 123 124 /** 125 * <p>The description of the error that occurred for a specific import task.</p> 126 */ SetErrorDescription(const Aws::String & value)127 inline void SetErrorDescription(const Aws::String& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = value; } 128 129 /** 130 * <p>The description of the error that occurred for a specific import task.</p> 131 */ SetErrorDescription(Aws::String && value)132 inline void SetErrorDescription(Aws::String&& value) { m_errorDescriptionHasBeenSet = true; m_errorDescription = std::move(value); } 133 134 /** 135 * <p>The description of the error that occurred for a specific import task.</p> 136 */ SetErrorDescription(const char * value)137 inline void SetErrorDescription(const char* value) { m_errorDescriptionHasBeenSet = true; m_errorDescription.assign(value); } 138 139 /** 140 * <p>The description of the error that occurred for a specific import task.</p> 141 */ WithErrorDescription(const Aws::String & value)142 inline BatchDeleteImportDataError& WithErrorDescription(const Aws::String& value) { SetErrorDescription(value); return *this;} 143 144 /** 145 * <p>The description of the error that occurred for a specific import task.</p> 146 */ WithErrorDescription(Aws::String && value)147 inline BatchDeleteImportDataError& WithErrorDescription(Aws::String&& value) { SetErrorDescription(std::move(value)); return *this;} 148 149 /** 150 * <p>The description of the error that occurred for a specific import task.</p> 151 */ WithErrorDescription(const char * value)152 inline BatchDeleteImportDataError& WithErrorDescription(const char* value) { SetErrorDescription(value); return *this;} 153 154 private: 155 156 Aws::String m_importTaskId; 157 bool m_importTaskIdHasBeenSet; 158 159 BatchDeleteImportDataErrorCode m_errorCode; 160 bool m_errorCodeHasBeenSet; 161 162 Aws::String m_errorDescription; 163 bool m_errorDescriptionHasBeenSet; 164 }; 165 166 } // namespace Model 167 } // namespace ApplicationDiscoveryService 168 } // namespace Aws 169