/**
* 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 Detective
{
namespace Model
{
/**
* Details on when data collection began for a source package.
See
* Also:
AWS
* API Reference
*/
class TimestampForCollection
{
public:
AWS_DETECTIVE_API TimestampForCollection();
AWS_DETECTIVE_API TimestampForCollection(Aws::Utils::Json::JsonView jsonValue);
AWS_DETECTIVE_API TimestampForCollection& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The data and time when data collection began for a source package. The value
* is an ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
/**
* The data and time when data collection began for a source package. The value
* is an ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* The data and time when data collection began for a source package. The value
* is an ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* The data and time when data collection began for a source package. The value
* is an ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* The data and time when data collection began for a source package. The value
* is an ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
inline TimestampForCollection& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
/**
* The data and time when data collection began for a source package. The value
* is an ISO8601 formatted string. For example,
* 2021-08-18T16:35:56.284Z
.
*/
inline TimestampForCollection& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
private:
Aws::Utils::DateTime m_timestamp;
bool m_timestampHasBeenSet = false;
};
} // namespace Model
} // namespace Detective
} // namespace Aws