AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/ErrorCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
31 public:
32 AWS_EKS_API ErrorDetail() = default;
36
38
52 inline ErrorCode GetErrorCode() const { return m_errorCode; }
53 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
54 inline void SetErrorCode(ErrorCode value) {
55 m_errorCodeHasBeenSet = true;
56 m_errorCode = value;
57 }
59 SetErrorCode(value);
60 return *this;
61 }
63
65
68 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
69 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
70 template <typename ErrorMessageT = Aws::String>
71 void SetErrorMessage(ErrorMessageT&& value) {
72 m_errorMessageHasBeenSet = true;
73 m_errorMessage = std::forward<ErrorMessageT>(value);
74 }
75 template <typename ErrorMessageT = Aws::String>
76 ErrorDetail& WithErrorMessage(ErrorMessageT&& value) {
77 SetErrorMessage(std::forward<ErrorMessageT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
88 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
89 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
90 void SetResourceIds(ResourceIdsT&& value) {
91 m_resourceIdsHasBeenSet = true;
92 m_resourceIds = std::forward<ResourceIdsT>(value);
93 }
94 template <typename ResourceIdsT = Aws::Vector<Aws::String>>
95 ErrorDetail& WithResourceIds(ResourceIdsT&& value) {
96 SetResourceIds(std::forward<ResourceIdsT>(value));
97 return *this;
98 }
99 template <typename ResourceIdsT = Aws::String>
100 ErrorDetail& AddResourceIds(ResourceIdsT&& value) {
101 m_resourceIdsHasBeenSet = true;
102 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
103 return *this;
104 }
106 private:
107 ErrorCode m_errorCode{ErrorCode::NOT_SET};
108
109 Aws::String m_errorMessage;
110
111 Aws::Vector<Aws::String> m_resourceIds;
112 bool m_errorCodeHasBeenSet = false;
113 bool m_errorMessageHasBeenSet = false;
114 bool m_resourceIdsHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace EKS
119} // namespace Aws
ErrorDetail & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:76
AWS_EKS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(ErrorCode value)
Definition ErrorDetail.h:54
AWS_EKS_API ErrorDetail()=default
void SetErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:71
bool ErrorMessageHasBeenSet() const
Definition ErrorDetail.h:69
AWS_EKS_API ErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorMessage() const
Definition ErrorDetail.h:68
const Aws::Vector< Aws::String > & GetResourceIds() const
Definition ErrorDetail.h:87
ErrorDetail & WithErrorCode(ErrorCode value)
Definition ErrorDetail.h:58
bool ResourceIdsHasBeenSet() const
Definition ErrorDetail.h:88
void SetResourceIds(ResourceIdsT &&value)
Definition ErrorDetail.h:90
ErrorDetail & WithResourceIds(ResourceIdsT &&value)
Definition ErrorDetail.h:95
ErrorDetail & AddResourceIds(ResourceIdsT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorCode GetErrorCode() const
Definition ErrorDetail.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue