AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ResourceStatistics.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API ResourceStatistics() = default;
37 AWS_GUARDDUTY_API ResourceStatistics(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 ResourceStatistics& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
59 inline const Aws::Utils::DateTime& GetLastGeneratedAt() const { return m_lastGeneratedAt; }
60 inline bool LastGeneratedAtHasBeenSet() const { return m_lastGeneratedAtHasBeenSet; }
61 template<typename LastGeneratedAtT = Aws::Utils::DateTime>
62 void SetLastGeneratedAt(LastGeneratedAtT&& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value); }
63 template<typename LastGeneratedAtT = Aws::Utils::DateTime>
64 ResourceStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) { SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value)); return *this;}
66
68
85 inline const Aws::String& GetResourceId() const { return m_resourceId; }
86 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
87 template<typename ResourceIdT = Aws::String>
88 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
89 template<typename ResourceIdT = Aws::String>
90 ResourceStatistics& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetResourceType() const { return m_resourceType; }
98 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
99 template<typename ResourceTypeT = Aws::String>
100 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
101 template<typename ResourceTypeT = Aws::String>
102 ResourceStatistics& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
104
106
109 inline int GetTotalFindings() const { return m_totalFindings; }
110 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
111 inline void SetTotalFindings(int value) { m_totalFindingsHasBeenSet = true; m_totalFindings = value; }
112 inline ResourceStatistics& WithTotalFindings(int value) { SetTotalFindings(value); return *this;}
114 private:
115
116 Aws::String m_accountId;
117 bool m_accountIdHasBeenSet = false;
118
119 Aws::Utils::DateTime m_lastGeneratedAt{};
120 bool m_lastGeneratedAtHasBeenSet = false;
121
122 Aws::String m_resourceId;
123 bool m_resourceIdHasBeenSet = false;
124
125 Aws::String m_resourceType;
126 bool m_resourceTypeHasBeenSet = false;
127
128 int m_totalFindings{0};
129 bool m_totalFindingsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace GuardDuty
134} // namespace Aws
void SetLastGeneratedAt(LastGeneratedAtT &&value)
ResourceStatistics & WithLastGeneratedAt(LastGeneratedAtT &&value)
ResourceStatistics & WithTotalFindings(int value)
AWS_GUARDDUTY_API ResourceStatistics(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceType() const
ResourceStatistics & WithResourceType(ResourceTypeT &&value)
const Aws::Utils::DateTime & GetLastGeneratedAt() const
AWS_GUARDDUTY_API ResourceStatistics()=default
AWS_GUARDDUTY_API ResourceStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceStatistics & WithAccountId(AccountIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceStatistics & WithResourceId(ResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue