AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AggregationPeriod& GetPeriod() const{ return m_period; }
53 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
54 inline void SetPeriod(const AggregationPeriod& value) { m_periodHasBeenSet = true; m_period = value; }
55 inline void SetPeriod(AggregationPeriod&& value) { m_periodHasBeenSet = true; m_period = std::move(value); }
56 inline AggregatedProfileTime& WithPeriod(const AggregationPeriod& value) { SetPeriod(value); return *this;}
57 inline AggregatedProfileTime& WithPeriod(AggregationPeriod&& value) { SetPeriod(std::move(value)); return *this;}
59
61
70 inline const Aws::Utils::DateTime& GetStart() const{ return m_start; }
71 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
72 inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; }
73 inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
74 inline AggregatedProfileTime& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;}
75 inline AggregatedProfileTime& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(value)); return *this;}
77 private:
78
79 AggregationPeriod m_period;
80 bool m_periodHasBeenSet = false;
81
83 bool m_startHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CodeGuruProfiler
88} // namespace Aws
AggregatedProfileTime & WithStart(const Aws::Utils::DateTime &value)
AggregatedProfileTime & WithStart(Aws::Utils::DateTime &&value)
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)
AggregatedProfileTime & WithPeriod(const AggregationPeriod &value)
void SetStart(const Aws::Utils::DateTime &value)
AggregatedProfileTime & WithPeriod(AggregationPeriod &&value)
Aws::Utils::Json::JsonValue JsonValue