AWS SDK for C++  1.9.108
AWS SDK for C++
ConflictException.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 IoTWireless
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
69  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
70 
74  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
75 
79  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
80 
84  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
85 
89  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
90 
94  inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
95 
99  inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
100 
104  inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
105 
106 
110  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
111 
115  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
116 
120  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
121 
125  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
126 
130  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
131 
135  inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
136 
140  inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
141 
145  inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
146 
147  private:
148 
149  Aws::String m_message;
150  bool m_messageHasBeenSet;
151 
152  Aws::String m_resourceId;
153  bool m_resourceIdHasBeenSet;
154 
155  Aws::String m_resourceType;
156  bool m_resourceTypeHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace IoTWireless
161 } // namespace Aws
Aws::IoTWireless::Model::ConflictException::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ConflictException.h:120
AWS_IOTWIRELESS_API
#define AWS_IOTWIRELESS_API
Definition: IoTWireless_EXPORTS.h:28
Aws::IoTWireless::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(Aws::String &&value)
Definition: ConflictException.h:140
Aws::IoTWireless::Model::ConflictException::SetResourceId
void SetResourceId(const char *value)
Definition: ConflictException.h:89
Aws::IoTWireless::Model::ConflictException::WithMessage
ConflictException & WithMessage(Aws::String &&value)
Definition: ConflictException.h:60
Aws::IoTWireless::Model::ConflictException::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: ConflictException.h:79
Aws::IoTWireless::Model::ConflictException::operator=
ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTWireless::Model::ConflictException::SetMessage
void SetMessage(const char *value)
Definition: ConflictException.h:54
Aws::IoTWireless::Model::ConflictException::WithMessage
ConflictException & WithMessage(const Aws::String &value)
Definition: ConflictException.h:57
IoTWireless_EXPORTS.h
Aws::IoTWireless::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const Aws::String &value)
Definition: ConflictException.h:94
Aws::IoTWireless::Model::ConflictException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ConflictException.h:45
Aws::IoTWireless::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(Aws::String &&value)
Definition: ConflictException.h:99
Aws::IoTWireless::Model::ConflictException::WithResourceId
ConflictException & WithResourceId(const char *value)
Definition: ConflictException.h:104
Aws::IoTWireless::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const char *value)
Definition: ConflictException.h:145
Aws::IoTWireless::Model::ConflictException
Definition: ConflictException.h:33
Aws::IoTWireless::Model::ConflictException::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ConflictException.h:125
Aws::IoTWireless::Model::ConflictException::ConflictException
ConflictException()
Aws::IoTWireless::Model::ConflictException::GetResourceId
const Aws::String & GetResourceId() const
Definition: ConflictException.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTWireless::Model::ConflictException::WithMessage
ConflictException & WithMessage(const char *value)
Definition: ConflictException.h:63
Aws::IoTWireless::Model::ConflictException::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: ConflictException.h:74
Aws::IoTWireless::Model::ConflictException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ConflictException.h:48
Aws::IoTWireless::Model::ConflictException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTWireless::Model::ConflictException::GetMessage
const Aws::String & GetMessage() const
Definition: ConflictException.h:42
Aws::IoTWireless::Model::ConflictException::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: ConflictException.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::IoTWireless::Model::ConflictException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ConflictException.h:51
Aws::IoTWireless::Model::ConflictException::WithResourceType
ConflictException & WithResourceType(const Aws::String &value)
Definition: ConflictException.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTWireless::Model::ConflictException::SetResourceType
void SetResourceType(const char *value)
Definition: ConflictException.h:130
Aws::IoTWireless::Model::ConflictException::GetResourceType
const Aws::String & GetResourceType() const
Definition: ConflictException.h:110
Aws::IoTWireless::Model::ConflictException::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ConflictException.h:115
Aws::IoTWireless::Model::ConflictException::ConflictException
ConflictException(Aws::Utils::Json::JsonView jsonValue)