AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OptionStatus.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/opensearch/model/OptionState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_OPENSEARCHSERVICE_API OptionStatus() = default;
36 AWS_OPENSEARCHSERVICE_API OptionStatus(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVICE_API OptionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
46 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
47 template<typename CreationDateT = Aws::Utils::DateTime>
48 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
49 template<typename CreationDateT = Aws::Utils::DateTime>
50 OptionStatus& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetUpdateDate() const { return m_updateDate; }
58 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
59 template<typename UpdateDateT = Aws::Utils::DateTime>
60 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::forward<UpdateDateT>(value); }
61 template<typename UpdateDateT = Aws::Utils::DateTime>
62 OptionStatus& WithUpdateDate(UpdateDateT&& value) { SetUpdateDate(std::forward<UpdateDateT>(value)); return *this;}
64
66
69 inline int GetUpdateVersion() const { return m_updateVersion; }
70 inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
71 inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
72 inline OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
74
76
79 inline OptionState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(OptionState value) { m_stateHasBeenSet = true; m_state = value; }
82 inline OptionStatus& WithState(OptionState value) { SetState(value); return *this;}
84
86
89 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
90 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
91 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
92 inline OptionStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
94 private:
95
96 Aws::Utils::DateTime m_creationDate{};
97 bool m_creationDateHasBeenSet = false;
98
99 Aws::Utils::DateTime m_updateDate{};
100 bool m_updateDateHasBeenSet = false;
101
102 int m_updateVersion{0};
103 bool m_updateVersionHasBeenSet = false;
104
106 bool m_stateHasBeenSet = false;
107
108 bool m_pendingDeletion{false};
109 bool m_pendingDeletionHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace OpenSearchService
114} // namespace Aws
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
OptionStatus & WithPendingDeletion(bool value)
AWS_OPENSEARCHSERVICE_API OptionStatus()=default
OptionStatus & WithUpdateVersion(int value)
const Aws::Utils::DateTime & GetCreationDate() const
AWS_OPENSEARCHSERVICE_API OptionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDate(CreationDateT &&value)
OptionStatus & WithState(OptionState value)
OptionStatus & WithCreationDate(CreationDateT &&value)
OptionStatus & WithUpdateDate(UpdateDateT &&value)
AWS_OPENSEARCHSERVICE_API OptionStatus(Aws::Utils::Json::JsonView jsonValue)
void SetUpdateDate(UpdateDateT &&value)
const Aws::Utils::DateTime & GetUpdateDate() const
Aws::Utils::Json::JsonValue JsonValue