AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecyclePolicyErrorDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/LifecyclePolicyType.h>
9#include <aws/core/utils/memory/stl/AWSString.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() = default;
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 LifecyclePolicyType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(LifecyclePolicyType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline LifecyclePolicyErrorDetail& WithType(LifecyclePolicyType value) { SetType(value); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 LifecyclePolicyErrorDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
69 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
70 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
71 template<typename ErrorMessageT = Aws::String>
72 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
73 template<typename ErrorMessageT = Aws::String>
74 LifecyclePolicyErrorDetail& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
76
78
81 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
82 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
83 template<typename ErrorCodeT = Aws::String>
84 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
85 template<typename ErrorCodeT = Aws::String>
86 LifecyclePolicyErrorDetail& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
88 private:
89
91 bool m_typeHasBeenSet = false;
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 Aws::String m_errorMessage;
97 bool m_errorMessageHasBeenSet = false;
98
99 Aws::String m_errorCode;
100 bool m_errorCodeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace OpenSearchServerless
105} // 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