AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConflictException.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/mgn/model/ErrorDetails.h>
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 mgn
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MGN_API ConflictException();
41
42
44
45 inline const Aws::String& GetCode() const{ return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
48 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
49 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
50 inline ConflictException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
51 inline ConflictException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
52 inline ConflictException& WithCode(const char* value) { SetCode(value); return *this;}
54
56
59 inline const Aws::Vector<ErrorDetails>& GetErrors() const{ return m_errors; }
60 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
61 inline void SetErrors(const Aws::Vector<ErrorDetails>& value) { m_errorsHasBeenSet = true; m_errors = value; }
62 inline void SetErrors(Aws::Vector<ErrorDetails>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
63 inline ConflictException& WithErrors(const Aws::Vector<ErrorDetails>& value) { SetErrors(value); return *this;}
64 inline ConflictException& WithErrors(Aws::Vector<ErrorDetails>&& value) { SetErrors(std::move(value)); return *this;}
65 inline ConflictException& AddErrors(const ErrorDetails& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
66 inline ConflictException& AddErrors(ErrorDetails&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
68
70
71 inline const Aws::String& GetMessage() const{ return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
75 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
76 inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
77 inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
78 inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
80
82
85 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
86 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
87 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
88 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
89 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
90 inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
91 inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
92 inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
94
96
99 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
100 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
101 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
102 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
103 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
104 inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
105 inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
106 inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;}
108 private:
109
110 Aws::String m_code;
111 bool m_codeHasBeenSet = false;
112
114 bool m_errorsHasBeenSet = false;
115
116 Aws::String m_message;
117 bool m_messageHasBeenSet = false;
118
119 Aws::String m_resourceId;
120 bool m_resourceIdHasBeenSet = false;
121
122 Aws::String m_resourceType;
123 bool m_resourceTypeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace mgn
128} // namespace Aws
void SetMessage(Aws::String &&value)
ConflictException & WithResourceType(const char *value)
void SetResourceType(const Aws::String &value)
const Aws::Vector< ErrorDetails > & GetErrors() const
const Aws::String & GetMessage() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
ConflictException & WithCode(const Aws::String &value)
ConflictException & AddErrors(const ErrorDetails &value)
ConflictException & WithResourceId(const Aws::String &value)
ConflictException & AddErrors(ErrorDetails &&value)
void SetErrors(const Aws::Vector< ErrorDetails > &value)
ConflictException & WithCode(Aws::String &&value)
ConflictException & WithMessage(const Aws::String &value)
ConflictException & WithMessage(const char *value)
ConflictException & WithResourceType(const Aws::String &value)
ConflictException & WithErrors(Aws::Vector< ErrorDetails > &&value)
ConflictException & WithResourceType(Aws::String &&value)
ConflictException & WithResourceId(const char *value)
ConflictException & WithErrors(const Aws::Vector< ErrorDetails > &value)
void SetCode(Aws::String &&value)
ConflictException & WithMessage(Aws::String &&value)
AWS_MGN_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & WithResourceId(Aws::String &&value)
ConflictException & WithCode(const char *value)
void SetErrors(Aws::Vector< ErrorDetails > &&value)
void SetCode(const Aws::String &value)
void SetResourceType(const char *value)
void SetMessage(const Aws::String &value)
void SetResourceId(const Aws::String &value)
void SetResourceId(Aws::String &&value)
void SetResourceId(const char *value)
const Aws::String & GetResourceType() const
void SetResourceType(Aws::String &&value)
AWS_MGN_API ConflictException & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCode() const
const Aws::String & GetResourceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue