AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
OffPeakWindowOptionsStatus.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/OffPeakWindowOptions.h>
9#include <aws/opensearch/model/OptionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
31 public:
32 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptionsStatus() = default;
33 AWS_OPENSEARCHSERVICE_API OffPeakWindowOptionsStatus(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const OffPeakWindowOptions& GetOptions() const { return m_options; }
42 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
43 template <typename OptionsT = OffPeakWindowOptions>
44 void SetOptions(OptionsT&& value) {
45 m_optionsHasBeenSet = true;
46 m_options = std::forward<OptionsT>(value);
47 }
48 template <typename OptionsT = OffPeakWindowOptions>
50 SetOptions(std::forward<OptionsT>(value));
51 return *this;
52 }
54
56
59 inline const OptionStatus& GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 template <typename StatusT = OptionStatus>
62 void SetStatus(StatusT&& value) {
63 m_statusHasBeenSet = true;
64 m_status = std::forward<StatusT>(value);
65 }
66 template <typename StatusT = OptionStatus>
68 SetStatus(std::forward<StatusT>(value));
69 return *this;
70 }
72 private:
73 OffPeakWindowOptions m_options;
74
75 OptionStatus m_status;
76 bool m_optionsHasBeenSet = false;
77 bool m_statusHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace OpenSearchService
82} // namespace Aws
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptionsStatus()=default
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptionsStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API OffPeakWindowOptionsStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
OffPeakWindowOptionsStatus & WithStatus(StatusT &&value)
OffPeakWindowOptionsStatus & WithOptions(OptionsT &&value)
Aws::Utils::Json::JsonValue JsonValue