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/xray/XRay_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 XRay
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The resource was not found. Verify that the name or Amazon Resource Name
28    * (ARN) of the resource is correct.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResourceNotFoundException">AWS
30    * API Reference</a></p>
31    */
32   class AWS_XRAY_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 
GetResourceName()67     inline const Aws::String& GetResourceName() const{ return m_resourceName; }
68 
69 
ResourceNameHasBeenSet()70     inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
71 
72 
SetResourceName(const Aws::String & value)73     inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
74 
75 
SetResourceName(Aws::String && value)76     inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
77 
78 
SetResourceName(const char * value)79     inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
80 
81 
WithResourceName(const Aws::String & value)82     inline ResourceNotFoundException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
83 
84 
WithResourceName(Aws::String && value)85     inline ResourceNotFoundException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
86 
87 
WithResourceName(const char * value)88     inline ResourceNotFoundException& WithResourceName(const char* value) { SetResourceName(value); return *this;}
89 
90   private:
91 
92     Aws::String m_message;
93     bool m_messageHasBeenSet;
94 
95     Aws::String m_resourceName;
96     bool m_resourceNameHasBeenSet;
97   };
98 
99 } // namespace Model
100 } // namespace XRay
101 } // namespace Aws
102