7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mgn/Mgn_EXPORTS.h>
10#include <aws/mgn/model/ErrorDetails.h>
41 template <
typename MessageT = Aws::String>
43 m_messageHasBeenSet =
true;
44 m_message = std::forward<MessageT>(value);
46 template <
typename MessageT = Aws::String>
57 template <
typename CodeT = Aws::String>
59 m_codeHasBeenSet =
true;
60 m_code = std::forward<CodeT>(value);
62 template <
typename CodeT = Aws::String>
64 SetCode(std::forward<CodeT>(value));
75 template <
typename ResourceIdT = Aws::String>
77 m_resourceIdHasBeenSet =
true;
78 m_resourceId = std::forward<ResourceIdT>(value);
80 template <
typename ResourceIdT = Aws::String>
93 template <
typename ResourceTypeT = Aws::String>
95 m_resourceTypeHasBeenSet =
true;
96 m_resourceType = std::forward<ResourceTypeT>(value);
98 template <
typename ResourceTypeT = Aws::String>
111 template <
typename ErrorsT = Aws::Vector<ErrorDetails>>
113 m_errorsHasBeenSet =
true;
114 m_errors = std::forward<ErrorsT>(value);
116 template <
typename ErrorsT = Aws::Vector<ErrorDetails>>
121 template <
typename ErrorsT = ErrorDetails>
123 m_errorsHasBeenSet =
true;
124 m_errors.emplace_back(std::forward<ErrorsT>(value));
138 bool m_messageHasBeenSet =
false;
139 bool m_codeHasBeenSet =
false;
140 bool m_resourceIdHasBeenSet =
false;
141 bool m_resourceTypeHasBeenSet =
false;
142 bool m_errorsHasBeenSet =
false;
ConflictException & WithErrors(ErrorsT &&value)
const Aws::Vector< ErrorDetails > & GetErrors() const
const Aws::String & GetMessage() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceId(ResourceIdT &&value)
bool ErrorsHasBeenSet() const
AWS_MGN_API ConflictException()=default
void SetResourceType(ResourceTypeT &&value)
AWS_MGN_API ConflictException(Aws::Utils::Json::JsonView jsonValue)
ConflictException & AddErrors(ErrorsT &&value)
ConflictException & WithResourceType(ResourceTypeT &&value)
bool ResourceTypeHasBeenSet() const
bool CodeHasBeenSet() const
ConflictException & WithCode(CodeT &&value)
ConflictException & WithResourceId(ResourceIdT &&value)
void SetMessage(MessageT &&value)
ConflictException & WithMessage(MessageT &&value)
bool MessageHasBeenSet() const
void SetCode(CodeT &&value)
const Aws::String & GetResourceType() const
void SetErrors(ErrorsT &&value)
bool ResourceIdHasBeenSet() const
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