93 lines
3.1 KiB
C++
93 lines
3.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CodeGuruProfiler
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> A data type that contains a <code>Timestamp</code> 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. </p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/TimestampStructure">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CODEGURUPROFILER_API TimestampStructure
|
|
{
|
|
public:
|
|
TimestampStructure();
|
|
TimestampStructure(Aws::Utils::Json::JsonView jsonValue);
|
|
TimestampStructure& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p> A <code>Timestamp</code>. 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. </p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetValue() const{ return m_value; }
|
|
|
|
/**
|
|
* <p> A <code>Timestamp</code>. 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. </p>
|
|
*/
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|
|
|
/**
|
|
* <p> A <code>Timestamp</code>. 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. </p>
|
|
*/
|
|
inline void SetValue(const Aws::Utils::DateTime& value) { m_valueHasBeenSet = true; m_value = value; }
|
|
|
|
/**
|
|
* <p> A <code>Timestamp</code>. 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. </p>
|
|
*/
|
|
inline void SetValue(Aws::Utils::DateTime&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
|
|
|
/**
|
|
* <p> A <code>Timestamp</code>. 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. </p>
|
|
*/
|
|
inline TimestampStructure& WithValue(const Aws::Utils::DateTime& value) { SetValue(value); return *this;}
|
|
|
|
/**
|
|
* <p> A <code>Timestamp</code>. 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. </p>
|
|
*/
|
|
inline TimestampStructure& WithValue(Aws::Utils::DateTime&& value) { SetValue(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Utils::DateTime m_value;
|
|
bool m_valueHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CodeGuruProfiler
|
|
} // namespace Aws
|