AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ResourceStatistics.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 ResourceStatistics() = default;
32 AWS_GUARDDUTY_API ResourceStatistics(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 ResourceStatistics& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
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) {
63 m_lastGeneratedAtHasBeenSet = true;
64 m_lastGeneratedAt = std::forward<LastGeneratedAtT>(value);
65 }
66 template <typename LastGeneratedAtT = Aws::Utils::DateTime>
67 ResourceStatistics& WithLastGeneratedAt(LastGeneratedAtT&& value) {
68 SetLastGeneratedAt(std::forward<LastGeneratedAtT>(value));
69 return *this;
70 }
72
74
91 inline const Aws::String& GetResourceId() const { return m_resourceId; }
92 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
93 template <typename ResourceIdT = Aws::String>
94 void SetResourceId(ResourceIdT&& value) {
95 m_resourceIdHasBeenSet = true;
96 m_resourceId = std::forward<ResourceIdT>(value);
97 }
98 template <typename ResourceIdT = Aws::String>
99 ResourceStatistics& WithResourceId(ResourceIdT&& value) {
100 SetResourceId(std::forward<ResourceIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetResourceType() const { return m_resourceType; }
110 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
111 template <typename ResourceTypeT = Aws::String>
112 void SetResourceType(ResourceTypeT&& value) {
113 m_resourceTypeHasBeenSet = true;
114 m_resourceType = std::forward<ResourceTypeT>(value);
115 }
116 template <typename ResourceTypeT = Aws::String>
117 ResourceStatistics& WithResourceType(ResourceTypeT&& value) {
118 SetResourceType(std::forward<ResourceTypeT>(value));
119 return *this;
120 }
122
124
127 inline int GetTotalFindings() const { return m_totalFindings; }
128 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
129 inline void SetTotalFindings(int value) {
130 m_totalFindingsHasBeenSet = true;
131 m_totalFindings = value;
132 }
134 SetTotalFindings(value);
135 return *this;
136 }
138 private:
139 Aws::String m_accountId;
140
141 Aws::Utils::DateTime m_lastGeneratedAt{};
142
143 Aws::String m_resourceId;
144
145 Aws::String m_resourceType;
146
147 int m_totalFindings{0};
148 bool m_accountIdHasBeenSet = false;
149 bool m_lastGeneratedAtHasBeenSet = false;
150 bool m_resourceIdHasBeenSet = false;
151 bool m_resourceTypeHasBeenSet = false;
152 bool m_totalFindingsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace GuardDuty
157} // namespace Aws
void SetLastGeneratedAt(LastGeneratedAtT &&value)
ResourceStatistics & WithLastGeneratedAt(LastGeneratedAtT &&value)
ResourceStatistics & WithTotalFindings(int value)
AWS_GUARDDUTY_API ResourceStatistics(Aws::Utils::Json::JsonView jsonValue)
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