AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOffPeakWindow(const OffPeakWindow& value) { m_offPeakWindowHasBeenSet = true; m_offPeakWindow = value; }
64 inline void SetOffPeakWindow(OffPeakWindow&& value) { m_offPeakWindowHasBeenSet = true; m_offPeakWindow = std::move(value); }
65 inline OffPeakWindowOptions& WithOffPeakWindow(const OffPeakWindow& value) { SetOffPeakWindow(value); return *this;}
66 inline OffPeakWindowOptions& WithOffPeakWindow(OffPeakWindow&& value) { SetOffPeakWindow(std::move(value)); return *this;}
68 private:
69
70 bool m_enabled;
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(OffPeakWindow &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
OffPeakWindowOptions & WithOffPeakWindow(const OffPeakWindow &value)
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue