AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
TimestampForCollection.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/detective/Detective_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Detective {
20namespace Model {
21
29 public:
30 AWS_DETECTIVE_API TimestampForCollection() = default;
33 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
42 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
43 template <typename TimestampT = Aws::Utils::DateTime>
44 void SetTimestamp(TimestampT&& value) {
45 m_timestampHasBeenSet = true;
46 m_timestamp = std::forward<TimestampT>(value);
47 }
48 template <typename TimestampT = Aws::Utils::DateTime>
50 SetTimestamp(std::forward<TimestampT>(value));
51 return *this;
52 }
54 private:
55 Aws::Utils::DateTime m_timestamp{};
56 bool m_timestampHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace Detective
61} // namespace Aws
AWS_DETECTIVE_API TimestampForCollection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API TimestampForCollection()=default
AWS_DETECTIVE_API TimestampForCollection(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
TimestampForCollection & WithTimestamp(TimestampT &&value)
Aws::Utils::Json::JsonValue JsonValue