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/opensearch/OpenSearchService_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 OpenSearchService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API ErrorDetails();
36 AWS_OPENSEARCHSERVICE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API ErrorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetErrorType() const{ return m_errorType; }
46 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
47 inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
48 inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); }
49 inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); }
50 inline ErrorDetails& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;}
51 inline ErrorDetails& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;}
52 inline ErrorDetails& WithErrorType(const char* value) { SetErrorType(value); return *this;}
54
56
59 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
60 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
61 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
62 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
63 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
64 inline ErrorDetails& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
65 inline ErrorDetails& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
66 inline ErrorDetails& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
68 private:
69
70 Aws::String m_errorType;
71 bool m_errorTypeHasBeenSet = false;
72
73 Aws::String m_errorMessage;
74 bool m_errorMessageHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace OpenSearchService
79} // namespace Aws
ErrorDetails & WithErrorMessage(const char *value)
ErrorDetails & WithErrorType(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorMessage() const
ErrorDetails & WithErrorMessage(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API ErrorDetails(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(Aws::String &&value)
ErrorDetails & WithErrorType(const char *value)
AWS_OPENSEARCHSERVICE_API ErrorDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(const Aws::String &value)
const Aws::String & GetErrorType() const
AWS_OPENSEARCHSERVICE_API ErrorDetails()
ErrorDetails & WithErrorMessage(Aws::String &&value)
void SetErrorType(const Aws::String &value)
ErrorDetails & WithErrorType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue