AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OffPeakWindow.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/WindowStartTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
36 public:
37 AWS_OPENSEARCHSERVICE_API OffPeakWindow() = default;
38 AWS_OPENSEARCHSERVICE_API OffPeakWindow(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API OffPeakWindow& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 inline const WindowStartTime& GetWindowStartTime() const { return m_windowStartTime; }
50 inline bool WindowStartTimeHasBeenSet() const { return m_windowStartTimeHasBeenSet; }
51 template <typename WindowStartTimeT = WindowStartTime>
52 void SetWindowStartTime(WindowStartTimeT&& value) {
53 m_windowStartTimeHasBeenSet = true;
54 m_windowStartTime = std::forward<WindowStartTimeT>(value);
55 }
56 template <typename WindowStartTimeT = WindowStartTime>
57 OffPeakWindow& WithWindowStartTime(WindowStartTimeT&& value) {
58 SetWindowStartTime(std::forward<WindowStartTimeT>(value));
59 return *this;
60 }
62 private:
63 WindowStartTime m_windowStartTime;
64 bool m_windowStartTimeHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace OpenSearchService
69} // namespace Aws
AWS_OPENSEARCHSERVICE_API OffPeakWindow(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API OffPeakWindow & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWindowStartTime(WindowStartTimeT &&value)
const WindowStartTime & GetWindowStartTime() const
AWS_OPENSEARCHSERVICE_API OffPeakWindow()=default
OffPeakWindow & WithWindowStartTime(WindowStartTimeT &&value)
Aws::Utils::Json::JsonValue JsonValue