AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruProfiler {
21namespace Model {
22
32 public:
33 AWS_CODEGURUPROFILER_API AggregatedProfileTime() = default;
34 AWS_CODEGURUPROFILER_API AggregatedProfileTime(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUPROFILER_API AggregatedProfileTime& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline AggregationPeriod GetPeriod() const { return m_period; }
47 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
48 inline void SetPeriod(AggregationPeriod value) {
49 m_periodHasBeenSet = true;
50 m_period = value;
51 }
53 SetPeriod(value);
54 return *this;
55 }
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) {
72 m_startHasBeenSet = true;
73 m_start = std::forward<StartT>(value);
74 }
75 template <typename StartT = Aws::Utils::DateTime>
77 SetStart(std::forward<StartT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::Utils::DateTime m_start{};
85 bool m_periodHasBeenSet = false;
86 bool m_startHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace CodeGuruProfiler
91} // 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