AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TimeAlignmentBoundary.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/forecast/model/Month.h>
9#include <aws/forecast/model/DayOfWeek.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 ForecastService
23{
24namespace Model
25{
26
42 {
43 public:
44 AWS_FORECASTSERVICE_API TimeAlignmentBoundary() = default;
45 AWS_FORECASTSERVICE_API TimeAlignmentBoundary(Aws::Utils::Json::JsonView jsonValue);
46 AWS_FORECASTSERVICE_API TimeAlignmentBoundary& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline Month GetMonth() const { return m_month; }
56 inline bool MonthHasBeenSet() const { return m_monthHasBeenSet; }
57 inline void SetMonth(Month value) { m_monthHasBeenSet = true; m_month = value; }
58 inline TimeAlignmentBoundary& WithMonth(Month value) { SetMonth(value); return *this;}
60
62
65 inline int GetDayOfMonth() const { return m_dayOfMonth; }
66 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
67 inline void SetDayOfMonth(int value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; }
68 inline TimeAlignmentBoundary& WithDayOfMonth(int value) { SetDayOfMonth(value); return *this;}
70
72
76 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
77 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
78 inline void SetDayOfWeek(DayOfWeek value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; }
79 inline TimeAlignmentBoundary& WithDayOfWeek(DayOfWeek value) { SetDayOfWeek(value); return *this;}
81
83
86 inline int GetHour() const { return m_hour; }
87 inline bool HourHasBeenSet() const { return m_hourHasBeenSet; }
88 inline void SetHour(int value) { m_hourHasBeenSet = true; m_hour = value; }
89 inline TimeAlignmentBoundary& WithHour(int value) { SetHour(value); return *this;}
91 private:
92
93 Month m_month{Month::NOT_SET};
94 bool m_monthHasBeenSet = false;
95
96 int m_dayOfMonth{0};
97 bool m_dayOfMonthHasBeenSet = false;
98
99 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
100 bool m_dayOfWeekHasBeenSet = false;
101
102 int m_hour{0};
103 bool m_hourHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace ForecastService
108} // namespace Aws
AWS_FORECASTSERVICE_API TimeAlignmentBoundary()=default
TimeAlignmentBoundary & WithDayOfWeek(DayOfWeek value)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FORECASTSERVICE_API TimeAlignmentBoundary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API TimeAlignmentBoundary(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue