AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CalendarInterval.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/application-signals/model/DurationUnit.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 ApplicationSignals
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPLICATIONSIGNALS_API CalendarInterval();
37 AWS_APPLICATIONSIGNALS_API CalendarInterval(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API CalendarInterval& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
53 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
54 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
55 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
56 inline CalendarInterval& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
57 inline CalendarInterval& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
59
61
64 inline const DurationUnit& GetDurationUnit() const{ return m_durationUnit; }
65 inline bool DurationUnitHasBeenSet() const { return m_durationUnitHasBeenSet; }
66 inline void SetDurationUnit(const DurationUnit& value) { m_durationUnitHasBeenSet = true; m_durationUnit = value; }
67 inline void SetDurationUnit(DurationUnit&& value) { m_durationUnitHasBeenSet = true; m_durationUnit = std::move(value); }
68 inline CalendarInterval& WithDurationUnit(const DurationUnit& value) { SetDurationUnit(value); return *this;}
69 inline CalendarInterval& WithDurationUnit(DurationUnit&& value) { SetDurationUnit(std::move(value)); return *this;}
71
73
78 inline int GetDuration() const{ return m_duration; }
79 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
80 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
81 inline CalendarInterval& WithDuration(int value) { SetDuration(value); return *this;}
83 private:
84
85 Aws::Utils::DateTime m_startTime;
86 bool m_startTimeHasBeenSet = false;
87
88 DurationUnit m_durationUnit;
89 bool m_durationUnitHasBeenSet = false;
90
91 int m_duration;
92 bool m_durationHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace ApplicationSignals
97} // namespace Aws
void SetStartTime(Aws::Utils::DateTime &&value)
AWS_APPLICATIONSIGNALS_API CalendarInterval & operator=(Aws::Utils::Json::JsonView jsonValue)
CalendarInterval & WithStartTime(Aws::Utils::DateTime &&value)
CalendarInterval & WithDurationUnit(DurationUnit &&value)
AWS_APPLICATIONSIGNALS_API CalendarInterval()
const Aws::Utils::DateTime & GetStartTime() const
CalendarInterval & WithStartTime(const Aws::Utils::DateTime &value)
CalendarInterval & WithDurationUnit(const DurationUnit &value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDurationUnit(const DurationUnit &value)
AWS_APPLICATIONSIGNALS_API CalendarInterval(Aws::Utils::Json::JsonView jsonValue)
void SetStartTime(const Aws::Utils::DateTime &value)
Aws::Utils::Json::JsonValue JsonValue