AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CoverageStatistics.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/guardduty/model/ResourceType.h>
10#include <aws/guardduty/model/CoverageStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API CoverageStatistics();
38 AWS_GUARDDUTY_API CoverageStatistics(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Map<ResourceType, long long>& GetCountByResourceType() const{ return m_countByResourceType; }
49 inline bool CountByResourceTypeHasBeenSet() const { return m_countByResourceTypeHasBeenSet; }
50 inline void SetCountByResourceType(const Aws::Map<ResourceType, long long>& value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType = value; }
51 inline void SetCountByResourceType(Aws::Map<ResourceType, long long>&& value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType = std::move(value); }
54 inline CoverageStatistics& AddCountByResourceType(const ResourceType& key, long long value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType.emplace(key, value); return *this; }
55 inline CoverageStatistics& AddCountByResourceType(ResourceType&& key, long long value) { m_countByResourceTypeHasBeenSet = true; m_countByResourceType.emplace(std::move(key), value); return *this; }
57
59
63 inline const Aws::Map<CoverageStatus, long long>& GetCountByCoverageStatus() const{ return m_countByCoverageStatus; }
64 inline bool CountByCoverageStatusHasBeenSet() const { return m_countByCoverageStatusHasBeenSet; }
65 inline void SetCountByCoverageStatus(const Aws::Map<CoverageStatus, long long>& value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus = value; }
66 inline void SetCountByCoverageStatus(Aws::Map<CoverageStatus, long long>&& value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus = std::move(value); }
69 inline CoverageStatistics& AddCountByCoverageStatus(const CoverageStatus& key, long long value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus.emplace(key, value); return *this; }
70 inline CoverageStatistics& AddCountByCoverageStatus(CoverageStatus&& key, long long value) { m_countByCoverageStatusHasBeenSet = true; m_countByCoverageStatus.emplace(std::move(key), value); return *this; }
72 private:
73
74 Aws::Map<ResourceType, long long> m_countByResourceType;
75 bool m_countByResourceTypeHasBeenSet = false;
76
77 Aws::Map<CoverageStatus, long long> m_countByCoverageStatus;
78 bool m_countByCoverageStatusHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace GuardDuty
83} // namespace Aws
CoverageStatistics & AddCountByResourceType(ResourceType &&key, long long value)
void SetCountByResourceType(Aws::Map< ResourceType, long long > &&value)
void SetCountByCoverageStatus(const Aws::Map< CoverageStatus, long long > &value)
CoverageStatistics & AddCountByResourceType(const ResourceType &key, long long value)
CoverageStatistics & WithCountByResourceType(const Aws::Map< ResourceType, long long > &value)
AWS_GUARDDUTY_API CoverageStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API CoverageStatistics(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< ResourceType, long long > & GetCountByResourceType() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
CoverageStatistics & WithCountByCoverageStatus(const Aws::Map< CoverageStatus, long long > &value)
const Aws::Map< CoverageStatus, long long > & GetCountByCoverageStatus() const
CoverageStatistics & AddCountByCoverageStatus(CoverageStatus &&key, long long value)
void SetCountByResourceType(const Aws::Map< ResourceType, long long > &value)
CoverageStatistics & WithCountByCoverageStatus(Aws::Map< CoverageStatus, long long > &&value)
CoverageStatistics & WithCountByResourceType(Aws::Map< ResourceType, long long > &&value)
CoverageStatistics & AddCountByCoverageStatus(const CoverageStatus &key, long long value)
void SetCountByCoverageStatus(Aws::Map< CoverageStatus, long long > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue