AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OptionStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/OptionState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
29 public:
30 AWS_OPENSEARCHSERVICE_API OptionStatus() = default;
31 AWS_OPENSEARCHSERVICE_API OptionStatus(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API OptionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
40 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
41 template <typename CreationDateT = Aws::Utils::DateTime>
42 void SetCreationDate(CreationDateT&& value) {
43 m_creationDateHasBeenSet = true;
44 m_creationDate = std::forward<CreationDateT>(value);
45 }
46 template <typename CreationDateT = Aws::Utils::DateTime>
47 OptionStatus& WithCreationDate(CreationDateT&& value) {
48 SetCreationDate(std::forward<CreationDateT>(value));
49 return *this;
50 }
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) {
61 m_updateDateHasBeenSet = true;
62 m_updateDate = std::forward<UpdateDateT>(value);
63 }
64 template <typename UpdateDateT = Aws::Utils::DateTime>
65 OptionStatus& WithUpdateDate(UpdateDateT&& value) {
66 SetUpdateDate(std::forward<UpdateDateT>(value));
67 return *this;
68 }
70
72
75 inline int GetUpdateVersion() const { return m_updateVersion; }
76 inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
77 inline void SetUpdateVersion(int value) {
78 m_updateVersionHasBeenSet = true;
79 m_updateVersion = value;
80 }
81 inline OptionStatus& WithUpdateVersion(int value) {
82 SetUpdateVersion(value);
83 return *this;
84 }
86
88
91 inline OptionState GetState() const { return m_state; }
92 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
93 inline void SetState(OptionState value) {
94 m_stateHasBeenSet = true;
95 m_state = value;
96 }
98 SetState(value);
99 return *this;
100 }
102
104
107 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
108 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
109 inline void SetPendingDeletion(bool value) {
110 m_pendingDeletionHasBeenSet = true;
111 m_pendingDeletion = value;
112 }
113 inline OptionStatus& WithPendingDeletion(bool value) {
114 SetPendingDeletion(value);
115 return *this;
116 }
118 private:
119 Aws::Utils::DateTime m_creationDate{};
120
121 Aws::Utils::DateTime m_updateDate{};
122
123 int m_updateVersion{0};
124
126
127 bool m_pendingDeletion{false};
128 bool m_creationDateHasBeenSet = false;
129 bool m_updateDateHasBeenSet = false;
130 bool m_updateVersionHasBeenSet = false;
131 bool m_stateHasBeenSet = false;
132 bool m_pendingDeletionHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace OpenSearchService
137} // 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