AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
OffPeakWindowOptions.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/OffPeakWindow.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions() = default;
38 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline bool GetEnabled() const { return m_enabled; }
52 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
53 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
54 inline OffPeakWindowOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
56
58
61 inline const OffPeakWindow& GetOffPeakWindow() const { return m_offPeakWindow; }
62 inline bool OffPeakWindowHasBeenSet() const { return m_offPeakWindowHasBeenSet; }
63 template<typename OffPeakWindowT = OffPeakWindow>
64 void SetOffPeakWindow(OffPeakWindowT&& value) { m_offPeakWindowHasBeenSet = true; m_offPeakWindow = std::forward<OffPeakWindowT>(value); }
65 template<typename OffPeakWindowT = OffPeakWindow>
66 OffPeakWindowOptions& WithOffPeakWindow(OffPeakWindowT&& value) { SetOffPeakWindow(std::forward<OffPeakWindowT>(value)); return *this;}
68 private:
69
70 bool m_enabled{false};
71 bool m_enabledHasBeenSet = false;
72
73 OffPeakWindow m_offPeakWindow;
74 bool m_offPeakWindowHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace OpenSearchService
79} // namespace Aws
OffPeakWindowOptions & WithOffPeakWindow(OffPeakWindowT &&value)
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions()=default
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue