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/iotsitewise/IoTSiteWise_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 IoTSiteWise
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>The resource already exists.</p><p><h3>See Also:</h3>   <a
28    * href="http://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ResourceAlreadyExistsException">AWS
29    * API Reference</a></p>
30    */
31   class AWS_IOTSITEWISE_API ResourceAlreadyExistsException
32   {
33   public:
34     ResourceAlreadyExistsException();
35     ResourceAlreadyExistsException(Aws::Utils::Json::JsonView jsonValue);
36     ResourceAlreadyExistsException& operator=(Aws::Utils::Json::JsonView jsonValue);
37     Aws::Utils::Json::JsonValue Jsonize() const;
38 
39 
40 
GetMessage()41     inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
MessageHasBeenSet()44     inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
SetMessage(const Aws::String & value)47     inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
SetMessage(Aws::String && value)50     inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
SetMessage(const char * value)53     inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
WithMessage(const Aws::String & value)56     inline ResourceAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
WithMessage(Aws::String && value)59     inline ResourceAlreadyExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
WithMessage(const char * value)62     inline ResourceAlreadyExistsException& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
65     /**
66      * <p>The ID of the resource that already exists.</p>
67      */
GetResourceId()68     inline const Aws::String& GetResourceId() const{ return m_resourceId; }
69 
70     /**
71      * <p>The ID of the resource that already exists.</p>
72      */
ResourceIdHasBeenSet()73     inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
74 
75     /**
76      * <p>The ID of the resource that already exists.</p>
77      */
SetResourceId(const Aws::String & value)78     inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
79 
80     /**
81      * <p>The ID of the resource that already exists.</p>
82      */
SetResourceId(Aws::String && value)83     inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
84 
85     /**
86      * <p>The ID of the resource that already exists.</p>
87      */
SetResourceId(const char * value)88     inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
89 
90     /**
91      * <p>The ID of the resource that already exists.</p>
92      */
WithResourceId(const Aws::String & value)93     inline ResourceAlreadyExistsException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
94 
95     /**
96      * <p>The ID of the resource that already exists.</p>
97      */
WithResourceId(Aws::String && value)98     inline ResourceAlreadyExistsException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
99 
100     /**
101      * <p>The ID of the resource that already exists.</p>
102      */
WithResourceId(const char * value)103     inline ResourceAlreadyExistsException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
104 
105 
106     /**
107      * <p>The ARN of the resource that already exists.</p>
108      */
GetResourceArn()109     inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
110 
111     /**
112      * <p>The ARN of the resource that already exists.</p>
113      */
ResourceArnHasBeenSet()114     inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
115 
116     /**
117      * <p>The ARN of the resource that already exists.</p>
118      */
SetResourceArn(const Aws::String & value)119     inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
120 
121     /**
122      * <p>The ARN of the resource that already exists.</p>
123      */
SetResourceArn(Aws::String && value)124     inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
125 
126     /**
127      * <p>The ARN of the resource that already exists.</p>
128      */
SetResourceArn(const char * value)129     inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
130 
131     /**
132      * <p>The ARN of the resource that already exists.</p>
133      */
WithResourceArn(const Aws::String & value)134     inline ResourceAlreadyExistsException& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
135 
136     /**
137      * <p>The ARN of the resource that already exists.</p>
138      */
WithResourceArn(Aws::String && value)139     inline ResourceAlreadyExistsException& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
140 
141     /**
142      * <p>The ARN of the resource that already exists.</p>
143      */
WithResourceArn(const char * value)144     inline ResourceAlreadyExistsException& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
145 
146   private:
147 
148     Aws::String m_message;
149     bool m_messageHasBeenSet;
150 
151     Aws::String m_resourceId;
152     bool m_resourceIdHasBeenSet;
153 
154     Aws::String m_resourceArn;
155     bool m_resourceArnHasBeenSet;
156   };
157 
158 } // namespace Model
159 } // namespace IoTSiteWise
160 } // namespace Aws
161