AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AccountStatistics.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 AccountStatistics() = default;
37 AWS_GUARDDUTY_API AccountStatistics(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 AccountStatistics& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetLastGeneratedAt() const { return m_lastGeneratedAt; }
59 inline bool LastGeneratedAtHasBeenSet() const { return m_lastGeneratedAtHasBeenSet; }
60 template<typename LastGeneratedAtT = Aws::Utils::DateTime>
61 void SetLastGeneratedAt(LastGeneratedAtT&& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value); }
62 template<typename LastGeneratedAtT = Aws::Utils::DateTime>
63 AccountStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) { SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value)); return *this;}
65
67
70 inline int GetTotalFindings() const { return m_totalFindings; }
71 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
72 inline void SetTotalFindings(int value) { m_totalFindingsHasBeenSet = true; m_totalFindings = value; }
73 inline AccountStatistics& WithTotalFindings(int value) { SetTotalFindings(value); return *this;}
75 private:
76
77 Aws::String m_accountId;
78 bool m_accountIdHasBeenSet = false;
79
80 Aws::Utils::DateTime m_lastGeneratedAt{};
81 bool m_lastGeneratedAtHasBeenSet = false;
82
83 int m_totalFindings{0};
84 bool m_totalFindingsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace GuardDuty
89} // namespace Aws
AWS_GUARDDUTY_API AccountStatistics(Aws::Utils::Json::JsonView jsonValue)
AccountStatistics & WithLastGeneratedAt(LastGeneratedAtT &&value)
AWS_GUARDDUTY_API AccountStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastGeneratedAt() const
AccountStatistics & WithAccountId(AccountIdT &&value)
AccountStatistics & WithTotalFindings(int value)
const Aws::String & GetAccountId() const
void SetLastGeneratedAt(LastGeneratedAtT &&value)
AWS_GUARDDUTY_API AccountStatistics()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue