AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BlockchainInstant.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ManagedBlockchainQuery {
20namespace Model {
21
28 public:
29 AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant() = default;
30 AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant(Aws::Utils::Json::JsonView jsonValue);
31 AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::Utils::DateTime& GetTime() const { return m_time; }
41 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
42 template <typename TimeT = Aws::Utils::DateTime>
43 void SetTime(TimeT&& value) {
44 m_timeHasBeenSet = true;
45 m_time = std::forward<TimeT>(value);
46 }
47 template <typename TimeT = Aws::Utils::DateTime>
48 BlockchainInstant& WithTime(TimeT&& value) {
49 SetTime(std::forward<TimeT>(value));
50 return *this;
51 }
53 private:
54 Aws::Utils::DateTime m_time{};
55 bool m_timeHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace ManagedBlockchainQuery
60} // namespace Aws
AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant()=default
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue