AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
50 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
51 inline AutoTuneStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
52 inline AutoTuneStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(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 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
62 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
63 inline AutoTuneStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
64 inline AutoTuneStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(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 const AutoTuneState& GetState() const{ return m_state; }
82 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
83 inline void SetState(const AutoTuneState& value) { m_stateHasBeenSet = true; m_state = value; }
84 inline void SetState(AutoTuneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
85 inline AutoTuneStatus& WithState(const AutoTuneState& value) { SetState(value); return *this;}
86 inline AutoTuneStatus& WithState(AutoTuneState&& value) { SetState(std::move(value)); return *this;}
88
90
94 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
95 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
96 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
97 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
98 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
99 inline AutoTuneStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
100 inline AutoTuneStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
101 inline AutoTuneStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
103
105
108 inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
109 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
110 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
111 inline AutoTuneStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
113 private:
114
115 Aws::Utils::DateTime m_creationDate;
116 bool m_creationDateHasBeenSet = false;
117
118 Aws::Utils::DateTime m_updateDate;
119 bool m_updateDateHasBeenSet = false;
120
121 int m_updateVersion;
122 bool m_updateVersionHasBeenSet = false;
123
124 AutoTuneState m_state;
125 bool m_stateHasBeenSet = false;
126
127 Aws::String m_errorMessage;
128 bool m_errorMessageHasBeenSet = false;
129
130 bool m_pendingDeletion;
131 bool m_pendingDeletionHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ElasticsearchService
136} // namespace Aws
void SetState(const AutoTuneState &value)
AutoTuneStatus & WithErrorMessage(const Aws::String &value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneStatus & WithErrorMessage(Aws::String &&value)
AutoTuneStatus & WithState(const AutoTuneState &value)
AutoTuneStatus & WithCreationDate(const Aws::Utils::DateTime &value)
AutoTuneStatus & WithState(AutoTuneState &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetCreationDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreationDate() const
AutoTuneStatus & WithCreationDate(Aws::Utils::DateTime &&value)
void SetUpdateDate(Aws::Utils::DateTime &&value)
AutoTuneStatus & WithErrorMessage(const char *value)
AutoTuneStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus(Aws::Utils::Json::JsonView jsonValue)
void SetErrorMessage(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdateDate() const
AWS_ELASTICSEARCHSERVICE_API AutoTuneStatus()
void SetUpdateDate(const Aws::Utils::DateTime &value)
AutoTuneStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue