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>
24namespace BedrockAgentCore {
48 m_typeHasBeenSet =
true;
64 template <
typename NameT = Aws::String>
66 m_nameHasBeenSet =
true;
67 m_name = std::forward<NameT>(value);
69 template <
typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
82 template <
typename DescriptionT = Aws::String>
84 m_descriptionHasBeenSet =
true;
85 m_description = std::forward<DescriptionT>(value);
87 template <
typename DescriptionT = Aws::String>
100 template <
typename CreatedAtT = Aws::Utils::DateTime>
102 m_createdAtHasBeenSet =
true;
103 m_createdAt = std::forward<CreatedAtT>(value);
105 template <
typename CreatedAtT = Aws::Utils::DateTime>
119 m_affectedSessionCountHasBeenSet =
true;
120 m_affectedSessionCount = value;
136 template <
typename SampleSessionsT = Aws::Vector<SampleSession>>
138 m_sampleSessionsHasBeenSet =
true;
139 m_sampleSessions = std::forward<SampleSessionsT>(value);
141 template <
typename SampleSessionsT = Aws::Vector<SampleSession>>
146 template <
typename SampleSessionsT = SampleSession>
148 m_sampleSessionsHasBeenSet =
true;
149 m_sampleSessions.emplace_back(std::forward<SampleSessionsT>(value));
160 template <
typename RootCausesT = Aws::Vector<InsightRootCause>>
162 m_rootCausesHasBeenSet =
true;
163 m_rootCauses = std::forward<RootCausesT>(value);
165 template <
typename RootCausesT = Aws::Vector<InsightRootCause>>
170 template <
typename RootCausesT = InsightRootCause>
172 m_rootCausesHasBeenSet =
true;
173 m_rootCauses.emplace_back(std::forward<RootCausesT>(value));
186 int m_affectedSessionCount{0};
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;
void SetRootCauses(RootCausesT &&value)
void SetName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
InsightResult & WithCreatedAt(CreatedAtT &&value)
void SetSampleSessions(SampleSessionsT &&value)
AWS_BEDROCKAGENTCORE_API InsightResult()=default
InsightResult & AddSampleSessions(SampleSessionsT &&value)
void SetType(InsightType value)
bool RootCausesHasBeenSet() const
InsightResult & WithRootCauses(RootCausesT &&value)
InsightResult & WithAffectedSessionCount(int value)
bool CreatedAtHasBeenSet() const
bool AffectedSessionCountHasBeenSet() const
int GetAffectedSessionCount() const
bool SampleSessionsHasBeenSet() const
void SetDescription(DescriptionT &&value)
bool TypeHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetName() const
InsightResult & WithDescription(DescriptionT &&value)
AWS_BEDROCKAGENTCORE_API InsightResult(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API InsightResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAffectedSessionCount(int value)
InsightResult & AddRootCauses(RootCausesT &&value)
InsightResult & WithName(NameT &&value)
const Aws::String & GetDescription() const
bool DescriptionHasBeenSet() const
const Aws::Vector< InsightRootCause > & GetRootCauses() const
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
InsightType GetType() const
InsightResult & WithType(InsightType value)
const Aws::Vector< SampleSession > & GetSampleSessions() const
bool NameHasBeenSet() 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