AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline ResourceStatistics& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline ResourceStatistics& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline ResourceStatistics& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetLastGeneratedAt() const{ return m_lastGeneratedAt; }
62 inline bool LastGeneratedAtHasBeenSet() const { return m_lastGeneratedAtHasBeenSet; }
63 inline void SetLastGeneratedAt(const Aws::Utils::DateTime& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = value; }
64 inline void SetLastGeneratedAt(Aws::Utils::DateTime&& value) { m_lastGeneratedAtHasBeenSet = true; m_lastGeneratedAt = std::move(value); }
66 inline ResourceStatistics& WithLastGeneratedAt(Aws::Utils::DateTime&& value) { SetLastGeneratedAt(std::move(value)); return *this;}
68
70
87 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
88 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
89 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
90 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
91 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
92 inline ResourceStatistics& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
93 inline ResourceStatistics& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
94 inline ResourceStatistics& WithResourceId(const char* value) { SetResourceId(value); return *this;}
96
98
101 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
102 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
103 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
104 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
105 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
106 inline ResourceStatistics& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
107 inline ResourceStatistics& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
108 inline ResourceStatistics& WithResourceType(const char* value) { SetResourceType(value); return *this;}
110
112
115 inline int GetTotalFindings() const{ return m_totalFindings; }
116 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
117 inline void SetTotalFindings(int value) { m_totalFindingsHasBeenSet = true; m_totalFindings = value; }
118 inline ResourceStatistics& WithTotalFindings(int value) { SetTotalFindings(value); return *this;}
120 private:
121
122 Aws::String m_accountId;
123 bool m_accountIdHasBeenSet = false;
124
125 Aws::Utils::DateTime m_lastGeneratedAt;
126 bool m_lastGeneratedAtHasBeenSet = false;
127
128 Aws::String m_resourceId;
129 bool m_resourceIdHasBeenSet = false;
130
131 Aws::String m_resourceType;
132 bool m_resourceTypeHasBeenSet = false;
133
134 int m_totalFindings;
135 bool m_totalFindingsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace GuardDuty
140} // namespace Aws
ResourceStatistics & WithResourceId(const char *value)
ResourceStatistics & WithLastGeneratedAt(const Aws::Utils::DateTime &value)
ResourceStatistics & WithTotalFindings(int value)
void SetResourceId(const Aws::String &value)
AWS_GUARDDUTY_API ResourceStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(const Aws::String &value)
ResourceStatistics & WithResourceType(const char *value)
void SetLastGeneratedAt(Aws::Utils::DateTime &&value)
ResourceStatistics & WithLastGeneratedAt(Aws::Utils::DateTime &&value)
ResourceStatistics & WithAccountId(Aws::String &&value)
ResourceStatistics & WithResourceId(Aws::String &&value)
ResourceStatistics & WithAccountId(const char *value)
ResourceStatistics & WithAccountId(const Aws::String &value)
void SetResourceType(const Aws::String &value)
const Aws::Utils::DateTime & GetLastGeneratedAt() const
void SetLastGeneratedAt(const Aws::Utils::DateTime &value)
AWS_GUARDDUTY_API ResourceStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceStatistics & WithResourceId(const Aws::String &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceStatistics & WithResourceType(const Aws::String &value)
ResourceStatistics & WithResourceType(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue