AWS SDK for C++
1.8.126
AWS SDK for C++
aws-cpp-sdk-guardduty
include
aws
guardduty
model
FindingStatistics.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <
aws/guardduty/GuardDuty_EXPORTS.h
>
8
#include <
aws/core/utils/memory/stl/AWSMap.h
>
9
#include <
aws/core/utils/memory/stl/AWSString.h
>
10
#include <utility>
11
12
namespace
Aws
13
{
14
namespace
Utils
15
{
16
namespace
Json
17
{
18
class
JsonValue;
19
class
JsonView;
20
}
// namespace Json
21
}
// namespace Utils
22
namespace
GuardDuty
23
{
24
namespace
Model
25
{
26
32
class
AWS_GUARDDUTY_API
FindingStatistics
33
{
34
public
:
35
FindingStatistics
();
36
FindingStatistics
(
Aws::Utils::Json::JsonView
jsonValue);
37
FindingStatistics
&
operator=
(
Aws::Utils::Json::JsonView
jsonValue);
38
Aws::Utils::Json::JsonValue
Jsonize
()
const
;
39
40
44
inline
const
Aws::Map<Aws::String, int>
&
GetCountBySeverity
()
const
{
return
m_countBySeverity; }
45
49
inline
bool
CountBySeverityHasBeenSet
()
const
{
return
m_countBySeverityHasBeenSet; }
50
54
inline
void
SetCountBySeverity
(
const
Aws::Map<Aws::String, int>
& value) { m_countBySeverityHasBeenSet =
true
; m_countBySeverity = value; }
55
59
inline
void
SetCountBySeverity
(
Aws::Map<Aws::String, int>
&& value) { m_countBySeverityHasBeenSet =
true
; m_countBySeverity = std::move(value); }
60
64
inline
FindingStatistics
&
WithCountBySeverity
(
const
Aws::Map<Aws::String, int>
& value) { SetCountBySeverity(value);
return
*
this
;}
65
69
inline
FindingStatistics
&
WithCountBySeverity
(
Aws::Map<Aws::String, int>
&& value) { SetCountBySeverity(std::move(value));
return
*
this
;}
70
74
inline
FindingStatistics
&
AddCountBySeverity
(
const
Aws::String
& key,
int
value) { m_countBySeverityHasBeenSet =
true
; m_countBySeverity.emplace(key, value);
return
*
this
; }
75
79
inline
FindingStatistics
&
AddCountBySeverity
(
Aws::String
&& key,
int
value) { m_countBySeverityHasBeenSet =
true
; m_countBySeverity.emplace(std::move(key), value);
return
*
this
; }
80
84
inline
FindingStatistics
&
AddCountBySeverity
(
const
char
* key,
int
value) { m_countBySeverityHasBeenSet =
true
; m_countBySeverity.emplace(key, value);
return
*
this
; }
85
86
private
:
87
88
Aws::Map<Aws::String, int>
m_countBySeverity;
89
bool
m_countBySeverityHasBeenSet;
90
};
91
92
}
// namespace Model
93
}
// namespace GuardDuty
94
}
// namespace Aws
Aws::GuardDuty::Model::FindingStatistics::WithCountBySeverity
FindingStatistics & WithCountBySeverity(const Aws::Map< Aws::String, int > &value)
Definition:
FindingStatistics.h:64
Aws::GuardDuty::Model::FindingStatistics::SetCountBySeverity
void SetCountBySeverity(Aws::Map< Aws::String, int > &&value)
Definition:
FindingStatistics.h:59
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition:
GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::FindingStatistics::SetCountBySeverity
void SetCountBySeverity(const Aws::Map< Aws::String, int > &value)
Definition:
FindingStatistics.h:54
Aws::Utils::Json::JsonView
Definition:
JsonSerializer.h:222
AWSString.h
Aws::GuardDuty::Model::FindingStatistics::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition:
JsonSerializer.h:30
Aws::GuardDuty::Model::FindingStatistics::FindingStatistics
FindingStatistics()
Aws::GuardDuty::Model::FindingStatistics::AddCountBySeverity
FindingStatistics & AddCountBySeverity(const Aws::String &key, int value)
Definition:
FindingStatistics.h:74
Aws::GuardDuty::Model::FindingStatistics::operator=
FindingStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::FindingStatistics
Definition:
FindingStatistics.h:33
Aws
Definition:
AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition:
AWSString.h:97
Aws::GuardDuty::Model::FindingStatistics::FindingStatistics
FindingStatistics(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::FindingStatistics::WithCountBySeverity
FindingStatistics & WithCountBySeverity(Aws::Map< Aws::String, int > &&value)
Definition:
FindingStatistics.h:69
Aws::GuardDuty::Model::FindingStatistics::AddCountBySeverity
FindingStatistics & AddCountBySeverity(const char *key, int value)
Definition:
FindingStatistics.h:84
Aws::GuardDuty::Model::FindingStatistics::CountBySeverityHasBeenSet
bool CountBySeverityHasBeenSet() const
Definition:
FindingStatistics.h:49
Aws::GuardDuty::Model::FindingStatistics::AddCountBySeverity
FindingStatistics & AddCountBySeverity(Aws::String &&key, int value)
Definition:
FindingStatistics.h:79
AWSMap.h
Aws::GuardDuty::Model::FindingStatistics::GetCountBySeverity
const Aws::Map< Aws::String, int > & GetCountBySeverity() const
Definition:
FindingStatistics.h:44
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition:
AWSMap.h:19
Generated by
1.8.19
Privacy |
Site terms |
Cookie preferences