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>
47 template<
typename CodeT = Aws::String>
48 void SetCode(CodeT&& value) { m_codeHasBeenSet =
true; m_code = std::forward<CodeT>(value); }
49 template<
typename CodeT = Aws::String>
59 template<
typename ErrorsT = Aws::Vector<ErrorDetails>>
60 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet =
true; m_errors = std::forward<ErrorsT>(value); }
61 template<
typename ErrorsT = Aws::Vector<ErrorDetails>>
63 template<
typename ErrorsT = ErrorDetails>
64 ConflictException&
AddErrors(ErrorsT&& value) { m_errorsHasBeenSet =
true; m_errors.emplace_back(std::forward<ErrorsT>(value));
return *
this; }
71 template<
typename MessageT = Aws::String>
72 void SetMessage(MessageT&& value) { m_messageHasBeenSet =
true; m_message = std::forward<MessageT>(value); }
73 template<
typename MessageT = Aws::String>
83 template<
typename ResourceIdT = Aws::String>
84 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
85 template<
typename ResourceIdT = Aws::String>
95 template<
typename ResourceTypeT = Aws::String>
96 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet =
true; m_resourceType = std::forward<ResourceTypeT>(value); }
97 template<
typename ResourceTypeT = Aws::String>
103 bool m_codeHasBeenSet =
false;
106 bool m_errorsHasBeenSet =
false;
109 bool m_messageHasBeenSet =
false;
112 bool m_resourceIdHasBeenSet =
false;
115 bool m_resourceTypeHasBeenSet =
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