AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MaintenanceWindowExecution.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/MaintenanceWindowExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSM_API MaintenanceWindowExecution() = default;
41
42
44
47 inline const Aws::String& GetWindowId() const { return m_windowId; }
48 inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; }
49 template<typename WindowIdT = Aws::String>
50 void SetWindowId(WindowIdT&& value) { m_windowIdHasBeenSet = true; m_windowId = std::forward<WindowIdT>(value); }
51 template<typename WindowIdT = Aws::String>
52 MaintenanceWindowExecution& WithWindowId(WindowIdT&& value) { SetWindowId(std::forward<WindowIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetWindowExecutionId() const { return m_windowExecutionId; }
60 inline bool WindowExecutionIdHasBeenSet() const { return m_windowExecutionIdHasBeenSet; }
61 template<typename WindowExecutionIdT = Aws::String>
62 void SetWindowExecutionId(WindowExecutionIdT&& value) { m_windowExecutionIdHasBeenSet = true; m_windowExecutionId = std::forward<WindowExecutionIdT>(value); }
63 template<typename WindowExecutionIdT = Aws::String>
64 MaintenanceWindowExecution& WithWindowExecutionId(WindowExecutionIdT&& value) { SetWindowExecutionId(std::forward<WindowExecutionIdT>(value)); return *this;}
66
68
71 inline MaintenanceWindowExecutionStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(MaintenanceWindowExecutionStatus value) { m_statusHasBeenSet = true; m_status = value; }
76
78
81 inline const Aws::String& GetStatusDetails() const { return m_statusDetails; }
82 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
83 template<typename StatusDetailsT = Aws::String>
84 void SetStatusDetails(StatusDetailsT&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::forward<StatusDetailsT>(value); }
85 template<typename StatusDetailsT = Aws::String>
86 MaintenanceWindowExecution& WithStatusDetails(StatusDetailsT&& value) { SetStatusDetails(std::forward<StatusDetailsT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
94 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
95 template<typename StartTimeT = Aws::Utils::DateTime>
96 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
97 template<typename StartTimeT = Aws::Utils::DateTime>
98 MaintenanceWindowExecution& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
100
102
105 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
106 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
107 template<typename EndTimeT = Aws::Utils::DateTime>
108 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
109 template<typename EndTimeT = Aws::Utils::DateTime>
110 MaintenanceWindowExecution& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
112 private:
113
114 Aws::String m_windowId;
115 bool m_windowIdHasBeenSet = false;
116
117 Aws::String m_windowExecutionId;
118 bool m_windowExecutionIdHasBeenSet = false;
119
121 bool m_statusHasBeenSet = false;
122
123 Aws::String m_statusDetails;
124 bool m_statusDetailsHasBeenSet = false;
125
126 Aws::Utils::DateTime m_startTime{};
127 bool m_startTimeHasBeenSet = false;
128
129 Aws::Utils::DateTime m_endTime{};
130 bool m_endTimeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SSM
135} // namespace Aws
AWS_SSM_API MaintenanceWindowExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API MaintenanceWindowExecution()=default
const Aws::Utils::DateTime & GetEndTime() const
MaintenanceWindowExecution & WithStatus(MaintenanceWindowExecutionStatus value)
void SetStatus(MaintenanceWindowExecutionStatus value)
void SetWindowExecutionId(WindowExecutionIdT &&value)
MaintenanceWindowExecution & WithEndTime(EndTimeT &&value)
const Aws::Utils::DateTime & GetStartTime() const
MaintenanceWindowExecutionStatus GetStatus() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
MaintenanceWindowExecution & WithStartTime(StartTimeT &&value)
AWS_SSM_API MaintenanceWindowExecution(Aws::Utils::Json::JsonView jsonValue)
MaintenanceWindowExecution & WithWindowExecutionId(WindowExecutionIdT &&value)
MaintenanceWindowExecution & WithStatusDetails(StatusDetailsT &&value)
MaintenanceWindowExecution & WithWindowId(WindowIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue