AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ConflictException.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Panorama
24{
25namespace Model
26{
27
34 {
35 public:
40
41
45 inline const Aws::Vector<ConflictExceptionErrorArgument>& GetErrorArguments() const{ return m_errorArguments; }
46
50 inline bool ErrorArgumentsHasBeenSet() const { return m_errorArgumentsHasBeenSet; }
51
55 inline void SetErrorArguments(const Aws::Vector<ConflictExceptionErrorArgument>& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = value; }
56
60 inline void SetErrorArguments(Aws::Vector<ConflictExceptionErrorArgument>&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments = std::move(value); }
61
66
71
75 inline ConflictException& AddErrorArguments(const ConflictExceptionErrorArgument& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(value); return *this; }
76
80 inline ConflictException& AddErrorArguments(ConflictExceptionErrorArgument&& value) { m_errorArgumentsHasBeenSet = true; m_errorArguments.push_back(std::move(value)); return *this; }
81
82
86 inline const Aws::String& GetErrorId() const{ return m_errorId; }
87
91 inline bool ErrorIdHasBeenSet() const { return m_errorIdHasBeenSet; }
92
96 inline void SetErrorId(const Aws::String& value) { m_errorIdHasBeenSet = true; m_errorId = value; }
97
101 inline void SetErrorId(Aws::String&& value) { m_errorIdHasBeenSet = true; m_errorId = std::move(value); }
102
106 inline void SetErrorId(const char* value) { m_errorIdHasBeenSet = true; m_errorId.assign(value); }
107
111 inline ConflictException& WithErrorId(const Aws::String& value) { SetErrorId(value); return *this;}
112
116 inline ConflictException& WithErrorId(Aws::String&& value) { SetErrorId(std::move(value)); return *this;}
117
121 inline ConflictException& WithErrorId(const char* value) { SetErrorId(value); return *this;}
122
123
124
125 inline const Aws::String& GetMessage() const{ return m_message; }
126
127
128 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
129
130
131 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
132
133
134 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
135
136
137 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
138
139
140 inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
141
142
143 inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
144
145
146 inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
147
148
152 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
153
157 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
158
162 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
163
167 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
168
172 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
173
177 inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
178
182 inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
183
187 inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
188
189
193 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
194
198 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
199
203 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
204
208 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
209
213 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
214
218 inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
219
223 inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
224
228 inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
229
230 private:
231
233 bool m_errorArgumentsHasBeenSet = false;
234
235 Aws::String m_errorId;
236 bool m_errorIdHasBeenSet = false;
237
238 Aws::String m_message;
239 bool m_messageHasBeenSet = false;
240
241 Aws::String m_resourceId;
242 bool m_resourceIdHasBeenSet = false;
243
244 Aws::String m_resourceType;
245 bool m_resourceTypeHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace Panorama
250} // namespace Aws
#define AWS_PANORAMA_API
void SetMessage(const Aws::String &value)
ConflictException & WithErrorId(Aws::String &&value)
ConflictException & WithResourceId(const char *value)
ConflictException & WithMessage(const Aws::String &value)
void SetResourceId(const Aws::String &value)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictException & AddErrorArguments(const ConflictExceptionErrorArgument &value)
const Aws::String & GetResourceType() const
const Aws::String & GetMessage() const
ConflictException & WithMessage(const char *value)
ConflictException & AddErrorArguments(ConflictExceptionErrorArgument &&value)
void SetResourceType(Aws::String &&value)
AWS_PANORAMA_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ConflictExceptionErrorArgument > & GetErrorArguments() const
void SetErrorId(const Aws::String &value)
ConflictException & WithErrorArguments(const Aws::Vector< ConflictExceptionErrorArgument > &value)
ConflictException & WithResourceType(const char *value)
const Aws::String & GetErrorId() const
ConflictException & WithResourceId(Aws::String &&value)
const Aws::String & GetResourceId() const
void SetResourceType(const Aws::String &value)
void SetErrorArguments(Aws::Vector< ConflictExceptionErrorArgument > &&value)
void SetErrorArguments(const Aws::Vector< ConflictExceptionErrorArgument > &value)
ConflictException & WithResourceType(const Aws::String &value)
ConflictException & WithErrorArguments(Aws::Vector< ConflictExceptionErrorArgument > &&value)
ConflictException & WithMessage(Aws::String &&value)
ConflictException & WithResourceType(Aws::String &&value)
ConflictException & WithErrorId(const Aws::String &value)
ConflictException & WithResourceId(const Aws::String &value)
ConflictException & WithErrorId(const char *value)
AWS_PANORAMA_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector