/** * 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 CodeGuruProfiler { namespace Model { /** *

A data type that contains a Timestamp object. This is specified * using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 * millisecond past June 1, 2020 1:15:02 PM UTC.

See Also:

AWS * API Reference

*/ class TimestampStructure { public: AWS_CODEGURUPROFILER_API TimestampStructure(); AWS_CODEGURUPROFILER_API TimestampStructure(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUPROFILER_API TimestampStructure& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A Timestamp. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 * 1:15:02 PM UTC.

*/ inline const Aws::Utils::DateTime& GetValue() const{ return m_value; } /** *

A Timestamp. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 * 1:15:02 PM UTC.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

A Timestamp. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 * 1:15:02 PM UTC.

*/ inline void SetValue(const Aws::Utils::DateTime& value) { m_valueHasBeenSet = true; m_value = value; } /** *

A Timestamp. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 * 1:15:02 PM UTC.

*/ inline void SetValue(Aws::Utils::DateTime&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

A Timestamp. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 * 1:15:02 PM UTC.

*/ inline TimestampStructure& WithValue(const Aws::Utils::DateTime& value) { SetValue(value); return *this;} /** *

A Timestamp. This is specified using the ISO 8601 format. For * example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 * 1:15:02 PM UTC.

*/ inline TimestampStructure& WithValue(Aws::Utils::DateTime&& value) { SetValue(std::move(value)); return *this;} private: Aws::Utils::DateTime m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws