AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
RedactionSummary.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.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
30 public:
31 AWS_BEDROCKAGENTCORE_API RedactionSummary() = default;
32 AWS_BEDROCKAGENTCORE_API RedactionSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API RedactionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetScenariosScanned() const { return m_scenariosScanned; }
41 inline bool ScenariosScannedHasBeenSet() const { return m_scenariosScannedHasBeenSet; }
42 inline void SetScenariosScanned(int value) {
43 m_scenariosScannedHasBeenSet = true;
44 m_scenariosScanned = value;
45 }
48 return *this;
49 }
51
53
56 inline const Aws::Map<Aws::String, int>& GetFindingCounts() const { return m_findingCounts; }
57 inline bool FindingCountsHasBeenSet() const { return m_findingCountsHasBeenSet; }
58 template <typename FindingCountsT = Aws::Map<Aws::String, int>>
59 void SetFindingCounts(FindingCountsT&& value) {
60 m_findingCountsHasBeenSet = true;
61 m_findingCounts = std::forward<FindingCountsT>(value);
62 }
63 template <typename FindingCountsT = Aws::Map<Aws::String, int>>
64 RedactionSummary& WithFindingCounts(FindingCountsT&& value) {
65 SetFindingCounts(std::forward<FindingCountsT>(value));
66 return *this;
67 }
69 m_findingCountsHasBeenSet = true;
70 m_findingCounts.emplace(key, value);
71 return *this;
72 }
74 private:
75 int m_scenariosScanned{0};
76
77 Aws::Map<Aws::String, int> m_findingCounts;
78 bool m_scenariosScannedHasBeenSet = false;
79 bool m_findingCountsHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace BedrockAgentCore
84} // namespace Aws
AWS_BEDROCKAGENTCORE_API RedactionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
RedactionSummary & WithScenariosScanned(int value)
RedactionSummary & WithFindingCounts(FindingCountsT &&value)
AWS_BEDROCKAGENTCORE_API RedactionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, int > & GetFindingCounts() const
AWS_BEDROCKAGENTCORE_API RedactionSummary()=default
RedactionSummary & AddFindingCounts(Aws::String key, int value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue