AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
Insight.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/InsightPriorityLevel.h>
11#include <aws/opensearch/model/InsightStatus.h>
12#include <aws/opensearch/model/InsightType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
25
33class Insight {
34 public:
35 AWS_OPENSEARCHSERVICE_API Insight() = default;
36 AWS_OPENSEARCHSERVICE_API Insight(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API Insight& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetInsightId() const { return m_insightId; }
45 inline bool InsightIdHasBeenSet() const { return m_insightIdHasBeenSet; }
46 template <typename InsightIdT = Aws::String>
47 void SetInsightId(InsightIdT&& value) {
48 m_insightIdHasBeenSet = true;
49 m_insightId = std::forward<InsightIdT>(value);
50 }
51 template <typename InsightIdT = Aws::String>
52 Insight& WithInsightId(InsightIdT&& value) {
53 SetInsightId(std::forward<InsightIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template <typename DisplayNameT = Aws::String>
65 void SetDisplayName(DisplayNameT&& value) {
66 m_displayNameHasBeenSet = true;
67 m_displayName = std::forward<DisplayNameT>(value);
68 }
69 template <typename DisplayNameT = Aws::String>
70 Insight& WithDisplayName(DisplayNameT&& value) {
71 SetDisplayName(std::forward<DisplayNameT>(value));
72 return *this;
73 }
75
77
81 inline InsightType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(InsightType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
87 inline Insight& WithType(InsightType value) {
88 SetType(value);
89 return *this;
90 }
92
94
98 inline InsightPriorityLevel GetPriority() const { return m_priority; }
99 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
101 m_priorityHasBeenSet = true;
102 m_priority = value;
103 }
105 SetPriority(value);
106 return *this;
107 }
109
111
115 inline InsightStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(InsightStatus value) {
118 m_statusHasBeenSet = true;
119 m_status = value;
120 }
122 SetStatus(value);
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
132 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
133 template <typename CreationTimeT = Aws::Utils::DateTime>
134 void SetCreationTime(CreationTimeT&& value) {
135 m_creationTimeHasBeenSet = true;
136 m_creationTime = std::forward<CreationTimeT>(value);
137 }
138 template <typename CreationTimeT = Aws::Utils::DateTime>
139 Insight& WithCreationTime(CreationTimeT&& value) {
140 SetCreationTime(std::forward<CreationTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
150 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
151 template <typename UpdateTimeT = Aws::Utils::DateTime>
152 void SetUpdateTime(UpdateTimeT&& value) {
153 m_updateTimeHasBeenSet = true;
154 m_updateTime = std::forward<UpdateTimeT>(value);
155 }
156 template <typename UpdateTimeT = Aws::Utils::DateTime>
157 Insight& WithUpdateTime(UpdateTimeT&& value) {
158 SetUpdateTime(std::forward<UpdateTimeT>(value));
159 return *this;
160 }
162
164
167 inline bool GetIsExperimental() const { return m_isExperimental; }
168 inline bool IsExperimentalHasBeenSet() const { return m_isExperimentalHasBeenSet; }
169 inline void SetIsExperimental(bool value) {
170 m_isExperimentalHasBeenSet = true;
171 m_isExperimental = value;
172 }
173 inline Insight& WithIsExperimental(bool value) {
174 SetIsExperimental(value);
175 return *this;
176 }
178 private:
179 Aws::String m_insightId;
180
181 Aws::String m_displayName;
182
184
186
188
189 Aws::Utils::DateTime m_creationTime{};
190
191 Aws::Utils::DateTime m_updateTime{};
192
193 bool m_isExperimental{false};
194 bool m_insightIdHasBeenSet = false;
195 bool m_displayNameHasBeenSet = false;
196 bool m_typeHasBeenSet = false;
197 bool m_priorityHasBeenSet = false;
198 bool m_statusHasBeenSet = false;
199 bool m_creationTimeHasBeenSet = false;
200 bool m_updateTimeHasBeenSet = false;
201 bool m_isExperimentalHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace OpenSearchService
206} // namespace Aws
InsightPriorityLevel GetPriority() const
Definition Insight.h:98
void SetCreationTime(CreationTimeT &&value)
Definition Insight.h:134
InsightStatus GetStatus() const
Definition Insight.h:115
Insight & WithCreationTime(CreationTimeT &&value)
Definition Insight.h:139
const Aws::Utils::DateTime & GetCreationTime() const
Definition Insight.h:131
void SetPriority(InsightPriorityLevel value)
Definition Insight.h:100
void SetUpdateTime(UpdateTimeT &&value)
Definition Insight.h:152
void SetDisplayName(DisplayNameT &&value)
Definition Insight.h:65
Insight & WithType(InsightType value)
Definition Insight.h:87
Insight & WithDisplayName(DisplayNameT &&value)
Definition Insight.h:70
Insight & WithIsExperimental(bool value)
Definition Insight.h:173
Insight & WithUpdateTime(UpdateTimeT &&value)
Definition Insight.h:157
AWS_OPENSEARCHSERVICE_API Insight()=default
void SetType(InsightType value)
Definition Insight.h:83
AWS_OPENSEARCHSERVICE_API Insight & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInsightId(InsightIdT &&value)
Definition Insight.h:47
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetInsightId() const
Definition Insight.h:44
Insight & WithInsightId(InsightIdT &&value)
Definition Insight.h:52
const Aws::String & GetDisplayName() const
Definition Insight.h:62
Insight & WithStatus(InsightStatus value)
Definition Insight.h:121
const Aws::Utils::DateTime & GetUpdateTime() const
Definition Insight.h:149
void SetStatus(InsightStatus value)
Definition Insight.h:117
Insight & WithPriority(InsightPriorityLevel value)
Definition Insight.h:104
AWS_OPENSEARCHSERVICE_API Insight(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue