AWS SDK for C++  1.9.110
AWS SDK for C++
ClusterDbRevision.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlNode;
22 } // namespace Xml
23 } // namespace Utils
24 namespace Redshift
25 {
26 namespace Model
27 {
28 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
49 
53  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
54 
58  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
59 
63  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
64 
68  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
69 
73  inline ClusterDbRevision& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
74 
78  inline ClusterDbRevision& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
79 
83  inline ClusterDbRevision& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
84 
85 
89  inline const Aws::String& GetCurrentDatabaseRevision() const{ return m_currentDatabaseRevision; }
90 
94  inline bool CurrentDatabaseRevisionHasBeenSet() const { return m_currentDatabaseRevisionHasBeenSet; }
95 
99  inline void SetCurrentDatabaseRevision(const Aws::String& value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision = value; }
100 
104  inline void SetCurrentDatabaseRevision(Aws::String&& value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision = std::move(value); }
105 
109  inline void SetCurrentDatabaseRevision(const char* value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision.assign(value); }
110 
114  inline ClusterDbRevision& WithCurrentDatabaseRevision(const Aws::String& value) { SetCurrentDatabaseRevision(value); return *this;}
115 
119  inline ClusterDbRevision& WithCurrentDatabaseRevision(Aws::String&& value) { SetCurrentDatabaseRevision(std::move(value)); return *this;}
120 
124  inline ClusterDbRevision& WithCurrentDatabaseRevision(const char* value) { SetCurrentDatabaseRevision(value); return *this;}
125 
126 
130  inline const Aws::Utils::DateTime& GetDatabaseRevisionReleaseDate() const{ return m_databaseRevisionReleaseDate; }
131 
135  inline bool DatabaseRevisionReleaseDateHasBeenSet() const { return m_databaseRevisionReleaseDateHasBeenSet; }
136 
140  inline void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = value; }
141 
145  inline void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = std::move(value); }
146 
150  inline ClusterDbRevision& WithDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { SetDatabaseRevisionReleaseDate(value); return *this;}
151 
155  inline ClusterDbRevision& WithDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { SetDatabaseRevisionReleaseDate(std::move(value)); return *this;}
156 
157 
162  inline const Aws::Vector<RevisionTarget>& GetRevisionTargets() const{ return m_revisionTargets; }
163 
168  inline bool RevisionTargetsHasBeenSet() const { return m_revisionTargetsHasBeenSet; }
169 
174  inline void SetRevisionTargets(const Aws::Vector<RevisionTarget>& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets = value; }
175 
180  inline void SetRevisionTargets(Aws::Vector<RevisionTarget>&& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets = std::move(value); }
181 
186  inline ClusterDbRevision& WithRevisionTargets(const Aws::Vector<RevisionTarget>& value) { SetRevisionTargets(value); return *this;}
187 
192  inline ClusterDbRevision& WithRevisionTargets(Aws::Vector<RevisionTarget>&& value) { SetRevisionTargets(std::move(value)); return *this;}
193 
198  inline ClusterDbRevision& AddRevisionTargets(const RevisionTarget& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets.push_back(value); return *this; }
199 
204  inline ClusterDbRevision& AddRevisionTargets(RevisionTarget&& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets.push_back(std::move(value)); return *this; }
205 
206  private:
207 
208  Aws::String m_clusterIdentifier;
209  bool m_clusterIdentifierHasBeenSet;
210 
211  Aws::String m_currentDatabaseRevision;
212  bool m_currentDatabaseRevisionHasBeenSet;
213 
214  Aws::Utils::DateTime m_databaseRevisionReleaseDate;
215  bool m_databaseRevisionReleaseDateHasBeenSet;
216 
217  Aws::Vector<RevisionTarget> m_revisionTargets;
218  bool m_revisionTargetsHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace Redshift
223 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ClusterDbRevision::WithCurrentDatabaseRevision
ClusterDbRevision & WithCurrentDatabaseRevision(Aws::String &&value)
Definition: ClusterDbRevision.h:119
Aws::Redshift::Model::ClusterDbRevision::WithCurrentDatabaseRevision
ClusterDbRevision & WithCurrentDatabaseRevision(const char *value)
Definition: ClusterDbRevision.h:124
Aws::Redshift::Model::RevisionTarget
Definition: RevisionTarget.h:33
Aws::Redshift::Model::ClusterDbRevision::GetDatabaseRevisionReleaseDate
const Aws::Utils::DateTime & GetDatabaseRevisionReleaseDate() const
Definition: ClusterDbRevision.h:130
Aws::Redshift::Model::ClusterDbRevision
Definition: ClusterDbRevision.h:35
Aws::Redshift::Model::ClusterDbRevision::SetRevisionTargets
void SetRevisionTargets(Aws::Vector< RevisionTarget > &&value)
Definition: ClusterDbRevision.h:180
Aws::Redshift::Model::ClusterDbRevision::WithClusterIdentifier
ClusterDbRevision & WithClusterIdentifier(const Aws::String &value)
Definition: ClusterDbRevision.h:73
Aws::Redshift::Model::ClusterDbRevision::WithDatabaseRevisionReleaseDate
ClusterDbRevision & WithDatabaseRevisionReleaseDate(const Aws::Utils::DateTime &value)
Definition: ClusterDbRevision.h:150
DateTime.h
Aws::Redshift::Model::ClusterDbRevision::WithCurrentDatabaseRevision
ClusterDbRevision & WithCurrentDatabaseRevision(const Aws::String &value)
Definition: ClusterDbRevision.h:114
Aws::Redshift::Model::ClusterDbRevision::SetRevisionTargets
void SetRevisionTargets(const Aws::Vector< RevisionTarget > &value)
Definition: ClusterDbRevision.h:174
Aws::Redshift::Model::ClusterDbRevision::SetCurrentDatabaseRevision
void SetCurrentDatabaseRevision(const Aws::String &value)
Definition: ClusterDbRevision.h:99
Aws::Redshift::Model::ClusterDbRevision::SetCurrentDatabaseRevision
void SetCurrentDatabaseRevision(Aws::String &&value)
Definition: ClusterDbRevision.h:104
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RevisionTarget.h
AWSStreamFwd.h
Aws::Redshift::Model::ClusterDbRevision::WithClusterIdentifier
ClusterDbRevision & WithClusterIdentifier(const char *value)
Definition: ClusterDbRevision.h:83
Aws::Redshift::Model::ClusterDbRevision::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ClusterDbRevision::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ClusterDbRevision.h:48
AWSVector.h
Aws::Redshift::Model::ClusterDbRevision::RevisionTargetsHasBeenSet
bool RevisionTargetsHasBeenSet() const
Definition: ClusterDbRevision.h:168
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ClusterDbRevision::WithRevisionTargets
ClusterDbRevision & WithRevisionTargets(Aws::Vector< RevisionTarget > &&value)
Definition: ClusterDbRevision.h:192
Aws::Redshift::Model::ClusterDbRevision::DatabaseRevisionReleaseDateHasBeenSet
bool DatabaseRevisionReleaseDateHasBeenSet() const
Definition: ClusterDbRevision.h:135
Aws::Redshift::Model::ClusterDbRevision::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ClusterDbRevision.h:68
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ClusterDbRevision::SetDatabaseRevisionReleaseDate
void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime &&value)
Definition: ClusterDbRevision.h:145
Aws::Redshift::Model::ClusterDbRevision::GetRevisionTargets
const Aws::Vector< RevisionTarget > & GetRevisionTargets() const
Definition: ClusterDbRevision.h:162
Aws::Redshift::Model::ClusterDbRevision::SetDatabaseRevisionReleaseDate
void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime &value)
Definition: ClusterDbRevision.h:140
Aws::Redshift::Model::ClusterDbRevision::CurrentDatabaseRevisionHasBeenSet
bool CurrentDatabaseRevisionHasBeenSet() const
Definition: ClusterDbRevision.h:94
Aws::Redshift::Model::ClusterDbRevision::AddRevisionTargets
ClusterDbRevision & AddRevisionTargets(const RevisionTarget &value)
Definition: ClusterDbRevision.h:198
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ClusterDbRevision::ClusterDbRevision
ClusterDbRevision()
AWSString.h
Aws::Redshift::Model::ClusterDbRevision::SetCurrentDatabaseRevision
void SetCurrentDatabaseRevision(const char *value)
Definition: ClusterDbRevision.h:109
Aws::Redshift::Model::ClusterDbRevision::AddRevisionTargets
ClusterDbRevision & AddRevisionTargets(RevisionTarget &&value)
Definition: ClusterDbRevision.h:204
Aws::Redshift::Model::ClusterDbRevision::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ClusterDbRevision::GetCurrentDatabaseRevision
const Aws::String & GetCurrentDatabaseRevision() const
Definition: ClusterDbRevision.h:89
Redshift_EXPORTS.h
Aws::Redshift::Model::ClusterDbRevision::WithRevisionTargets
ClusterDbRevision & WithRevisionTargets(const Aws::Vector< RevisionTarget > &value)
Definition: ClusterDbRevision.h:186
Aws::Redshift::Model::ClusterDbRevision::operator=
ClusterDbRevision & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ClusterDbRevision::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ClusterDbRevision.h:58
Aws::Redshift::Model::ClusterDbRevision::ClusterDbRevision
ClusterDbRevision(const Aws::Utils::Xml::XmlNode &xmlNode)
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ClusterDbRevision::WithClusterIdentifier
ClusterDbRevision & WithClusterIdentifier(Aws::String &&value)
Definition: ClusterDbRevision.h:78
Aws::Redshift::Model::ClusterDbRevision::WithDatabaseRevisionReleaseDate
ClusterDbRevision & WithDatabaseRevisionReleaseDate(Aws::Utils::DateTime &&value)
Definition: ClusterDbRevision.h:155
Aws::Redshift::Model::ClusterDbRevision::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ClusterDbRevision.h:63
Aws::Redshift::Model::ClusterDbRevision::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: ClusterDbRevision.h:53