AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
AutoTuneOptionsOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9#include <aws/es/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 ElasticsearchService {
21namespace Model {
22
30 public:
31 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput() = default;
32 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptionsOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ELASTICSEARCHSERVICE_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 private:
71
72 Aws::String m_errorMessage;
73 bool m_stateHasBeenSet = false;
74 bool m_errorMessageHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ElasticsearchService
79} // 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