AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExploitObserved.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_INSPECTOR2_API ExploitObserved() = default;
36 AWS_INSPECTOR2_API ExploitObserved(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetFirstSeen() const { return m_firstSeen; }
46 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
47 template<typename FirstSeenT = Aws::Utils::DateTime>
48 void SetFirstSeen(FirstSeenT&& value) { m_firstSeenHasBeenSet = true; m_firstSeen = std::forward<FirstSeenT>(value); }
49 template<typename FirstSeenT = Aws::Utils::DateTime>
50 ExploitObserved& WithFirstSeen(FirstSeenT&& value) { SetFirstSeen(std::forward<FirstSeenT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetLastSeen() const { return m_lastSeen; }
58 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
59 template<typename LastSeenT = Aws::Utils::DateTime>
60 void SetLastSeen(LastSeenT&& value) { m_lastSeenHasBeenSet = true; m_lastSeen = std::forward<LastSeenT>(value); }
61 template<typename LastSeenT = Aws::Utils::DateTime>
62 ExploitObserved& WithLastSeen(LastSeenT&& value) { SetLastSeen(std::forward<LastSeenT>(value)); return *this;}
64 private:
65
66 Aws::Utils::DateTime m_firstSeen{};
67 bool m_firstSeenHasBeenSet = false;
68
69 Aws::Utils::DateTime m_lastSeen{};
70 bool m_lastSeenHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Inspector2
75} // namespace Aws
ExploitObserved & WithLastSeen(LastSeenT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastSeen() const
ExploitObserved & WithFirstSeen(FirstSeenT &&value)
AWS_INSPECTOR2_API ExploitObserved & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetFirstSeen() const
AWS_INSPECTOR2_API ExploitObserved()=default
AWS_INSPECTOR2_API ExploitObserved(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue