AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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