AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AggregatedProfileTime.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/AggregationPeriod.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruProfiler
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CODEGURUPROFILER_API AggregatedProfileTime() = default;
39 AWS_CODEGURUPROFILER_API AggregatedProfileTime(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUPROFILER_API AggregatedProfileTime& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
52 inline AggregationPeriod GetPeriod() const { return m_period; }
53 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
54 inline void SetPeriod(AggregationPeriod value) { m_periodHasBeenSet = true; m_period = value; }
55 inline AggregatedProfileTime& WithPeriod(AggregationPeriod value) { SetPeriod(value); return *this;}
57
59
68 inline const Aws::Utils::DateTime& GetStart() const { return m_start; }
69 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
70 template<typename StartT = Aws::Utils::DateTime>
71 void SetStart(StartT&& value) { m_startHasBeenSet = true; m_start = std::forward<StartT>(value); }
72 template<typename StartT = Aws::Utils::DateTime>
73 AggregatedProfileTime& WithStart(StartT&& value) { SetStart(std::forward<StartT>(value)); return *this;}
75 private:
76
78 bool m_periodHasBeenSet = false;
79
80 Aws::Utils::DateTime m_start{};
81 bool m_startHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CodeGuruProfiler
86} // namespace Aws
AWS_CODEGURUPROFILER_API AggregatedProfileTime & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUPROFILER_API AggregatedProfileTime(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API AggregatedProfileTime()=default
AggregatedProfileTime & WithStart(StartT &&value)
AggregatedProfileTime & WithPeriod(AggregationPeriod value)
Aws::Utils::Json::JsonValue JsonValue