/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ManagedBlockchainQuery
{
namespace Model
{
/**
* The container for time.
See Also:
AWS
* API Reference
*/
class BlockchainInstant
{
public:
AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant();
AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant(Aws::Utils::Json::JsonView jsonValue);
AWS_MANAGEDBLOCKCHAINQUERY_API BlockchainInstant& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The container of the Timestamp
of the blockchain instant.
* This timestamp
will only be recorded up to the
* second.
*/
inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
/**
* The container of the Timestamp
of the blockchain instant.
* This timestamp
will only be recorded up to the
* second.
*/
inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
/**
* The container of the Timestamp
of the blockchain instant.
* This timestamp
will only be recorded up to the
* second.
*/
inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
/**
* The container of the Timestamp
of the blockchain instant.
* This timestamp
will only be recorded up to the
* second.
*/
inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
/**
* The container of the Timestamp
of the blockchain instant.
* This timestamp
will only be recorded up to the
* second.
*/
inline BlockchainInstant& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
/**
* The container of the Timestamp
of the blockchain instant.
* This timestamp
will only be recorded up to the
* second.
*/
inline BlockchainInstant& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
private:
Aws::Utils::DateTime m_time;
bool m_timeHasBeenSet = false;
};
} // namespace Model
} // namespace ManagedBlockchainQuery
} // namespace Aws