AWS SDK for C++  1.9.160
AWS SDK for C++
AutoTuneOptionsOutput.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ElasticsearchService
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const AutoTuneState& GetState() const{ return m_state; }
46 
50  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 
55  inline void SetState(const AutoTuneState& value) { m_stateHasBeenSet = true; m_state = value; }
56 
60  inline void SetState(AutoTuneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
61 
65  inline AutoTuneOptionsOutput& WithState(const AutoTuneState& value) { SetState(value); return *this;}
66 
70  inline AutoTuneOptionsOutput& WithState(AutoTuneState&& value) { SetState(std::move(value)); return *this;}
71 
72 
76  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
77 
81  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
82 
86  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
87 
91  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
92 
96  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
97 
101  inline AutoTuneOptionsOutput& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
102 
106  inline AutoTuneOptionsOutput& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
107 
111  inline AutoTuneOptionsOutput& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
112 
113  private:
114 
115  AutoTuneState m_state;
116  bool m_stateHasBeenSet;
117 
118  Aws::String m_errorMessage;
119  bool m_errorMessageHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace ElasticsearchService
124 } // namespace Aws
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::WithErrorMessage
AutoTuneOptionsOutput & WithErrorMessage(const Aws::String &value)
Definition: AutoTuneOptionsOutput.h:101
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::GetState
const AutoTuneState & GetState() const
Definition: AutoTuneOptionsOutput.h:45
Aws::ElasticsearchService::Model::AutoTuneState
AutoTuneState
Definition: AutoTuneState.h:17
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::operator=
AutoTuneOptionsOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: AutoTuneOptionsOutput.h:76
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::AutoTuneOptionsOutput
AutoTuneOptionsOutput(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::StateHasBeenSet
bool StateHasBeenSet() const
Definition: AutoTuneOptionsOutput.h:50
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::WithErrorMessage
AutoTuneOptionsOutput & WithErrorMessage(Aws::String &&value)
Definition: AutoTuneOptionsOutput.h:106
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::SetState
void SetState(AutoTuneState &&value)
Definition: AutoTuneOptionsOutput.h:60
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::WithState
AutoTuneOptionsOutput & WithState(AutoTuneState &&value)
Definition: AutoTuneOptionsOutput.h:70
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::WithErrorMessage
AutoTuneOptionsOutput & WithErrorMessage(const char *value)
Definition: AutoTuneOptionsOutput.h:111
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::SetState
void SetState(const AutoTuneState &value)
Definition: AutoTuneOptionsOutput.h:55
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::AutoTuneOptionsOutput
AutoTuneOptionsOutput()
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::WithState
AutoTuneOptionsOutput & WithState(const AutoTuneState &value)
Definition: AutoTuneOptionsOutput.h:65
AutoTuneState.h
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: AutoTuneOptionsOutput.h:96
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: AutoTuneOptionsOutput.h:86
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: AutoTuneOptionsOutput.h:91
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput
Definition: AutoTuneOptionsOutput.h:34
Aws::ElasticsearchService::Model::AutoTuneOptionsOutput::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: AutoTuneOptionsOutput.h:81