AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AutoTuneOptionsOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/AutoTuneState.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
30 public:
31 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput() = default;
32 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline AutoTuneState GetState() const { return m_state; }
41 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
42 inline void SetState(AutoTuneState value) {
43 m_stateHasBeenSet = true;
44 m_state = value;
45 }
47 SetState(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
57 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
58 template <typename ErrorMessageT = Aws::String>
59 void SetErrorMessage(ErrorMessageT&& value) {
60 m_errorMessageHasBeenSet = true;
61 m_errorMessage = std::forward<ErrorMessageT>(value);
62 }
63 template <typename ErrorMessageT = Aws::String>
64 AutoTuneOptionsOutput& WithErrorMessage(ErrorMessageT&& value) {
65 SetErrorMessage(std::forward<ErrorMessageT>(value));
66 return *this;
67 }
69
71
75 inline bool GetUseOffPeakWindow() const { return m_useOffPeakWindow; }
76 inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; }
77 inline void SetUseOffPeakWindow(bool value) {
78 m_useOffPeakWindowHasBeenSet = true;
79 m_useOffPeakWindow = value;
80 }
83 return *this;
84 }
86 private:
88
89 Aws::String m_errorMessage;
90
91 bool m_useOffPeakWindow{false};
92 bool m_stateHasBeenSet = false;
93 bool m_errorMessageHasBeenSet = false;
94 bool m_useOffPeakWindowHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace OpenSearchService
99} // namespace Aws
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput()=default
AutoTuneOptionsOutput & WithState(AutoTuneState value)
AutoTuneOptionsOutput & WithUseOffPeakWindow(bool value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue)
AutoTuneOptionsOutput & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue