AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TimeAlignmentBoundary.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/forecast/model/DayOfWeek.h>
9#include <aws/forecast/model/Month.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ForecastService {
21namespace Model {
22
38 public:
39 AWS_FORECASTSERVICE_API TimeAlignmentBoundary() = default;
40 AWS_FORECASTSERVICE_API TimeAlignmentBoundary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_FORECASTSERVICE_API TimeAlignmentBoundary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
49 inline Month GetMonth() const { return m_month; }
50 inline bool MonthHasBeenSet() const { return m_monthHasBeenSet; }
51 inline void SetMonth(Month value) {
52 m_monthHasBeenSet = true;
53 m_month = value;
54 }
56 SetMonth(value);
57 return *this;
58 }
60
62
65 inline int GetDayOfMonth() const { return m_dayOfMonth; }
66 inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; }
67 inline void SetDayOfMonth(int value) {
68 m_dayOfMonthHasBeenSet = true;
69 m_dayOfMonth = value;
70 }
72 SetDayOfMonth(value);
73 return *this;
74 }
76
78
82 inline DayOfWeek GetDayOfWeek() const { return m_dayOfWeek; }
83 inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; }
84 inline void SetDayOfWeek(DayOfWeek value) {
85 m_dayOfWeekHasBeenSet = true;
86 m_dayOfWeek = value;
87 }
89 SetDayOfWeek(value);
90 return *this;
91 }
93
95
98 inline int GetHour() const { return m_hour; }
99 inline bool HourHasBeenSet() const { return m_hourHasBeenSet; }
100 inline void SetHour(int value) {
101 m_hourHasBeenSet = true;
102 m_hour = value;
103 }
104 inline TimeAlignmentBoundary& WithHour(int value) {
105 SetHour(value);
106 return *this;
107 }
109 private:
110 Month m_month{Month::NOT_SET};
111
112 int m_dayOfMonth{0};
113
114 DayOfWeek m_dayOfWeek{DayOfWeek::NOT_SET};
115
116 int m_hour{0};
117 bool m_monthHasBeenSet = false;
118 bool m_dayOfMonthHasBeenSet = false;
119 bool m_dayOfWeekHasBeenSet = false;
120 bool m_hourHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace ForecastService
125} // 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