AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
AccountStatistics.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API AccountStatistics() = default;
32 AWS_GUARDDUTY_API AccountStatistics(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 AccountStatistics& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
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) {
62 m_lastGeneratedAtHasBeenSet = true;
63 m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value);
64 }
65 template <typename LastGeneratedAtT = Aws::Utils::DateTime>
66 AccountStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) {
67 SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value));
68 return *this;
69 }
71
73
76 inline int GetTotalFindings() const { return m_totalFindings; }
77 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
78 inline void SetTotalFindings(int value) {
79 m_totalFindingsHasBeenSet = true;
80 m_totalFindings = value;
81 }
83 SetTotalFindings(value);
84 return *this;
85 }
87 private:
88 Aws::String m_accountId;
89
90 Aws::Utils::DateTime m_lastGeneratedAt{};
91
92 int m_totalFindings{0};
93 bool m_accountIdHasBeenSet = false;
94 bool m_lastGeneratedAtHasBeenSet = false;
95 bool m_totalFindingsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace GuardDuty
100} // 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