AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Trend.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/TimeGranularity.h>
11#include <aws/guardduty/model/TimeWindowGroup.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
31class Trend {
32 public:
33 AWS_GUARDDUTY_API Trend() = default;
34 AWS_GUARDDUTY_API Trend(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Trend& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline TimeGranularity GetGranularity() const { return m_granularity; }
44 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
45 inline void SetGranularity(TimeGranularity value) {
46 m_granularityHasBeenSet = true;
47 m_granularity = value;
48 }
50 SetGranularity(value);
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
60 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
61 template <typename StartedAtT = Aws::Utils::DateTime>
62 void SetStartedAt(StartedAtT&& value) {
63 m_startedAtHasBeenSet = true;
64 m_startedAt = std::forward<StartedAtT>(value);
65 }
66 template <typename StartedAtT = Aws::Utils::DateTime>
67 Trend& WithStartedAt(StartedAtT&& value) {
68 SetStartedAt(std::forward<StartedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
78 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
79 template <typename EndedAtT = Aws::Utils::DateTime>
80 void SetEndedAt(EndedAtT&& value) {
81 m_endedAtHasBeenSet = true;
82 m_endedAt = std::forward<EndedAtT>(value);
83 }
84 template <typename EndedAtT = Aws::Utils::DateTime>
85 Trend& WithEndedAt(EndedAtT&& value) {
86 SetEndedAt(std::forward<EndedAtT>(value));
87 return *this;
88 }
90
92
95 inline long long GetTotalFindings() const { return m_totalFindings; }
96 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
97 inline void SetTotalFindings(long long value) {
98 m_totalFindingsHasBeenSet = true;
99 m_totalFindings = value;
100 }
101 inline Trend& WithTotalFindings(long long value) {
102 SetTotalFindings(value);
103 return *this;
104 }
106
108
111 inline const Aws::Vector<TimeWindowGroup>& GetByTimeWindow() const { return m_byTimeWindow; }
112 inline bool ByTimeWindowHasBeenSet() const { return m_byTimeWindowHasBeenSet; }
113 template <typename ByTimeWindowT = Aws::Vector<TimeWindowGroup>>
114 void SetByTimeWindow(ByTimeWindowT&& value) {
115 m_byTimeWindowHasBeenSet = true;
116 m_byTimeWindow = std::forward<ByTimeWindowT>(value);
117 }
118 template <typename ByTimeWindowT = Aws::Vector<TimeWindowGroup>>
119 Trend& WithByTimeWindow(ByTimeWindowT&& value) {
120 SetByTimeWindow(std::forward<ByTimeWindowT>(value));
121 return *this;
122 }
123 template <typename ByTimeWindowT = TimeWindowGroup>
124 Trend& AddByTimeWindow(ByTimeWindowT&& value) {
125 m_byTimeWindowHasBeenSet = true;
126 m_byTimeWindow.emplace_back(std::forward<ByTimeWindowT>(value));
127 return *this;
128 }
130 private:
132
133 Aws::Utils::DateTime m_startedAt{};
134
135 Aws::Utils::DateTime m_endedAt{};
136
137 long long m_totalFindings{0};
138
139 Aws::Vector<TimeWindowGroup> m_byTimeWindow;
140 bool m_granularityHasBeenSet = false;
141 bool m_startedAtHasBeenSet = false;
142 bool m_endedAtHasBeenSet = false;
143 bool m_totalFindingsHasBeenSet = false;
144 bool m_byTimeWindowHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace GuardDuty
149} // namespace Aws
long long GetTotalFindings() const
Definition Trend.h:95
AWS_GUARDDUTY_API Trend & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ByTimeWindowHasBeenSet() const
Definition Trend.h:112
bool EndedAtHasBeenSet() const
Definition Trend.h:78
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API Trend(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetEndedAt() const
Definition Trend.h:77
bool GranularityHasBeenSet() const
Definition Trend.h:44
void SetByTimeWindow(ByTimeWindowT &&value)
Definition Trend.h:114
void SetGranularity(TimeGranularity value)
Definition Trend.h:45
Trend & WithByTimeWindow(ByTimeWindowT &&value)
Definition Trend.h:119
Trend & WithTotalFindings(long long value)
Definition Trend.h:101
const Aws::Utils::DateTime & GetStartedAt() const
Definition Trend.h:59
const Aws::Vector< TimeWindowGroup > & GetByTimeWindow() const
Definition Trend.h:111
Trend & WithEndedAt(EndedAtT &&value)
Definition Trend.h:85
TimeGranularity GetGranularity() const
Definition Trend.h:43
void SetStartedAt(StartedAtT &&value)
Definition Trend.h:62
Trend & WithGranularity(TimeGranularity value)
Definition Trend.h:49
void SetTotalFindings(long long value)
Definition Trend.h:97
AWS_GUARDDUTY_API Trend()=default
bool TotalFindingsHasBeenSet() const
Definition Trend.h:96
Trend & WithStartedAt(StartedAtT &&value)
Definition Trend.h:67
void SetEndedAt(EndedAtT &&value)
Definition Trend.h:80
bool StartedAtHasBeenSet() const
Definition Trend.h:60
Trend & AddByTimeWindow(ByTimeWindowT &&value)
Definition Trend.h:124
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue