AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
MaintenanceWindow.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
31 public:
32 AWS_IOT_API MaintenanceWindow() = default;
36
38
41 inline const Aws::String& GetStartTime() const { return m_startTime; }
42 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
43 template <typename StartTimeT = Aws::String>
44 void SetStartTime(StartTimeT&& value) {
45 m_startTimeHasBeenSet = true;
46 m_startTime = std::forward<StartTimeT>(value);
47 }
48 template <typename StartTimeT = Aws::String>
49 MaintenanceWindow& WithStartTime(StartTimeT&& value) {
50 SetStartTime(std::forward<StartTimeT>(value));
51 return *this;
52 }
54
56
59 inline int GetDurationInMinutes() const { return m_durationInMinutes; }
60 inline bool DurationInMinutesHasBeenSet() const { return m_durationInMinutesHasBeenSet; }
61 inline void SetDurationInMinutes(int value) {
62 m_durationInMinutesHasBeenSet = true;
63 m_durationInMinutes = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_startTime;
72
73 int m_durationInMinutes{0};
74 bool m_startTimeHasBeenSet = false;
75 bool m_durationInMinutesHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
MaintenanceWindow & WithDurationInMinutes(int value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API MaintenanceWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindow & WithStartTime(StartTimeT &&value)
const Aws::String & GetStartTime() const
AWS_IOT_API MaintenanceWindow()=default
void SetStartTime(StartTimeT &&value)
AWS_IOT_API MaintenanceWindow(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue