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/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudsearch/model/OptionState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudSearch
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CLOUDSEARCH_API OptionStatus() = default;
36 AWS_CLOUDSEARCH_API OptionStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDSEARCH_API OptionStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
48 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
49 template<typename CreationDateT = Aws::Utils::DateTime>
50 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
51 template<typename CreationDateT = Aws::Utils::DateTime>
52 OptionStatus& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(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 template<typename UpdateDateT = Aws::Utils::DateTime>
62 void SetUpdateDate(UpdateDateT&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::forward<UpdateDateT>(value); }
63 template<typename UpdateDateT = Aws::Utils::DateTime>
64 OptionStatus& WithUpdateDate(UpdateDateT&& value) { SetUpdateDate(std::forward<UpdateDateT>(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 OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
76
78
89 inline OptionState GetState() const { return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(OptionState value) { m_stateHasBeenSet = true; m_state = value; }
92 inline OptionStatus& WithState(OptionState value) { SetState(value); return *this;}
94
96
99 inline bool GetPendingDeletion() const { return m_pendingDeletion; }
100 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
101 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
102 inline OptionStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
104 private:
105
106 Aws::Utils::DateTime m_creationDate{};
107 bool m_creationDateHasBeenSet = false;
108
109 Aws::Utils::DateTime m_updateDate{};
110 bool m_updateDateHasBeenSet = false;
111
112 int m_updateVersion{0};
113 bool m_updateVersionHasBeenSet = false;
114
116 bool m_stateHasBeenSet = false;
117
118 bool m_pendingDeletion{false};
119 bool m_pendingDeletionHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace CloudSearch
124} // 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)
void SetState(OptionState value)
std::basic_ostream< char, std::char_traits< char > > OStream