AWS SDK for C++  1.9.160
AWS SDK for C++
ResourceAlreadyExistsException.h
Go to the documentation of this file.
1 
6 #pragma once
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 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
44  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
47  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
50  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
53  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
56  inline ResourceAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline ResourceAlreadyExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline ResourceAlreadyExistsException& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
68  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
69 
73  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
74 
78  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
79 
83  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
84 
88  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
89 
93  inline ResourceAlreadyExistsException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
94 
98  inline ResourceAlreadyExistsException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
99 
103  inline ResourceAlreadyExistsException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
104 
105 
109  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
110 
114  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
115 
119  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
120 
124  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
125 
129  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
130 
134  inline ResourceAlreadyExistsException& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
135 
139  inline ResourceAlreadyExistsException& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
140 
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
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithMessage
ResourceAlreadyExistsException & WithMessage(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:59
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:119
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithResourceId
ResourceAlreadyExistsException & WithResourceId(const char *value)
Definition: ResourceAlreadyExistsException.h:103
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetResourceId
void SetResourceId(const char *value)
Definition: ResourceAlreadyExistsException.h:88
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithMessage
ResourceAlreadyExistsException & WithMessage(const char *value)
Definition: ResourceAlreadyExistsException.h:62
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:50
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:78
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetResourceArn
void SetResourceArn(const char *value)
Definition: ResourceAlreadyExistsException.h:129
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ResourceAlreadyExistsException.h:73
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithMessage
ResourceAlreadyExistsException & WithMessage(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:56
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::ResourceAlreadyExistsException
ResourceAlreadyExistsException(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::ResourceAlreadyExistsException
ResourceAlreadyExistsException()
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::operator=
ResourceAlreadyExistsException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithResourceId
ResourceAlreadyExistsException & WithResourceId(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:98
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:83
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:124
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ResourceAlreadyExistsException.h:44
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: ResourceAlreadyExistsException.h:109
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::GetMessage
const Aws::String & GetMessage() const
Definition: ResourceAlreadyExistsException.h:41
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException
Definition: ResourceAlreadyExistsException.h:32
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithResourceArn
ResourceAlreadyExistsException & WithResourceArn(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:134
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithResourceArn
ResourceAlreadyExistsException & WithResourceArn(Aws::String &&value)
Definition: ResourceAlreadyExistsException.h:139
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: ResourceAlreadyExistsException.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ResourceAlreadyExistsException.h:68
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithResourceArn
ResourceAlreadyExistsException & WithResourceArn(const char *value)
Definition: ResourceAlreadyExistsException.h:144
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:47
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::WithResourceId
ResourceAlreadyExistsException & WithResourceId(const Aws::String &value)
Definition: ResourceAlreadyExistsException.h:93
Aws::IoTSiteWise::Model::ResourceAlreadyExistsException::SetMessage
void SetMessage(const char *value)
Definition: ResourceAlreadyExistsException.h:53