AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProfileTime.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeGuruProfiler
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CODEGURUPROFILER_API ProfileTime() = default;
35 AWS_CODEGURUPROFILER_API ProfileTime(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUPROFILER_API ProfileTime& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
46 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
47 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
48 template<typename StartT = Aws::Utils::DateTime>
49 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
50 template<typename StartT = Aws::Utils::DateTime>
51 ProfileTime& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
53 private:
54
55 Aws::Utils::DateTime m_start{};
56 bool m_startHasBeenSet = false;
57 };
58
59} // namespace Model
60} // namespace CodeGuruProfiler
61} // namespace Aws
AWS_CODEGURUPROFILER_API ProfileTime(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStart() const
Definition ProfileTime.h:46
ProfileTime & WithStart(StartT &&value)
Definition ProfileTime.h:51
AWS_CODEGURUPROFILER_API ProfileTime & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API ProfileTime()=default
Aws::Utils::Json::JsonValue JsonValue