7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
20namespace OpenSearchServerless {
43 m_typeHasBeenSet =
true;
58 template <
typename NameT = Aws::String>
60 m_nameHasBeenSet =
true;
61 m_name = std::forward<NameT>(value);
63 template <
typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
77 template <
typename ErrorMessageT = Aws::String>
79 m_errorMessageHasBeenSet =
true;
80 m_errorMessage = std::forward<ErrorMessageT>(value);
82 template <
typename ErrorMessageT = Aws::String>
95 template <
typename ErrorCodeT = Aws::String>
97 m_errorCodeHasBeenSet =
true;
98 m_errorCode = std::forward<ErrorCodeT>(value);
100 template <
typename ErrorCodeT = Aws::String>
114 bool m_typeHasBeenSet =
false;
115 bool m_nameHasBeenSet =
false;
116 bool m_errorMessageHasBeenSet =
false;
117 bool m_errorCodeHasBeenSet =
false;
const Aws::String & GetName() const
const Aws::String & GetErrorCode() const
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)
bool TypeHasBeenSet() const
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
LifecyclePolicyErrorDetail & WithName(NameT &&value)
void SetType(LifecyclePolicyType value)
bool NameHasBeenSet() const
void SetErrorCode(ErrorCodeT &&value)
void SetErrorMessage(ErrorMessageT &&value)
const Aws::String & GetErrorMessage() const
LifecyclePolicyErrorDetail & WithType(LifecyclePolicyType value)
bool ErrorCodeHasBeenSet() const
bool ErrorMessageHasBeenSet() const
LifecyclePolicyType GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue