AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
FetchTimeWindow.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API FetchTimeWindow() = default;
31 AWS_GUARDDUTY_API FetchTimeWindow(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
40 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
41 template <typename StartedAtT = Aws::Utils::DateTime>
42 void SetStartedAt(StartedAtT&& value) {
43 m_startedAtHasBeenSet = true;
44 m_startedAt = std::forward<StartedAtT>(value);
45 }
46 template <typename StartedAtT = Aws::Utils::DateTime>
47 FetchTimeWindow& WithStartedAt(StartedAtT&& value) {
48 SetStartedAt(std::forward<StartedAtT>(value));
49 return *this;
50 }
52
54
57 inline int GetDurationInMinutes() const { return m_durationInMinutes; }
58 inline bool DurationInMinutesHasBeenSet() const { return m_durationInMinutesHasBeenSet; }
59 inline void SetDurationInMinutes(int value) {
60 m_durationInMinutesHasBeenSet = true;
61 m_durationInMinutes = value;
62 }
65 return *this;
66 }
68 private:
69 Aws::Utils::DateTime m_startedAt{};
70
71 int m_durationInMinutes{0};
72 bool m_startedAtHasBeenSet = false;
73 bool m_durationInMinutesHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace GuardDuty
78} // namespace Aws
AWS_GUARDDUTY_API FetchTimeWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartedAt() const
FetchTimeWindow & WithDurationInMinutes(int value)
AWS_GUARDDUTY_API FetchTimeWindow(Aws::Utils::Json::JsonView jsonValue)
void SetStartedAt(StartedAtT &&value)
AWS_GUARDDUTY_API FetchTimeWindow()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
FetchTimeWindow & WithStartedAt(StartedAtT &&value)
Aws::Utils::Json::JsonValue JsonValue