AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CollectionErrorDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail();
36 AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
46 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
47 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
48 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
49 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
50 inline CollectionErrorDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
51 inline CollectionErrorDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
52 inline CollectionErrorDetail& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
54
56
60 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
61 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
62 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
63 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
64 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 inline CollectionErrorDetail& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
66 inline CollectionErrorDetail& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
67 inline CollectionErrorDetail& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
69
71
75 inline const Aws::String& GetId() const{ return m_id; }
76 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
78 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
79 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
80 inline CollectionErrorDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
81 inline CollectionErrorDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
82 inline CollectionErrorDetail& WithId(const char* value) { SetId(value); return *this;}
84
86
90 inline const Aws::String& GetName() const{ return m_name; }
91 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
93 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
94 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
95 inline CollectionErrorDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
96 inline CollectionErrorDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
97 inline CollectionErrorDetail& WithName(const char* value) { SetName(value); return *this;}
99 private:
100
101 Aws::String m_errorCode;
102 bool m_errorCodeHasBeenSet = false;
103
104 Aws::String m_errorMessage;
105 bool m_errorMessageHasBeenSet = false;
106
107 Aws::String m_id;
108 bool m_idHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace OpenSearchServerless
116} // namespace Aws
CollectionErrorDetail & WithErrorCode(const char *value)
CollectionErrorDetail & WithErrorCode(Aws::String &&value)
CollectionErrorDetail & WithErrorMessage(Aws::String &&value)
CollectionErrorDetail & WithErrorCode(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionErrorDetail & WithId(const Aws::String &value)
CollectionErrorDetail & WithId(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionErrorDetail & WithName(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionErrorDetail()
CollectionErrorDetail & WithId(Aws::String &&value)
CollectionErrorDetail & WithErrorMessage(const char *value)
CollectionErrorDetail & WithName(const Aws::String &value)
CollectionErrorDetail & WithErrorMessage(const Aws::String &value)
CollectionErrorDetail & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue