AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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