AWS SDK for C++  1.9.124
AWS SDK for C++
ResourceAlreadyExistsException.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.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 IoT
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetMessage() const{ return m_message; }
44 
48  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 
53  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
54 
58  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
59 
63  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 
68  inline ResourceAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
69 
73  inline ResourceAlreadyExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
74 
78  inline ResourceAlreadyExistsException& WithMessage(const char* value) { SetMessage(value); return *this;}
79 
80 
84  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
85 
89  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
90 
94  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
95 
99  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
100 
104  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
105 
109  inline ResourceAlreadyExistsException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
110 
114  inline ResourceAlreadyExistsException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
115 
119  inline ResourceAlreadyExistsException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
120 
121 
125  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
126 
130  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
131 
135  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
136 
140  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
141 
145  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
146 
150  inline ResourceAlreadyExistsException& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
151 
155  inline ResourceAlreadyExistsException& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
156 
160  inline ResourceAlreadyExistsException& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
161 
162  private:
163 
164  Aws::String m_message;
165  bool m_messageHasBeenSet;
166 
167  Aws::String m_resourceId;
168  bool m_resourceIdHasBeenSet;
169 
170  Aws::String m_resourceArn;
171  bool m_resourceArnHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace IoT
176 } // namespace Aws
Aws::IoT::Model::ResourceAlreadyExistsException::WithResourceId
ResourceAlreadyExistsException & WithResourceId(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:114
Aws::IoT::Model::ResourceAlreadyExistsException::WithResourceId
ResourceAlreadyExistsException & WithResourceId(const char *value)
Definition: ResourceAlreadyExistsException.h:119
Aws::IoT::Model::ResourceAlreadyExistsException::WithMessage
ResourceAlreadyExistsException & WithMessage(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:73
Aws::IoT::Model::ResourceAlreadyExistsException::ResourceAlreadyExistsException
ResourceAlreadyExistsException()
Aws::IoT::Model::ResourceAlreadyExistsException::SetResourceId
void SetResourceId(const char *value)
Definition: ResourceAlreadyExistsException.h:104
Aws::IoT::Model::ResourceAlreadyExistsException::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:140
Aws::IoT::Model::ResourceAlreadyExistsException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:99
Aws::IoT::Model::ResourceAlreadyExistsException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:53
Aws::IoT::Model::ResourceAlreadyExistsException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ResourceAlreadyExistsException.h:48
Aws::IoT::Model::ResourceAlreadyExistsException::WithResourceArn
ResourceAlreadyExistsException & WithResourceArn(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:155
Aws::IoT::Model::ResourceAlreadyExistsException::WithResourceId
ResourceAlreadyExistsException & WithResourceId(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:109
Aws::IoT::Model::ResourceAlreadyExistsException::WithResourceArn
ResourceAlreadyExistsException & WithResourceArn(const char *value)
Definition: ResourceAlreadyExistsException.h:160
Aws::IoT::Model::ResourceAlreadyExistsException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ResourceAlreadyExistsException.h:84
Aws::IoT::Model::ResourceAlreadyExistsException::SetResourceArn
void SetResourceArn(const char *value)
Definition: ResourceAlreadyExistsException.h:145
Aws::IoT::Model::ResourceAlreadyExistsException::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:135
Aws::IoT::Model::ResourceAlreadyExistsException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ResourceAlreadyExistsException::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ResourceAlreadyExistsException.h:130
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::ResourceAlreadyExistsException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:58
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ResourceAlreadyExistsException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:94
Aws::IoT::Model::ResourceAlreadyExistsException::WithMessage
ResourceAlreadyExistsException & WithMessage(const char *value)
Definition: ResourceAlreadyExistsException.h:78
Aws::IoT::Model::ResourceAlreadyExistsException::operator=
ResourceAlreadyExistsException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ResourceAlreadyExistsException::ResourceAlreadyExistsException
ResourceAlreadyExistsException(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ResourceAlreadyExistsException
Definition: ResourceAlreadyExistsException.h:32
Aws::IoT::Model::ResourceAlreadyExistsException::GetMessage
const Aws::String & GetMessage() const
Definition: ResourceAlreadyExistsException.h:43
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ResourceAlreadyExistsException::WithResourceArn
ResourceAlreadyExistsException & WithResourceArn(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:150
Aws::IoT::Model::ResourceAlreadyExistsException::SetMessage
void SetMessage(const char *value)
Definition: ResourceAlreadyExistsException.h:63
Aws::IoT::Model::ResourceAlreadyExistsException::WithMessage
ResourceAlreadyExistsException & WithMessage(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:68
IoT_EXPORTS.h
Aws::IoT::Model::ResourceAlreadyExistsException::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ResourceAlreadyExistsException.h:125
Aws::IoT::Model::ResourceAlreadyExistsException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ResourceAlreadyExistsException.h:89