AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ApiCallDetails.h
1
6#pragma once
7#include <aws/macie2/Macie2_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 Macie2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MACIE2_API ApiCallDetails() = default;
37 AWS_MACIE2_API ApiCallDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetApi() const { return m_api; }
48 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
49 template<typename ApiT = Aws::String>
50 void SetApi(ApiT&& value) { m_apiHasBeenSet = true; m_api = std::forward<ApiT>(value); }
51 template<typename ApiT = Aws::String>
52 ApiCallDetails& WithApi(ApiT&& value) { SetApi(std::forward<ApiT>(value)); return *this;}
54
56
60 inline const Aws::String& GetApiServiceName() const { return m_apiServiceName; }
61 inline bool ApiServiceNameHasBeenSet() const { return m_apiServiceNameHasBeenSet; }
62 template<typename ApiServiceNameT = Aws::String>
63 void SetApiServiceName(ApiServiceNameT&& value) { m_apiServiceNameHasBeenSet = true; m_apiServiceName = std::forward<ApiServiceNameT>(value); }
64 template<typename ApiServiceNameT = Aws::String>
65 ApiCallDetails& WithApiServiceName(ApiServiceNameT&& value) { SetApiServiceName(std::forward<ApiServiceNameT>(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetFirstSeen() const { return m_firstSeen; }
74 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
75 template<typename FirstSeenT = Aws::Utils::DateTime>
76 void SetFirstSeen(FirstSeenT&& value) { m_firstSeenHasBeenSet = true; m_firstSeen = std::forward<FirstSeenT>(value); }
77 template<typename FirstSeenT = Aws::Utils::DateTime>
78 ApiCallDetails& WithFirstSeen(FirstSeenT&& value) { SetFirstSeen(std::forward<FirstSeenT>(value)); return *this;}
80
82
86 inline const Aws::Utils::DateTime& GetLastSeen() const { return m_lastSeen; }
87 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
88 template<typename LastSeenT = Aws::Utils::DateTime>
89 void SetLastSeen(LastSeenT&& value) { m_lastSeenHasBeenSet = true; m_lastSeen = std::forward<LastSeenT>(value); }
90 template<typename LastSeenT = Aws::Utils::DateTime>
91 ApiCallDetails& WithLastSeen(LastSeenT&& value) { SetLastSeen(std::forward<LastSeenT>(value)); return *this;}
93 private:
94
95 Aws::String m_api;
96 bool m_apiHasBeenSet = false;
97
98 Aws::String m_apiServiceName;
99 bool m_apiServiceNameHasBeenSet = false;
100
101 Aws::Utils::DateTime m_firstSeen{};
102 bool m_firstSeenHasBeenSet = false;
103
104 Aws::Utils::DateTime m_lastSeen{};
105 bool m_lastSeenHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Macie2
110} // namespace Aws
ApiCallDetails & WithFirstSeen(FirstSeenT &&value)
const Aws::Utils::DateTime & GetLastSeen() const
void SetLastSeen(LastSeenT &&value)
ApiCallDetails & WithApiServiceName(ApiServiceNameT &&value)
AWS_MACIE2_API ApiCallDetails(Aws::Utils::Json::JsonView jsonValue)
void SetFirstSeen(FirstSeenT &&value)
AWS_MACIE2_API ApiCallDetails()=default
const Aws::String & GetApiServiceName() const
ApiCallDetails & WithLastSeen(LastSeenT &&value)
void SetApiServiceName(ApiServiceNameT &&value)
const Aws::Utils::DateTime & GetFirstSeen() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetApi() const
AWS_MACIE2_API ApiCallDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiCallDetails & WithApi(ApiT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue