AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
SessionFinding.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/FindingTargetType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgentCore {
21namespace Model {
22
29 public:
30 AWS_BEDROCKAGENTCORE_API SessionFinding() = default;
31 AWS_BEDROCKAGENTCORE_API SessionFinding(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKAGENTCORE_API SessionFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetTargetId() const { return m_targetId; }
41 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
42 template <typename TargetIdT = Aws::String>
43 void SetTargetId(TargetIdT&& value) {
44 m_targetIdHasBeenSet = true;
45 m_targetId = std::forward<TargetIdT>(value);
46 }
47 template <typename TargetIdT = Aws::String>
48 SessionFinding& WithTargetId(TargetIdT&& value) {
49 SetTargetId(std::forward<TargetIdT>(value));
50 return *this;
51 }
53
55
58 inline FindingTargetType GetTargetType() const { return m_targetType; }
59 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
60 inline void SetTargetType(FindingTargetType value) {
61 m_targetTypeHasBeenSet = true;
62 m_targetType = value;
63 }
65 SetTargetType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 SessionFinding& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetCategory() const { return m_category; }
93 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
94 template <typename CategoryT = Aws::String>
95 void SetCategory(CategoryT&& value) {
96 m_categoryHasBeenSet = true;
97 m_category = std::forward<CategoryT>(value);
98 }
99 template <typename CategoryT = Aws::String>
100 SessionFinding& WithCategory(CategoryT&& value) {
101 SetCategory(std::forward<CategoryT>(value));
102 return *this;
103 }
105
107
110 inline double GetConfidence() const { return m_confidence; }
111 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
112 inline void SetConfidence(double value) {
113 m_confidenceHasBeenSet = true;
114 m_confidence = value;
115 }
116 inline SessionFinding& WithConfidence(double value) {
117 SetConfidence(value);
118 return *this;
119 }
121 private:
122 Aws::String m_targetId;
123
125
126 Aws::String m_description;
127
128 Aws::String m_category;
129
130 double m_confidence{0.0};
131 bool m_targetIdHasBeenSet = false;
132 bool m_targetTypeHasBeenSet = false;
133 bool m_descriptionHasBeenSet = false;
134 bool m_categoryHasBeenSet = false;
135 bool m_confidenceHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace BedrockAgentCore
140} // namespace Aws
SessionFinding & WithTargetId(TargetIdT &&value)
AWS_BEDROCKAGENTCORE_API SessionFinding()=default
SessionFinding & WithConfidence(double value)
AWS_BEDROCKAGENTCORE_API SessionFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
SessionFinding & WithCategory(CategoryT &&value)
AWS_BEDROCKAGENTCORE_API SessionFinding(Aws::Utils::Json::JsonView jsonValue)
SessionFinding & WithTargetType(FindingTargetType value)
void SetTargetType(FindingTargetType value)
const Aws::String & GetDescription() const
SessionFinding & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue