AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AutoTuneStatus.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/es/model/AutoTuneState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ElasticsearchService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus() = default;
38 AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
48 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
49 template<typename CreationDateT = Aws::Utils::DateTime>
50 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
51 template<typename CreationDateT = Aws::Utils::DateTime>
52 AutoTuneStatus& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
54
56
59 inline const Aws::Utils::DateTime& GetUpdateDate() const { return m_updateDate; }
60 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
61 template<typename UpdateDateT = Aws::Utils::DateTime>
62 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::forward<UpdateDateT>(value); }
63 template<typename UpdateDateT = Aws::Utils::DateTime>
64 AutoTuneStatus& WithUpdateDate(UpdateDateT&& value) { SetUpdateDate(std::forward<UpdateDateT>(value)); return *this;}
66
68
71 inline int GetUpdateVersion() const { return m_updateVersion; }
72 inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
73 inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
74 inline AutoTuneStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
76
78
81 inline AutoTuneState GetState() const { return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(AutoTuneState value) { m_stateHasBeenSet = true; m_state = value; }
84 inline AutoTuneStatus& WithState(AutoTuneState value) { SetState(value); return *this;}
86
88
92 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
93 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
94 template<typename ErrorMessageT = Aws::String>
95 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
96 template<typename ErrorMessageT = Aws::String>
97 AutoTuneStatus& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
99
101
104 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
105 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
106 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
107 inline AutoTuneStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
109 private:
110
111 Aws::Utils::DateTime m_creationDate{};
112 bool m_creationDateHasBeenSet = false;
113
114 Aws::Utils::DateTime m_updateDate{};
115 bool m_updateDateHasBeenSet = false;
116
117 int m_updateVersion{0};
118 bool m_updateVersionHasBeenSet = false;
119
121 bool m_stateHasBeenSet = false;
122
123 Aws::String m_errorMessage;
124 bool m_errorMessageHasBeenSet = false;
125
126 bool m_pendingDeletion{false};
127 bool m_pendingDeletionHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace ElasticsearchService
132} // namespace Aws
AutoTuneStatus & WithUpdateDate(UpdateDateT &&value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneStatus & WithState(AutoTuneState value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus()=default
AutoTuneStatus & WithErrorMessage(ErrorMessageT &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationDate() const
AutoTuneStatus & WithCreationDate(CreationDateT &&value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdateDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue