AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMR
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EMR_API ErrorDetail() = default;
41
42
44
47 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 template<typename ErrorCodeT = Aws::String>
50 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
51 template<typename ErrorCodeT = Aws::String>
52 ErrorDetail& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
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) { m_errorDataHasBeenSet = true; m_errorData = std::forward<ErrorDataT>(value); }
64 template<typename ErrorDataT = Aws::Vector<Aws::Map<Aws::String, Aws::String>>>
65 ErrorDetail& WithErrorData(ErrorDataT&& value) { SetErrorData(std::forward<ErrorDataT>(value)); return *this;}
66 template<typename ErrorDataT = Aws::Map<Aws::String, Aws::String>>
67 ErrorDetail& AddErrorData(ErrorDataT&& value) { m_errorDataHasBeenSet = true; m_errorData.emplace_back(std::forward<ErrorDataT>(value)); return *this; }
69
71
74 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
75 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
76 template<typename ErrorMessageT = Aws::String>
77 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
78 template<typename ErrorMessageT = Aws::String>
79 ErrorDetail& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
81 private:
82
83 Aws::String m_errorCode;
84 bool m_errorCodeHasBeenSet = false;
85
87 bool m_errorDataHasBeenSet = false;
88
89 Aws::String m_errorMessage;
90 bool m_errorMessageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EMR
95} // namespace Aws
ErrorDetail & WithErrorCode(ErrorCodeT &&value)
Definition ErrorDetail.h:52
void SetErrorCode(ErrorCodeT &&value)
Definition ErrorDetail.h:50
ErrorDetail & WithErrorData(ErrorDataT &&value)
Definition ErrorDetail.h:65
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:75
ErrorDetail & AddErrorData(ErrorDataT &&value)
Definition ErrorDetail.h:67
ErrorDetail & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:79
const Aws::String & GetErrorCode() const
Definition ErrorDetail.h:47
const Aws::String & GetErrorMessage() const
Definition ErrorDetail.h:74
AWS_EMR_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API ErrorDetail()=default
void SetErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:77
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