AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AutoTuneState& GetState() const{ return m_state; }
47 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
48 inline void SetState(const AutoTuneState& value) { m_stateHasBeenSet = true; m_state = value; }
49 inline void SetState(AutoTuneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
50 inline AutoTuneOptionsOutput& WithState(const AutoTuneState& value) { SetState(value); return *this;}
51 inline AutoTuneOptionsOutput& WithState(AutoTuneState&& value) { SetState(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
61 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
62 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
63 inline AutoTuneOptionsOutput& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
64 inline AutoTuneOptionsOutput& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
65 inline AutoTuneOptionsOutput& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
67
69
73 inline bool GetUseOffPeakWindow() const{ return m_useOffPeakWindow; }
74 inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; }
75 inline void SetUseOffPeakWindow(bool value) { m_useOffPeakWindowHasBeenSet = true; m_useOffPeakWindow = value; }
76 inline AutoTuneOptionsOutput& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;}
78 private:
79
80 AutoTuneState m_state;
81 bool m_stateHasBeenSet = false;
82
83 Aws::String m_errorMessage;
84 bool m_errorMessageHasBeenSet = false;
85
86 bool m_useOffPeakWindow;
87 bool m_useOffPeakWindowHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace OpenSearchService
92} // namespace Aws
AutoTuneOptionsOutput & WithErrorMessage(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneOptionsOutput & WithState(AutoTuneState &&value)
AutoTuneOptionsOutput & WithState(const AutoTuneState &value)
AutoTuneOptionsOutput & WithErrorMessage(Aws::String &&value)
AutoTuneOptionsOutput & WithErrorMessage(const char *value)
AutoTuneOptionsOutput & WithUseOffPeakWindow(bool value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue