AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AutoTuneOptionsOutput.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/AutoTuneState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput() = default;
37 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline AutoTuneState GetState() const { return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(AutoTuneState value) { m_stateHasBeenSet = true; m_state = value; }
49 inline AutoTuneOptionsOutput& WithState(AutoTuneState value) { SetState(value); return *this;}
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) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
60 template<typename ErrorMessageT = Aws::String>
61 AutoTuneOptionsOutput& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
63
65
69 inline bool GetUseOffPeakWindow() const { return m_useOffPeakWindow; }
70 inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; }
71 inline void SetUseOffPeakWindow(bool value) { m_useOffPeakWindowHasBeenSet = true; m_useOffPeakWindow = value; }
72 inline AutoTuneOptionsOutput& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;}
74 private:
75
77 bool m_stateHasBeenSet = false;
78
79 Aws::String m_errorMessage;
80 bool m_errorMessageHasBeenSet = false;
81
82 bool m_useOffPeakWindow{false};
83 bool m_useOffPeakWindowHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace OpenSearchService
88} // 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