AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LifecyclePolicyErrorDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchServerless {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyErrorDetail() = default;
32 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyErrorDetail(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyErrorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline LifecyclePolicyType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(LifecyclePolicyType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
76 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
77 template <typename ErrorMessageT = Aws::String>
78 void SetErrorMessage(ErrorMessageT&& value) {
79 m_errorMessageHasBeenSet = true;
80 m_errorMessage = std::forward<ErrorMessageT>(value);
81 }
82 template <typename ErrorMessageT = Aws::String>
84 SetErrorMessage(std::forward<ErrorMessageT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
94 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
95 template <typename ErrorCodeT = Aws::String>
96 void SetErrorCode(ErrorCodeT&& value) {
97 m_errorCodeHasBeenSet = true;
98 m_errorCode = std::forward<ErrorCodeT>(value);
99 }
100 template <typename ErrorCodeT = Aws::String>
102 SetErrorCode(std::forward<ErrorCodeT>(value));
103 return *this;
104 }
106 private:
108
109 Aws::String m_name;
110
111 Aws::String m_errorMessage;
112
113 Aws::String m_errorCode;
114 bool m_typeHasBeenSet = false;
115 bool m_nameHasBeenSet = false;
116 bool m_errorMessageHasBeenSet = false;
117 bool m_errorCodeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace OpenSearchServerless
122} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyErrorDetail()=default
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API LifecyclePolicyErrorDetail(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyErrorDetail & WithErrorCode(ErrorCodeT &&value)
LifecyclePolicyErrorDetail & WithErrorMessage(ErrorMessageT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyErrorDetail & WithType(LifecyclePolicyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue