AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
50 inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
51 inline OptionStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
52 inline OptionStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(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 inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
62 inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); }
63 inline OptionStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
64 inline OptionStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(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 const OptionState& GetState() const{ return m_state; }
90 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
91 inline void SetState(const OptionState& value) { m_stateHasBeenSet = true; m_state = value; }
92 inline void SetState(OptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
93 inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;}
94 inline OptionStatus& WithState(OptionState&& value) { SetState(std::move(value)); return *this;}
96
98
101 inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
102 inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; }
103 inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
104 inline OptionStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
106 private:
107
108 Aws::Utils::DateTime m_creationDate;
109 bool m_creationDateHasBeenSet = false;
110
111 Aws::Utils::DateTime m_updateDate;
112 bool m_updateDateHasBeenSet = false;
113
114 int m_updateVersion;
115 bool m_updateVersionHasBeenSet = false;
116
117 OptionState m_state;
118 bool m_stateHasBeenSet = false;
119
120 bool m_pendingDeletion;
121 bool m_pendingDeletionHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CloudSearch
126} // namespace Aws
void SetState(const OptionState &value)
OptionStatus & WithCreationDate(Aws::Utils::DateTime &&value)
OptionStatus & WithCreationDate(const Aws::Utils::DateTime &value)
OptionStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
AWS_CLOUDSEARCH_API OptionStatus()
OptionStatus & WithUpdateVersion(int value)
void SetCreationDate(Aws::Utils::DateTime &&value)
AWS_CLOUDSEARCH_API OptionStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API OptionStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetUpdateDate(Aws::Utils::DateTime &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetUpdateDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCreationDate() const
OptionStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
OptionStatus & WithState(OptionState &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
OptionStatus & WithState(const OptionState &value)
const Aws::Utils::DateTime & GetUpdateDate() const
OptionStatus & WithPendingDeletion(bool value)
void SetState(OptionState &&value)
const OptionState & GetState() const
std::basic_ostream< char, std::char_traits< char > > OStream