AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AutoTuneOptionsOutput.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/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 ElasticsearchService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput() = default;
37 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_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 private:
64
66 bool m_stateHasBeenSet = false;
67
68 Aws::String m_errorMessage;
69 bool m_errorMessageHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace ElasticsearchService
74} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput()=default
AutoTuneOptionsOutput & WithState(AutoTuneState value)
AutoTuneOptionsOutput & WithErrorMessage(ErrorMessageT &&value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue