AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
47 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
48 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
49 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
50 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
51 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
52 inline ErrorDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
53 inline ErrorDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
54 inline ErrorDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& GetErrorData() const{ return m_errorData; }
63 inline bool ErrorDataHasBeenSet() const { return m_errorDataHasBeenSet; }
64 inline void SetErrorData(const Aws::Vector<Aws::Map<Aws::String, Aws::String>>& value) { m_errorDataHasBeenSet = true; m_errorData = value; }
65 inline void SetErrorData(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { m_errorDataHasBeenSet = true; m_errorData = std::move(value); }
67 inline ErrorDetail& WithErrorData(Aws::Vector<Aws::Map<Aws::String, Aws::String>>&& value) { SetErrorData(std::move(value)); return *this;}
68 inline ErrorDetail& AddErrorData(const Aws::Map<Aws::String, Aws::String>& value) { m_errorDataHasBeenSet = true; m_errorData.push_back(value); return *this; }
69 inline ErrorDetail& AddErrorData(Aws::Map<Aws::String, Aws::String>&& value) { m_errorDataHasBeenSet = true; m_errorData.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
77 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
78 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
79 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
80 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
81 inline ErrorDetail& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
82 inline ErrorDetail& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
83 inline ErrorDetail& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
85 private:
86
87 Aws::String m_errorCode;
88 bool m_errorCodeHasBeenSet = false;
89
91 bool m_errorDataHasBeenSet = false;
92
93 Aws::String m_errorMessage;
94 bool m_errorMessageHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EMR
99} // namespace Aws
ErrorDetail & WithErrorMessage(const Aws::String &value)
Definition ErrorDetail.h:81
ErrorDetail & AddErrorData(const Aws::Map< Aws::String, Aws::String > &value)
Definition ErrorDetail.h:68
ErrorDetail & WithErrorCode(const Aws::String &value)
Definition ErrorDetail.h:52
void SetErrorData(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
Definition ErrorDetail.h:65
AWS_EMR_API ErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
ErrorDetail & WithErrorCode(const char *value)
Definition ErrorDetail.h:54
ErrorDetail & AddErrorData(Aws::Map< Aws::String, Aws::String > &&value)
Definition ErrorDetail.h:69
void SetErrorMessage(const char *value)
Definition ErrorDetail.h:80
ErrorDetail & WithErrorMessage(const char *value)
Definition ErrorDetail.h:83
ErrorDetail & WithErrorData(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
Definition ErrorDetail.h:66
void SetErrorData(const Aws::Vector< Aws::Map< Aws::String, Aws::String > > &value)
Definition ErrorDetail.h:64
void SetErrorCode(const char *value)
Definition ErrorDetail.h:51
ErrorDetail & WithErrorCode(Aws::String &&value)
Definition ErrorDetail.h:53
const Aws::Vector< Aws::Map< Aws::String, Aws::String > > & GetErrorData() const
Definition ErrorDetail.h:62
void SetErrorCode(Aws::String &&value)
Definition ErrorDetail.h:50
void SetErrorMessage(Aws::String &&value)
Definition ErrorDetail.h:79
bool ErrorMessageHasBeenSet() const
Definition ErrorDetail.h:77
const Aws::String & GetErrorCode() const
Definition ErrorDetail.h:47
const Aws::String & GetErrorMessage() const
Definition ErrorDetail.h:76
AWS_EMR_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
ErrorDetail & WithErrorMessage(Aws::String &&value)
Definition ErrorDetail.h:82
void SetErrorMessage(const Aws::String &value)
Definition ErrorDetail.h:78
ErrorDetail & WithErrorData(Aws::Vector< Aws::Map< Aws::String, Aws::String > > &&value)
Definition ErrorDetail.h:67
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorCode(const Aws::String &value)
Definition ErrorDetail.h:49
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue