AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorDetail.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 EKS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EKS_API ErrorDetail() = default;
41
42
44
58 inline ErrorCode GetErrorCode() const { return m_errorCode; }
59 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
60 inline void SetErrorCode(ErrorCode value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
61 inline ErrorDetail& WithErrorCode(ErrorCode value) { SetErrorCode(value); return *this;}
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) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
72 template<typename ErrorMessageT = Aws::String>
73 ErrorDetail& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
75
77
81 inline const Aws::Vector<Aws::String>& GetResourceIds() const { return m_resourceIds; }
82 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
83 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
84 void SetResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::forward<ResourceIdsT>(value); }
85 template<typename ResourceIdsT = Aws::Vector<Aws::String>>
86 ErrorDetail& WithResourceIds(ResourceIdsT&& value) { SetResourceIds(std::forward<ResourceIdsT>(value)); return *this;}
87 template<typename ResourceIdsT = Aws::String>
88 ErrorDetail& AddResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value)); return *this; }
90 private:
91
92 ErrorCode m_errorCode{ErrorCode::NOT_SET};
93 bool m_errorCodeHasBeenSet = false;
94
95 Aws::String m_errorMessage;
96 bool m_errorMessageHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_resourceIds;
99 bool m_resourceIdsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace EKS
104} // namespace Aws
ErrorDetail & WithErrorMessage(ErrorMessageT &&value)
Definition ErrorDetail.h:73
AWS_EKS_API ErrorDetail(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(ErrorCode value)
Definition ErrorDetail.h:60
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:81
ErrorDetail & WithErrorCode(ErrorCode value)
Definition ErrorDetail.h:61
bool ResourceIdsHasBeenSet() const
Definition ErrorDetail.h:82
void SetResourceIds(ResourceIdsT &&value)
Definition ErrorDetail.h:84
ErrorDetail & WithResourceIds(ResourceIdsT &&value)
Definition ErrorDetail.h:86
ErrorDetail & AddResourceIds(ResourceIdsT &&value)
Definition ErrorDetail.h:88
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
ErrorCode GetErrorCode() const
Definition ErrorDetail.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue