AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
OptionStatus.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/cloudsearch/model/OptionState.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudSearch {
21namespace Model {
22
29 public:
30 AWS_CLOUDSEARCH_API OptionStatus() = default;
31 AWS_CLOUDSEARCH_API OptionStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDSEARCH_API OptionStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
42 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
43 template <typename CreationDateT = Aws::Utils::DateTime>
44 void SetCreationDate(CreationDateT&& value) {
45 m_creationDateHasBeenSet = true;
46 m_creationDate = std::forward<CreationDateT>(value);
47 }
48 template <typename CreationDateT = Aws::Utils::DateTime>
49 OptionStatus& WithCreationDate(CreationDateT&& value) {
50 SetCreationDate(std::forward<CreationDateT>(value));
51 return *this;
52 }
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) {
63 m_updateDateHasBeenSet = true;
64 m_updateDate = std::forward<UpdateDateT>(value);
65 }
66 template <typename UpdateDateT = Aws::Utils::DateTime>
67 OptionStatus& WithUpdateDate(UpdateDateT&& value) {
68 SetUpdateDate(std::forward<UpdateDateT>(value));
69 return *this;
70 }
72
74
77 inline int GetUpdateVersion() const { return m_updateVersion; }
78 inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; }
79 inline void SetUpdateVersion(int value) {
80 m_updateVersionHasBeenSet = true;
81 m_updateVersion = value;
82 }
83 inline OptionStatus& WithUpdateVersion(int value) {
84 SetUpdateVersion(value);
85 return *this;
86 }
88
90
101 inline OptionState GetState() const { return m_state; }
102 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
103 inline void SetState(OptionState value) {
104 m_stateHasBeenSet = true;
105 m_state = value;
106 }
108 SetState(value);
109 return *this;
110 }
112
114
117 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
118 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
119 inline void SetPendingDeletion(bool value) {
120 m_pendingDeletionHasBeenSet = true;
121 m_pendingDeletion = value;
122 }
123 inline OptionStatus& WithPendingDeletion(bool value) {
124 SetPendingDeletion(value);
125 return *this;
126 }
128 private:
129 Aws::Utils::DateTime m_creationDate{};
130
131 Aws::Utils::DateTime m_updateDate{};
132
133 int m_updateVersion{0};
134
136
137 bool m_pendingDeletion{false};
138 bool m_creationDateHasBeenSet = false;
139 bool m_updateDateHasBeenSet = false;
140 bool m_updateVersionHasBeenSet = false;
141 bool m_stateHasBeenSet = false;
142 bool m_pendingDeletionHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace CloudSearch
147} // namespace Aws
void SetUpdateDate(UpdateDateT &&value)
void SetCreationDate(CreationDateT &&value)
OptionStatus & WithUpdateVersion(int value)
AWS_CLOUDSEARCH_API OptionStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API OptionStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionStatus & WithState(OptionState value)
OptionStatus & WithCreationDate(CreationDateT &&value)
AWS_CLOUDSEARCH_API OptionStatus()=default
OptionStatus & WithUpdateDate(UpdateDateT &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetCreationDate() const
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetUpdateDate() const
OptionStatus & WithPendingDeletion(bool value)
std::basic_ostream< char, std::char_traits< char > > OStream