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/backup/Backup_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace Backup 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>A resource that is required for the action doesn't exist.</p><p><h3>See 28 * Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ResourceNotFoundException">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_BACKUP_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 GetCode()42 inline const Aws::String& GetCode() const{ return m_code; } 43 44 CodeHasBeenSet()45 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } 46 47 SetCode(const Aws::String & value)48 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } 49 50 SetCode(Aws::String && value)51 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } 52 53 SetCode(const char * value)54 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } 55 56 WithCode(const Aws::String & value)57 inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;} 58 59 WithCode(Aws::String && value)60 inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} 61 62 WithCode(const char * value)63 inline ResourceNotFoundException& WithCode(const char* value) { SetCode(value); return *this;} 64 65 66 GetMessage()67 inline const Aws::String& GetMessage() const{ return m_message; } 68 69 MessageHasBeenSet()70 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 71 72 SetMessage(const Aws::String & value)73 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 74 75 SetMessage(Aws::String && value)76 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 77 78 SetMessage(const char * value)79 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 80 81 WithMessage(const Aws::String & value)82 inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 83 84 WithMessage(Aws::String && value)85 inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 86 87 WithMessage(const char * value)88 inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} 89 90 91 /** 92 * <p/> 93 */ GetType()94 inline const Aws::String& GetType() const{ return m_type; } 95 96 /** 97 * <p/> 98 */ TypeHasBeenSet()99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } 100 101 /** 102 * <p/> 103 */ SetType(const Aws::String & value)104 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } 105 106 /** 107 * <p/> 108 */ SetType(Aws::String && value)109 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } 110 111 /** 112 * <p/> 113 */ SetType(const char * value)114 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } 115 116 /** 117 * <p/> 118 */ WithType(const Aws::String & value)119 inline ResourceNotFoundException& WithType(const Aws::String& value) { SetType(value); return *this;} 120 121 /** 122 * <p/> 123 */ WithType(Aws::String && value)124 inline ResourceNotFoundException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} 125 126 /** 127 * <p/> 128 */ WithType(const char * value)129 inline ResourceNotFoundException& WithType(const char* value) { SetType(value); return *this;} 130 131 132 /** 133 * <p/> 134 */ GetContext()135 inline const Aws::String& GetContext() const{ return m_context; } 136 137 /** 138 * <p/> 139 */ ContextHasBeenSet()140 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; } 141 142 /** 143 * <p/> 144 */ SetContext(const Aws::String & value)145 inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; } 146 147 /** 148 * <p/> 149 */ SetContext(Aws::String && value)150 inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); } 151 152 /** 153 * <p/> 154 */ SetContext(const char * value)155 inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); } 156 157 /** 158 * <p/> 159 */ WithContext(const Aws::String & value)160 inline ResourceNotFoundException& WithContext(const Aws::String& value) { SetContext(value); return *this;} 161 162 /** 163 * <p/> 164 */ WithContext(Aws::String && value)165 inline ResourceNotFoundException& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;} 166 167 /** 168 * <p/> 169 */ WithContext(const char * value)170 inline ResourceNotFoundException& WithContext(const char* value) { SetContext(value); return *this;} 171 172 private: 173 174 Aws::String m_code; 175 bool m_codeHasBeenSet; 176 177 Aws::String m_message; 178 bool m_messageHasBeenSet; 179 180 Aws::String m_type; 181 bool m_typeHasBeenSet; 182 183 Aws::String m_context; 184 bool m_contextHasBeenSet; 185 }; 186 187 } // namespace Model 188 } // namespace Backup 189 } // namespace Aws 190