AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
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
31 public:
32 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions() = default;
33 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline bool GetEnabled() const { return m_enabled; }
46 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
47 inline void SetEnabled(bool value) {
48 m_enabledHasBeenSet = true;
49 m_enabled = value;
50 }
51 inline OffPeakWindowOptions& WithEnabled(bool value) {
52 SetEnabled(value);
53 return *this;
54 }
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) {
65 m_offPeakWindowHasBeenSet = true;
66 m_offPeakWindow = std::forward<OffPeakWindowT>(value);
67 }
68 template <typename OffPeakWindowT = OffPeakWindow>
69 OffPeakWindowOptions& WithOffPeakWindow(OffPeakWindowT&& value) {
70 SetOffPeakWindow(std::forward<OffPeakWindowT>(value));
71 return *this;
72 }
74 private:
75 bool m_enabled{false};
76
77 OffPeakWindow m_offPeakWindow;
78 bool m_enabledHasBeenSet = false;
79 bool m_offPeakWindowHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace OpenSearchService
84} // 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