AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CollectionErrorDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchServerless {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail() = default;
31 AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
79 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
80 template <typename ErrorMessageT = Aws::String>
81 void SetErrorMessage(ErrorMessageT&& value) {
82 m_errorMessageHasBeenSet = true;
83 m_errorMessage = std::forward<ErrorMessageT>(value);
84 }
85 template <typename ErrorMessageT = Aws::String>
86 CollectionErrorDetail& WithErrorMessage(ErrorMessageT&& value) {
87 SetErrorMessage(std::forward<ErrorMessageT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
97 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
98 template <typename ErrorCodeT = Aws::String>
99 void SetErrorCode(ErrorCodeT&& value) {
100 m_errorCodeHasBeenSet = true;
101 m_errorCode = std::forward<ErrorCodeT>(value);
102 }
103 template <typename ErrorCodeT = Aws::String>
105 SetErrorCode(std::forward<ErrorCodeT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_id;
111
112 Aws::String m_name;
113
114 Aws::String m_errorMessage;
115
116 Aws::String m_errorCode;
117 bool m_idHasBeenSet = false;
118 bool m_nameHasBeenSet = false;
119 bool m_errorMessageHasBeenSet = false;
120 bool m_errorCodeHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace OpenSearchServerless
125} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionErrorDetail & WithErrorCode(ErrorCodeT &&value)
CollectionErrorDetail & WithErrorMessage(ErrorMessageT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue