AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
ApiCallDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
30 public:
31 AWS_MACIE2_API ApiCallDetails() = default;
32 AWS_MACIE2_API ApiCallDetails(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetApi() const { return m_api; }
42 inline bool ApiHasBeenSet() const { return m_apiHasBeenSet; }
43 template <typename ApiT = Aws::String>
44 void SetApi(ApiT&& value) {
45 m_apiHasBeenSet = true;
46 m_api = std::forward<ApiT>(value);
47 }
48 template <typename ApiT = Aws::String>
49 ApiCallDetails& WithApi(ApiT&& value) {
50 SetApi(std::forward<ApiT>(value));
51 return *this;
52 }
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) {
64 m_apiServiceNameHasBeenSet = true;
65 m_apiServiceName = std::forward<ApiServiceNameT>(value);
66 }
67 template <typename ApiServiceNameT = Aws::String>
68 ApiCallDetails& WithApiServiceName(ApiServiceNameT&& value) {
69 SetApiServiceName(std::forward<ApiServiceNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Utils::DateTime& GetFirstSeen() const { return m_firstSeen; }
80 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
81 template <typename FirstSeenT = Aws::Utils::DateTime>
82 void SetFirstSeen(FirstSeenT&& value) {
83 m_firstSeenHasBeenSet = true;
84 m_firstSeen = std::forward<FirstSeenT>(value);
85 }
86 template <typename FirstSeenT = Aws::Utils::DateTime>
87 ApiCallDetails& WithFirstSeen(FirstSeenT&& value) {
88 SetFirstSeen(std::forward<FirstSeenT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::Utils::DateTime& GetLastSeen() const { return m_lastSeen; }
99 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
100 template <typename LastSeenT = Aws::Utils::DateTime>
101 void SetLastSeen(LastSeenT&& value) {
102 m_lastSeenHasBeenSet = true;
103 m_lastSeen = std::forward<LastSeenT>(value);
104 }
105 template <typename LastSeenT = Aws::Utils::DateTime>
106 ApiCallDetails& WithLastSeen(LastSeenT&& value) {
107 SetLastSeen(std::forward<LastSeenT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_api;
113
114 Aws::String m_apiServiceName;
115
116 Aws::Utils::DateTime m_firstSeen{};
117
118 Aws::Utils::DateTime m_lastSeen{};
119 bool m_apiHasBeenSet = false;
120 bool m_apiServiceNameHasBeenSet = false;
121 bool m_firstSeenHasBeenSet = false;
122 bool m_lastSeenHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Macie2
127} // 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