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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/opensearch/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 OpenSearchService
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API AutoTuneStatus();
39 AWS_OPENSEARCHSERVICE_API AutoTuneStatus(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API AutoTuneStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
49 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
50 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
51 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
52 inline AutoTuneStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
53 inline AutoTuneStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
62 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
63 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
64 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
65 inline AutoTuneStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
66 inline AutoTuneStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;}
68
70
73 inline int GetUpdateVersion() const{ return m_updateVersion; }
74 inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
75 inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
76 inline AutoTuneStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
78
80
83 inline const AutoTuneState& GetState() const{ return m_state; }
84 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
85 inline void SetState(const AutoTuneState& value) { m_stateHasBeenSet = true; m_state = value; }
86 inline void SetState(AutoTuneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
87 inline AutoTuneStatus& WithState(const AutoTuneState& value) { SetState(value); return *this;}
88 inline AutoTuneStatus& WithState(AutoTuneState&& value) { SetState(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
96 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
97 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
98 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
99 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
100 inline AutoTuneStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
101 inline AutoTuneStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
102 inline AutoTuneStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
104
106
109 inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
110 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
111 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
112 inline AutoTuneStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
114 private:
115
116 Aws::Utils::DateTime m_creationDate;
117 bool m_creationDateHasBeenSet = false;
118
119 Aws::Utils::DateTime m_updateDate;
120 bool m_updateDateHasBeenSet = false;
121
122 int m_updateVersion;
123 bool m_updateVersionHasBeenSet = false;
124
125 AutoTuneState m_state;
126 bool m_stateHasBeenSet = false;
127
128 Aws::String m_errorMessage;
129 bool m_errorMessageHasBeenSet = false;
130
131 bool m_pendingDeletion;
132 bool m_pendingDeletionHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace OpenSearchService
137} // namespace Aws
AWS_OPENSEARCHSERVICE_API AutoTuneStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneStatus & WithState(const AutoTuneState &value)
AutoTuneStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
AutoTuneStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
AutoTuneStatus & WithErrorMessage(Aws::String &&value)
void SetErrorMessage(const Aws::String &value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetUpdateDate(Aws::Utils::DateTime &&value)
AWS_OPENSEARCHSERVICE_API AutoTuneStatus()
const Aws::Utils::DateTime & GetCreationDate() const
AutoTuneStatus & WithPendingDeletion(bool value)
const Aws::String & GetErrorMessage() const
AWS_OPENSEARCHSERVICE_API AutoTuneStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AutoTuneStatus & WithUpdateVersion(int value)
void SetUpdateDate(const Aws::Utils::DateTime &value)
AutoTuneStatus & WithErrorMessage(const char *value)
void SetState(const AutoTuneState &value)
AutoTuneStatus & WithCreationDate(Aws::Utils::DateTime &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
AutoTuneStatus & WithState(AutoTuneState &&value)
const Aws::Utils::DateTime & GetUpdateDate() const
AutoTuneStatus & WithCreationDate(const Aws::Utils::DateTime &value)
AutoTuneStatus & WithErrorMessage(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue