AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApi(const Aws::String& value) { m_apiHasBeenSet = true; m_api = value; }
50 inline void SetApi(Aws::String&& value) { m_apiHasBeenSet = true; m_api = std::move(value); }
51 inline void SetApi(const char* value) { m_apiHasBeenSet = true; m_api.assign(value); }
52 inline ApiCallDetails& WithApi(const Aws::String& value) { SetApi(value); return *this;}
53 inline ApiCallDetails& WithApi(Aws::String&& value) { SetApi(std::move(value)); return *this;}
54 inline ApiCallDetails& WithApi(const char* value) { SetApi(value); return *this;}
56
58
62 inline const Aws::String& GetApiServiceName() const{ return m_apiServiceName; }
63 inline bool ApiServiceNameHasBeenSet() const { return m_apiServiceNameHasBeenSet; }
64 inline void SetApiServiceName(const Aws::String& value) { m_apiServiceNameHasBeenSet = true; m_apiServiceName = value; }
65 inline void SetApiServiceName(Aws::String&& value) { m_apiServiceNameHasBeenSet = true; m_apiServiceName = std::move(value); }
66 inline void SetApiServiceName(const char* value) { m_apiServiceNameHasBeenSet = true; m_apiServiceName.assign(value); }
67 inline ApiCallDetails& WithApiServiceName(const Aws::String& value) { SetApiServiceName(value); return *this;}
68 inline ApiCallDetails& WithApiServiceName(Aws::String&& value) { SetApiServiceName(std::move(value)); return *this;}
69 inline ApiCallDetails& WithApiServiceName(const char* value) { SetApiServiceName(value); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetFirstSeen() const{ return m_firstSeen; }
78 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
79 inline void SetFirstSeen(const Aws::Utils::DateTime& value) { m_firstSeenHasBeenSet = true; m_firstSeen = value; }
80 inline void SetFirstSeen(Aws::Utils::DateTime&& value) { m_firstSeenHasBeenSet = true; m_firstSeen = std::move(value); }
81 inline ApiCallDetails& WithFirstSeen(const Aws::Utils::DateTime& value) { SetFirstSeen(value); return *this;}
82 inline ApiCallDetails& WithFirstSeen(Aws::Utils::DateTime&& value) { SetFirstSeen(std::move(value)); return *this;}
84
86
90 inline const Aws::Utils::DateTime& GetLastSeen() const{ return m_lastSeen; }
91 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
92 inline void SetLastSeen(const Aws::Utils::DateTime& value) { m_lastSeenHasBeenSet = true; m_lastSeen = value; }
93 inline void SetLastSeen(Aws::Utils::DateTime&& value) { m_lastSeenHasBeenSet = true; m_lastSeen = std::move(value); }
94 inline ApiCallDetails& WithLastSeen(const Aws::Utils::DateTime& value) { SetLastSeen(value); return *this;}
95 inline ApiCallDetails& WithLastSeen(Aws::Utils::DateTime&& value) { SetLastSeen(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_api;
100 bool m_apiHasBeenSet = false;
101
102 Aws::String m_apiServiceName;
103 bool m_apiServiceNameHasBeenSet = false;
104
105 Aws::Utils::DateTime m_firstSeen;
106 bool m_firstSeenHasBeenSet = false;
107
108 Aws::Utils::DateTime m_lastSeen;
109 bool m_lastSeenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace Macie2
114} // namespace Aws
ApiCallDetails & WithApi(Aws::String &&value)
ApiCallDetails & WithLastSeen(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastSeen() const
ApiCallDetails & WithApi(const Aws::String &value)
ApiCallDetails & WithFirstSeen(Aws::Utils::DateTime &&value)
ApiCallDetails & WithApi(const char *value)
void SetLastSeen(const Aws::Utils::DateTime &value)
ApiCallDetails & WithLastSeen(const Aws::Utils::DateTime &value)
ApiCallDetails & WithApiServiceName(Aws::String &&value)
void SetApi(Aws::String &&value)
AWS_MACIE2_API ApiCallDetails(Aws::Utils::Json::JsonView jsonValue)
ApiCallDetails & WithFirstSeen(const Aws::Utils::DateTime &value)
void SetFirstSeen(const Aws::Utils::DateTime &value)
const Aws::String & GetApiServiceName() const
void SetApi(const char *value)
void SetApiServiceName(const Aws::String &value)
ApiCallDetails & WithApiServiceName(const char *value)
void SetFirstSeen(Aws::Utils::DateTime &&value)
ApiCallDetails & WithApiServiceName(const Aws::String &value)
void SetApiServiceName(const char *value)
const Aws::Utils::DateTime & GetFirstSeen() const
void SetApiServiceName(Aws::String &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetApi(const Aws::String &value)
const Aws::String & GetApi() const
AWS_MACIE2_API ApiCallDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastSeen(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue