AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EffectiveLifecyclePolicyErrorDetail.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 EffectiveLifecyclePolicyErrorDetail();
37 AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyErrorDetail(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 EffectiveLifecyclePolicyErrorDetail& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
52 inline EffectiveLifecyclePolicyErrorDetail& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
53 inline EffectiveLifecyclePolicyErrorDetail& 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); }
67 inline EffectiveLifecyclePolicyErrorDetail& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
68 inline EffectiveLifecyclePolicyErrorDetail& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
70
72
75 inline const Aws::String& GetResource() const{ return m_resource; }
76 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
77 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
78 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
79 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
80 inline EffectiveLifecyclePolicyErrorDetail& WithResource(const Aws::String& value) { SetResource(value); return *this;}
81 inline EffectiveLifecyclePolicyErrorDetail& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
82 inline EffectiveLifecyclePolicyErrorDetail& WithResource(const char* value) { SetResource(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 EffectiveLifecyclePolicyErrorDetail& WithType(const LifecyclePolicyType& value) { SetType(value); return *this;}
94 inline EffectiveLifecyclePolicyErrorDetail& 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_resource;
105 bool m_resourceHasBeenSet = false;
106
107 LifecyclePolicyType m_type;
108 bool m_typeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace OpenSearchServerless
113} // namespace Aws
EffectiveLifecyclePolicyErrorDetail & WithResource(const Aws::String &value)
EffectiveLifecyclePolicyErrorDetail & WithErrorMessage(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyErrorDetail(Aws::Utils::Json::JsonView jsonValue)
EffectiveLifecyclePolicyErrorDetail & WithErrorCode(Aws::String &&value)
EffectiveLifecyclePolicyErrorDetail & WithType(LifecyclePolicyType &&value)
EffectiveLifecyclePolicyErrorDetail & WithErrorCode(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API EffectiveLifecyclePolicyErrorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectiveLifecyclePolicyErrorDetail & WithType(const LifecyclePolicyType &value)
EffectiveLifecyclePolicyErrorDetail & WithResource(Aws::String &&value)
EffectiveLifecyclePolicyErrorDetail & WithErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue