AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
CollectionGroupErrorDetail.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
28 public:
29 AWS_OPENSEARCHSERVERLESS_API CollectionGroupErrorDetail() = default;
30 AWS_OPENSEARCHSERVERLESS_API CollectionGroupErrorDetail(Aws::Utils::Json::JsonView jsonValue);
31 AWS_OPENSEARCHSERVERLESS_API CollectionGroupErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
78 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
79 template <typename ErrorMessageT = Aws::String>
80 void SetErrorMessage(ErrorMessageT&& value) {
81 m_errorMessageHasBeenSet = true;
82 m_errorMessage = std::forward<ErrorMessageT>(value);
83 }
84 template <typename ErrorMessageT = Aws::String>
86 SetErrorMessage(std::forward<ErrorMessageT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
96 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
97 template <typename ErrorCodeT = Aws::String>
98 void SetErrorCode(ErrorCodeT&& value) {
99 m_errorCodeHasBeenSet = true;
100 m_errorCode = std::forward<ErrorCodeT>(value);
101 }
102 template <typename ErrorCodeT = Aws::String>
104 SetErrorCode(std::forward<ErrorCodeT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_id;
110
111 Aws::String m_name;
112
113 Aws::String m_errorMessage;
114
115 Aws::String m_errorCode;
116 bool m_idHasBeenSet = false;
117 bool m_nameHasBeenSet = false;
118 bool m_errorMessageHasBeenSet = false;
119 bool m_errorCodeHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace OpenSearchServerless
124} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API CollectionGroupErrorDetail()=default
CollectionGroupErrorDetail & WithErrorCode(ErrorCodeT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupErrorDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionGroupErrorDetail & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue