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/dlm/DLM_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.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 DLM 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>A requested resource was not found.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/ResourceNotFoundException">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_DLM_API ResourceNotFoundException 33 { 34 public: 35 ResourceNotFoundException(); 36 ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); 37 ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 GetMessage()42 inline const Aws::String& GetMessage() const{ return m_message; } 43 44 MessageHasBeenSet()45 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 46 47 SetMessage(const Aws::String & value)48 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 49 50 SetMessage(Aws::String && value)51 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 52 53 SetMessage(const char * value)54 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 55 56 WithMessage(const Aws::String & value)57 inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 58 59 WithMessage(Aws::String && value)60 inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 61 62 WithMessage(const char * value)63 inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} 64 65 66 GetCode()67 inline const Aws::String& GetCode() const{ return m_code; } 68 69 CodeHasBeenSet()70 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } 71 72 SetCode(const Aws::String & value)73 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } 74 75 SetCode(Aws::String && value)76 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } 77 78 SetCode(const char * value)79 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } 80 81 WithCode(const Aws::String & value)82 inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;} 83 84 WithCode(Aws::String && value)85 inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} 86 87 WithCode(const char * value)88 inline ResourceNotFoundException& WithCode(const char* value) { SetCode(value); return *this;} 89 90 91 /** 92 * <p>Value is the type of resource that was not found.</p> 93 */ GetResourceType()94 inline const Aws::String& GetResourceType() const{ return m_resourceType; } 95 96 /** 97 * <p>Value is the type of resource that was not found.</p> 98 */ ResourceTypeHasBeenSet()99 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } 100 101 /** 102 * <p>Value is the type of resource that was not found.</p> 103 */ SetResourceType(const Aws::String & value)104 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } 105 106 /** 107 * <p>Value is the type of resource that was not found.</p> 108 */ SetResourceType(Aws::String && value)109 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } 110 111 /** 112 * <p>Value is the type of resource that was not found.</p> 113 */ SetResourceType(const char * value)114 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } 115 116 /** 117 * <p>Value is the type of resource that was not found.</p> 118 */ WithResourceType(const Aws::String & value)119 inline ResourceNotFoundException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} 120 121 /** 122 * <p>Value is the type of resource that was not found.</p> 123 */ WithResourceType(Aws::String && value)124 inline ResourceNotFoundException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} 125 126 /** 127 * <p>Value is the type of resource that was not found.</p> 128 */ WithResourceType(const char * value)129 inline ResourceNotFoundException& WithResourceType(const char* value) { SetResourceType(value); return *this;} 130 131 132 /** 133 * <p>Value is a list of resource IDs that were not found.</p> 134 */ GetResourceIds()135 inline const Aws::Vector<Aws::String>& GetResourceIds() const{ return m_resourceIds; } 136 137 /** 138 * <p>Value is a list of resource IDs that were not found.</p> 139 */ ResourceIdsHasBeenSet()140 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; } 141 142 /** 143 * <p>Value is a list of resource IDs that were not found.</p> 144 */ SetResourceIds(const Aws::Vector<Aws::String> & value)145 inline void SetResourceIds(const Aws::Vector<Aws::String>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; } 146 147 /** 148 * <p>Value is a list of resource IDs that were not found.</p> 149 */ SetResourceIds(Aws::Vector<Aws::String> && value)150 inline void SetResourceIds(Aws::Vector<Aws::String>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); } 151 152 /** 153 * <p>Value is a list of resource IDs that were not found.</p> 154 */ WithResourceIds(const Aws::Vector<Aws::String> & value)155 inline ResourceNotFoundException& WithResourceIds(const Aws::Vector<Aws::String>& value) { SetResourceIds(value); return *this;} 156 157 /** 158 * <p>Value is a list of resource IDs that were not found.</p> 159 */ WithResourceIds(Aws::Vector<Aws::String> && value)160 inline ResourceNotFoundException& WithResourceIds(Aws::Vector<Aws::String>&& value) { SetResourceIds(std::move(value)); return *this;} 161 162 /** 163 * <p>Value is a list of resource IDs that were not found.</p> 164 */ AddResourceIds(const Aws::String & value)165 inline ResourceNotFoundException& AddResourceIds(const Aws::String& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } 166 167 /** 168 * <p>Value is a list of resource IDs that were not found.</p> 169 */ AddResourceIds(Aws::String && value)170 inline ResourceNotFoundException& AddResourceIds(Aws::String&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; } 171 172 /** 173 * <p>Value is a list of resource IDs that were not found.</p> 174 */ AddResourceIds(const char * value)175 inline ResourceNotFoundException& AddResourceIds(const char* value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; } 176 177 private: 178 179 Aws::String m_message; 180 bool m_messageHasBeenSet; 181 182 Aws::String m_code; 183 bool m_codeHasBeenSet; 184 185 Aws::String m_resourceType; 186 bool m_resourceTypeHasBeenSet; 187 188 Aws::Vector<Aws::String> m_resourceIds; 189 bool m_resourceIdsHasBeenSet; 190 }; 191 192 } // namespace Model 193 } // namespace DLM 194 } // namespace Aws 195