AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeGuruProfiler {
20namespace Model {
21
28 public:
29 AWS_CODEGURUPROFILER_API ProfileTime() = default;
30 AWS_CODEGURUPROFILER_API ProfileTime(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CODEGURUPROFILER_API ProfileTime& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
41 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
42 template <typename StartT = Aws::Utils::DateTime>
43 void SetStart(StartT&& value) {
44 m_startHasBeenSet = true;
45 m_start = std::forward<StartT>(value);
46 }
47 template <typename StartT = Aws::Utils::DateTime>
48 ProfileTime& WithStart(StartT&& value) {
49 SetStart(std::forward<StartT>(value));
50 return *this;
51 }
53 private:
54 Aws::Utils::DateTime m_start{};
55 bool m_startHasBeenSet = false;
56};
57
58} // namespace Model
59} // namespace CodeGuruProfiler
60} // 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:40
ProfileTime & WithStart(StartT &&value)
Definition ProfileTime.h:48
AWS_CODEGURUPROFILER_API ProfileTime & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API ProfileTime()=default
Aws::Utils::Json::JsonValue JsonValue