/** * 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 { /** *

Contains the start time of a profile.

See Also:

AWS * API Reference

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

The start time of a profile. It 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& GetStart() const{ return m_start; } /** *

The start time of a profile. It 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 StartHasBeenSet() const { return m_startHasBeenSet; } /** *

The start time of a profile. It 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 SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; } /** *

The start time of a profile. It 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 SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); } /** *

The start time of a profile. It 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 ProfileTime& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;} /** *

The start time of a profile. It 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 ProfileTime& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(value)); return *this;} private: Aws::Utils::DateTime m_start; bool m_startHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws