AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
InsightResult.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/InsightRootCause.h>
9#include <aws/bedrock-agentcore/model/InsightType.h>
10#include <aws/bedrock-agentcore/model/SampleSession.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentCore {
25namespace Model {
26
34 public:
35 AWS_BEDROCKAGENTCORE_API InsightResult() = default;
36 AWS_BEDROCKAGENTCORE_API InsightResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTCORE_API InsightResult& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline InsightType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(InsightType value) {
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 InsightResult& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 InsightResult& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 InsightResult& WithCreatedAt(CreatedAtT&& value) {
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
116 inline int GetAffectedSessionCount() const { return m_affectedSessionCount; }
117 inline bool AffectedSessionCountHasBeenSet() const { return m_affectedSessionCountHasBeenSet; }
118 inline void SetAffectedSessionCount(int value) {
119 m_affectedSessionCountHasBeenSet = true;
120 m_affectedSessionCount = value;
121 }
124 return *this;
125 }
127
129
134 inline const Aws::Vector<SampleSession>& GetSampleSessions() const { return m_sampleSessions; }
135 inline bool SampleSessionsHasBeenSet() const { return m_sampleSessionsHasBeenSet; }
136 template <typename SampleSessionsT = Aws::Vector<SampleSession>>
137 void SetSampleSessions(SampleSessionsT&& value) {
138 m_sampleSessionsHasBeenSet = true;
139 m_sampleSessions = std::forward<SampleSessionsT>(value);
140 }
141 template <typename SampleSessionsT = Aws::Vector<SampleSession>>
142 InsightResult& WithSampleSessions(SampleSessionsT&& value) {
143 SetSampleSessions(std::forward<SampleSessionsT>(value));
144 return *this;
145 }
146 template <typename SampleSessionsT = SampleSession>
147 InsightResult& AddSampleSessions(SampleSessionsT&& value) {
148 m_sampleSessionsHasBeenSet = true;
149 m_sampleSessions.emplace_back(std::forward<SampleSessionsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<InsightRootCause>& GetRootCauses() const { return m_rootCauses; }
159 inline bool RootCausesHasBeenSet() const { return m_rootCausesHasBeenSet; }
160 template <typename RootCausesT = Aws::Vector<InsightRootCause>>
161 void SetRootCauses(RootCausesT&& value) {
162 m_rootCausesHasBeenSet = true;
163 m_rootCauses = std::forward<RootCausesT>(value);
164 }
165 template <typename RootCausesT = Aws::Vector<InsightRootCause>>
166 InsightResult& WithRootCauses(RootCausesT&& value) {
167 SetRootCauses(std::forward<RootCausesT>(value));
168 return *this;
169 }
170 template <typename RootCausesT = InsightRootCause>
171 InsightResult& AddRootCauses(RootCausesT&& value) {
172 m_rootCausesHasBeenSet = true;
173 m_rootCauses.emplace_back(std::forward<RootCausesT>(value));
174 return *this;
175 }
177 private:
179
180 Aws::String m_name;
181
182 Aws::String m_description;
183
184 Aws::Utils::DateTime m_createdAt{};
185
186 int m_affectedSessionCount{0};
187
188 Aws::Vector<SampleSession> m_sampleSessions;
189
191 bool m_typeHasBeenSet = false;
192 bool m_nameHasBeenSet = false;
193 bool m_descriptionHasBeenSet = false;
194 bool m_createdAtHasBeenSet = false;
195 bool m_affectedSessionCountHasBeenSet = false;
196 bool m_sampleSessionsHasBeenSet = false;
197 bool m_rootCausesHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace BedrockAgentCore
202} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
InsightResult & WithCreatedAt(CreatedAtT &&value)
void SetSampleSessions(SampleSessionsT &&value)
AWS_BEDROCKAGENTCORE_API InsightResult()=default
InsightResult & AddSampleSessions(SampleSessionsT &&value)
InsightResult & WithRootCauses(RootCausesT &&value)
InsightResult & WithAffectedSessionCount(int value)
void SetDescription(DescriptionT &&value)
InsightResult & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENTCORE_API InsightResult(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API InsightResult & operator=(Aws::Utils::Json::JsonView jsonValue)
InsightResult & AddRootCauses(RootCausesT &&value)
InsightResult & WithName(NameT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< InsightRootCause > & GetRootCauses() const
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
InsightResult & WithType(InsightType value)
const Aws::Vector< SampleSession > & GetSampleSessions() const
InsightResult & WithSampleSessions(SampleSessionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue