AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
40 inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); }
41 inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); }
42 inline ErrorDetails& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;}
43 inline ErrorDetails& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;}
44 inline ErrorDetails& WithErrorType(const char* value) { SetErrorType(value); return *this;}
46
48
49 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
50 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
51 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
52 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
53 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
54 inline ErrorDetails& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
55 inline ErrorDetails& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
56 inline ErrorDetails& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
58 private:
59
60 Aws::String m_errorType;
61 bool m_errorTypeHasBeenSet = false;
62
63 Aws::String m_errorMessage;
64 bool m_errorMessageHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace ElasticsearchService
69} // namespace Aws
void SetErrorType(const Aws::String &value)
ErrorDetails & WithErrorMessage(Aws::String &&value)
ErrorDetails & WithErrorType(const char *value)
AWS_ELASTICSEARCHSERVICE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
ErrorDetails & WithErrorMessage(const char *value)
ErrorDetails & WithErrorType(Aws::String &&value)
ErrorDetails & WithErrorType(const Aws::String &value)
AWS_ELASTICSEARCHSERVICE_API ErrorDetails()
const Aws::String & GetErrorMessage() const
void SetErrorMessage(const Aws::String &value)
AWS_ELASTICSEARCHSERVICE_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorDetails & WithErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue