AWS SDK for C++  1.9.105
AWS SDK for C++
RevisionTarget.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace Redshift
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetDatabaseRevision() const{ return m_databaseRevision; }
48 
53  inline bool DatabaseRevisionHasBeenSet() const { return m_databaseRevisionHasBeenSet; }
54 
59  inline void SetDatabaseRevision(const Aws::String& value) { m_databaseRevisionHasBeenSet = true; m_databaseRevision = value; }
60 
65  inline void SetDatabaseRevision(Aws::String&& value) { m_databaseRevisionHasBeenSet = true; m_databaseRevision = std::move(value); }
66 
71  inline void SetDatabaseRevision(const char* value) { m_databaseRevisionHasBeenSet = true; m_databaseRevision.assign(value); }
72 
77  inline RevisionTarget& WithDatabaseRevision(const Aws::String& value) { SetDatabaseRevision(value); return *this;}
78 
83  inline RevisionTarget& WithDatabaseRevision(Aws::String&& value) { SetDatabaseRevision(std::move(value)); return *this;}
84 
89  inline RevisionTarget& WithDatabaseRevision(const char* value) { SetDatabaseRevision(value); return *this;}
90 
91 
96  inline const Aws::String& GetDescription() const{ return m_description; }
97 
102  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 
108  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
109 
114  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
115 
120  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
121 
126  inline RevisionTarget& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
127 
132  inline RevisionTarget& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
133 
138  inline RevisionTarget& WithDescription(const char* value) { SetDescription(value); return *this;}
139 
140 
144  inline const Aws::Utils::DateTime& GetDatabaseRevisionReleaseDate() const{ return m_databaseRevisionReleaseDate; }
145 
149  inline bool DatabaseRevisionReleaseDateHasBeenSet() const { return m_databaseRevisionReleaseDateHasBeenSet; }
150 
154  inline void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = value; }
155 
159  inline void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = std::move(value); }
160 
164  inline RevisionTarget& WithDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { SetDatabaseRevisionReleaseDate(value); return *this;}
165 
169  inline RevisionTarget& WithDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { SetDatabaseRevisionReleaseDate(std::move(value)); return *this;}
170 
171  private:
172 
173  Aws::String m_databaseRevision;
174  bool m_databaseRevisionHasBeenSet;
175 
176  Aws::String m_description;
177  bool m_descriptionHasBeenSet;
178 
179  Aws::Utils::DateTime m_databaseRevisionReleaseDate;
180  bool m_databaseRevisionReleaseDateHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace Redshift
185 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::RevisionTarget
Definition: RevisionTarget.h:33
Aws::Redshift::Model::RevisionTarget::WithDatabaseRevisionReleaseDate
RevisionTarget & WithDatabaseRevisionReleaseDate(const Aws::Utils::DateTime &value)
Definition: RevisionTarget.h:164
Aws::Redshift::Model::RevisionTarget::SetDatabaseRevision
void SetDatabaseRevision(const char *value)
Definition: RevisionTarget.h:71
Aws::Redshift::Model::RevisionTarget::WithDescription
RevisionTarget & WithDescription(const char *value)
Definition: RevisionTarget.h:138
DateTime.h
Aws::Redshift::Model::RevisionTarget::GetDescription
const Aws::String & GetDescription() const
Definition: RevisionTarget.h:96
AWSStreamFwd.h
Aws::Redshift::Model::RevisionTarget::SetDatabaseRevisionReleaseDate
void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime &&value)
Definition: RevisionTarget.h:159
Aws::Redshift::Model::RevisionTarget::WithDatabaseRevision
RevisionTarget & WithDatabaseRevision(const char *value)
Definition: RevisionTarget.h:89
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::RevisionTarget::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: RevisionTarget.h:102
Aws::Redshift::Model::RevisionTarget::WithDatabaseRevision
RevisionTarget & WithDatabaseRevision(const Aws::String &value)
Definition: RevisionTarget.h:77
Aws::Redshift::Model::RevisionTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::RevisionTarget::WithDescription
RevisionTarget & WithDescription(const Aws::String &value)
Definition: RevisionTarget.h:126
Aws::Redshift::Model::RevisionTarget::RevisionTarget
RevisionTarget()
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::RevisionTarget::SetDescription
void SetDescription(const char *value)
Definition: RevisionTarget.h:120
Aws::Redshift::Model::RevisionTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::RevisionTarget::SetDatabaseRevisionReleaseDate
void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime &value)
Definition: RevisionTarget.h:154
AWSString.h
Aws::Redshift::Model::RevisionTarget::SetDatabaseRevision
void SetDatabaseRevision(Aws::String &&value)
Definition: RevisionTarget.h:65
Aws::Redshift::Model::RevisionTarget::WithDatabaseRevisionReleaseDate
RevisionTarget & WithDatabaseRevisionReleaseDate(Aws::Utils::DateTime &&value)
Definition: RevisionTarget.h:169
Aws::Redshift::Model::RevisionTarget::SetDescription
void SetDescription(Aws::String &&value)
Definition: RevisionTarget.h:114
Aws::Redshift::Model::RevisionTarget::DatabaseRevisionHasBeenSet
bool DatabaseRevisionHasBeenSet() const
Definition: RevisionTarget.h:53
Aws::Redshift::Model::RevisionTarget::GetDatabaseRevision
const Aws::String & GetDatabaseRevision() const
Definition: RevisionTarget.h:47
Aws::Redshift::Model::RevisionTarget::SetDescription
void SetDescription(const Aws::String &value)
Definition: RevisionTarget.h:108
Aws::Redshift::Model::RevisionTarget::GetDatabaseRevisionReleaseDate
const Aws::Utils::DateTime & GetDatabaseRevisionReleaseDate() const
Definition: RevisionTarget.h:144
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::RevisionTarget::WithDescription
RevisionTarget & WithDescription(Aws::String &&value)
Definition: RevisionTarget.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::RevisionTarget::SetDatabaseRevision
void SetDatabaseRevision(const Aws::String &value)
Definition: RevisionTarget.h:59
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::RevisionTarget::DatabaseRevisionReleaseDateHasBeenSet
bool DatabaseRevisionReleaseDateHasBeenSet() const
Definition: RevisionTarget.h:149
Aws::Redshift::Model::RevisionTarget::RevisionTarget
RevisionTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::RevisionTarget::WithDatabaseRevision
RevisionTarget & WithDatabaseRevision(Aws::String &&value)
Definition: RevisionTarget.h:83
Aws::Redshift::Model::RevisionTarget::operator=
RevisionTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)