AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Interval.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/RollingInterval.h>
9#include <aws/application-signals/model/CalendarInterval.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 Interval();
37 AWS_APPLICATIONSIGNALS_API Interval(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONSIGNALS_API Interval& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const RollingInterval& GetRollingInterval() const{ return m_rollingInterval; }
48 inline bool RollingIntervalHasBeenSet() const { return m_rollingIntervalHasBeenSet; }
49 inline void SetRollingInterval(const RollingInterval& value) { m_rollingIntervalHasBeenSet = true; m_rollingInterval = value; }
50 inline void SetRollingInterval(RollingInterval&& value) { m_rollingIntervalHasBeenSet = true; m_rollingInterval = std::move(value); }
51 inline Interval& WithRollingInterval(const RollingInterval& value) { SetRollingInterval(value); return *this;}
52 inline Interval& WithRollingInterval(RollingInterval&& value) { SetRollingInterval(std::move(value)); return *this;}
54
56
60 inline const CalendarInterval& GetCalendarInterval() const{ return m_calendarInterval; }
61 inline bool CalendarIntervalHasBeenSet() const { return m_calendarIntervalHasBeenSet; }
62 inline void SetCalendarInterval(const CalendarInterval& value) { m_calendarIntervalHasBeenSet = true; m_calendarInterval = value; }
63 inline void SetCalendarInterval(CalendarInterval&& value) { m_calendarIntervalHasBeenSet = true; m_calendarInterval = std::move(value); }
64 inline Interval& WithCalendarInterval(const CalendarInterval& value) { SetCalendarInterval(value); return *this;}
65 inline Interval& WithCalendarInterval(CalendarInterval&& value) { SetCalendarInterval(std::move(value)); return *this;}
67 private:
68
69 RollingInterval m_rollingInterval;
70 bool m_rollingIntervalHasBeenSet = false;
71
72 CalendarInterval m_calendarInterval;
73 bool m_calendarIntervalHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace ApplicationSignals
78} // namespace Aws
Interval & WithCalendarInterval(CalendarInterval &&value)
Definition Interval.h:65
Interval & WithRollingInterval(const RollingInterval &value)
Definition Interval.h:51
void SetRollingInterval(const RollingInterval &value)
Definition Interval.h:49
void SetCalendarInterval(CalendarInterval &&value)
Definition Interval.h:63
AWS_APPLICATIONSIGNALS_API Interval()
void SetRollingInterval(RollingInterval &&value)
Definition Interval.h:50
void SetCalendarInterval(const CalendarInterval &value)
Definition Interval.h:62
const CalendarInterval & GetCalendarInterval() const
Definition Interval.h:60
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
Interval & WithRollingInterval(RollingInterval &&value)
Definition Interval.h:52
Interval & WithCalendarInterval(const CalendarInterval &value)
Definition Interval.h:64
AWS_APPLICATIONSIGNALS_API Interval(Aws::Utils::Json::JsonView jsonValue)
const RollingInterval & GetRollingInterval() const
Definition Interval.h:47
AWS_APPLICATIONSIGNALS_API Interval & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue