AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ErrorDetails.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElasticsearchService
22{
23namespace Model
24{
25
27 {
28 public:
29 AWS_ELASTICSEARCHSERVICE_API ErrorDetails() = default;
30 AWS_ELASTICSEARCHSERVICE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue);
31 AWS_ELASTICSEARCHSERVICE_API ErrorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
34
36
37 inline const Aws::String& GetErrorType() const { return m_errorType; }
38 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
39 template<typename ErrorTypeT = Aws::String>
40 void SetErrorType(ErrorTypeT&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::forward<ErrorTypeT>(value); }
41 template<typename ErrorTypeT = Aws::String>
42 ErrorDetails& WithErrorType(ErrorTypeT&& value) { SetErrorType(std::forward<ErrorTypeT>(value)); return *this;}
44
46
47 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
48 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
49 template<typename ErrorMessageT = Aws::String>
50 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
51 template<typename ErrorMessageT = Aws::String>
52 ErrorDetails& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
54 private:
55
56 Aws::String m_errorType;
57 bool m_errorTypeHasBeenSet = false;
58
59 Aws::String m_errorMessage;
60 bool m_errorMessageHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace ElasticsearchService
65} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API ErrorDetails()=default
AWS_ELASTICSEARCHSERVICE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
ErrorDetails & WithErrorMessage(ErrorMessageT &&value)
ErrorDetails & WithErrorType(ErrorTypeT &&value)
void SetErrorMessage(ErrorMessageT &&value)
const Aws::String & GetErrorMessage() const
AWS_ELASTICSEARCHSERVICE_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue