AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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