AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR {
22namespace Model {
23
31 public:
32 AWS_EMR_API ErrorDetail() = default;
36
38
41 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
42 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
43 template <typename ErrorCodeT = Aws::String>
44 void SetErrorCode(ErrorCodeT&& value) {
45 m_errorCodeHasBeenSet = true;
46 m_errorCode = std::forward<ErrorCodeT>(value);
47 }
48 template <typename ErrorCodeT = Aws::String>
49 ErrorDetail& WithErrorCode(ErrorCodeT&& value) {
50 SetErrorCode(std::forward<ErrorCodeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetErrorData() const { return m_errorData; }
61 inline bool ErrorDataHasBeenSet() const { return m_errorDataHasBeenSet; }
62 template <typename ErrorDataT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
63 void SetErrorData(ErrorDataT&& value) {
64 m_errorDataHasBeenSet = true;
65 m_errorData = std::forward<ErrorDataT>(value);
66 }
67 template <typename ErrorDataT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
68 ErrorDetail& WithErrorData(ErrorDataT&& value) {
69 SetErrorData(std::forward<ErrorDataT>(value));
70 return *this;
71 }
72 template <typename ErrorDataT = Aws::Map<Aws::String, Aws::String>>
73 ErrorDetail& AddErrorData(ErrorDataT&& value) {
74 m_errorDataHasBeenSet = true;
75 m_errorData.emplace_back(std::forward<ErrorDataT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
85 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
86 template <typename ErrorMessageT = Aws::String>
87 void SetErrorMessage(ErrorMessageT&& value) {
88 m_errorMessageHasBeenSet = true;
89 m_errorMessage = std::forward<ErrorMessageT>(value);
90 }
91 template <typename ErrorMessageT = Aws::String>
92 ErrorDetail& WithErrorMessage(ErrorMessageT&& value) {
93 SetErrorMessage(std::forward<ErrorMessageT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_errorCode;
99
101
102 Aws::String m_errorMessage;
103 bool m_errorCodeHasBeenSet = false;
104 bool m_errorDataHasBeenSet = false;
105 bool m_errorMessageHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace EMR
110} // namespace Aws
ErrorDetail & WithErrorCode(ErrorCodeT &&value)
Definition ErrorDetail.h:49
void SetErrorCode(ErrorCodeT &&value)
Definition ErrorDetail.h:44
ErrorDetail & WithErrorData(ErrorDataT &&value)
Definition ErrorDetail.h:68
void SetErrorData(ErrorDataT &&value)
Definition ErrorDetail.h:63
AWS_EMR_API ErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetErrorData() const
Definition ErrorDetail.h:60
bool ErrorMessageHasBeenSet() const
Definition ErrorDetail.h:85
ErrorDetail & AddErrorData(ErrorDataT &&value)
Definition ErrorDetail.h:73
ErrorDetail & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:92
const Aws::String & GetErrorCode() const
Definition ErrorDetail.h:41
const Aws::String & GetErrorMessage() const
Definition ErrorDetail.h:84
AWS_EMR_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API ErrorDetail()=default
void SetErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:87
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() 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