AWS SDK for C++  1.9.103
AWS SDK for C++
MaintenanceTrack.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
53  inline const Aws::String& GetMaintenanceTrackName() const{ return m_maintenanceTrackName; }
54 
59  inline bool MaintenanceTrackNameHasBeenSet() const { return m_maintenanceTrackNameHasBeenSet; }
60 
65  inline void SetMaintenanceTrackName(const Aws::String& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = value; }
66 
71  inline void SetMaintenanceTrackName(Aws::String&& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = std::move(value); }
72 
77  inline void SetMaintenanceTrackName(const char* value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName.assign(value); }
78 
83  inline MaintenanceTrack& WithMaintenanceTrackName(const Aws::String& value) { SetMaintenanceTrackName(value); return *this;}
84 
89  inline MaintenanceTrack& WithMaintenanceTrackName(Aws::String&& value) { SetMaintenanceTrackName(std::move(value)); return *this;}
90 
95  inline MaintenanceTrack& WithMaintenanceTrackName(const char* value) { SetMaintenanceTrackName(value); return *this;}
96 
97 
101  inline const Aws::String& GetDatabaseVersion() const{ return m_databaseVersion; }
102 
106  inline bool DatabaseVersionHasBeenSet() const { return m_databaseVersionHasBeenSet; }
107 
111  inline void SetDatabaseVersion(const Aws::String& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = value; }
112 
116  inline void SetDatabaseVersion(Aws::String&& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = std::move(value); }
117 
121  inline void SetDatabaseVersion(const char* value) { m_databaseVersionHasBeenSet = true; m_databaseVersion.assign(value); }
122 
126  inline MaintenanceTrack& WithDatabaseVersion(const Aws::String& value) { SetDatabaseVersion(value); return *this;}
127 
131  inline MaintenanceTrack& WithDatabaseVersion(Aws::String&& value) { SetDatabaseVersion(std::move(value)); return *this;}
132 
136  inline MaintenanceTrack& WithDatabaseVersion(const char* value) { SetDatabaseVersion(value); return *this;}
137 
138 
143  inline const Aws::Vector<UpdateTarget>& GetUpdateTargets() const{ return m_updateTargets; }
144 
149  inline bool UpdateTargetsHasBeenSet() const { return m_updateTargetsHasBeenSet; }
150 
155  inline void SetUpdateTargets(const Aws::Vector<UpdateTarget>& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = value; }
156 
161  inline void SetUpdateTargets(Aws::Vector<UpdateTarget>&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = std::move(value); }
162 
167  inline MaintenanceTrack& WithUpdateTargets(const Aws::Vector<UpdateTarget>& value) { SetUpdateTargets(value); return *this;}
168 
173  inline MaintenanceTrack& WithUpdateTargets(Aws::Vector<UpdateTarget>&& value) { SetUpdateTargets(std::move(value)); return *this;}
174 
179  inline MaintenanceTrack& AddUpdateTargets(const UpdateTarget& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(value); return *this; }
180 
185  inline MaintenanceTrack& AddUpdateTargets(UpdateTarget&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(std::move(value)); return *this; }
186 
187  private:
188 
189  Aws::String m_maintenanceTrackName;
190  bool m_maintenanceTrackNameHasBeenSet;
191 
192  Aws::String m_databaseVersion;
193  bool m_databaseVersionHasBeenSet;
194 
195  Aws::Vector<UpdateTarget> m_updateTargets;
196  bool m_updateTargetsHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace Redshift
201 } // namespace Aws
Aws::Redshift::Model::MaintenanceTrack::SetDatabaseVersion
void SetDatabaseVersion(const char *value)
Definition: MaintenanceTrack.h:121
Aws::Redshift::Model::MaintenanceTrack::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::MaintenanceTrack::MaintenanceTrackNameHasBeenSet
bool MaintenanceTrackNameHasBeenSet() const
Definition: MaintenanceTrack.h:59
Aws::Redshift::Model::MaintenanceTrack::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::UpdateTarget
Definition: UpdateTarget.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::MaintenanceTrack::WithDatabaseVersion
MaintenanceTrack & WithDatabaseVersion(const char *value)
Definition: MaintenanceTrack.h:136
Aws::Redshift::Model::MaintenanceTrack::operator=
MaintenanceTrack & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::MaintenanceTrack::WithUpdateTargets
MaintenanceTrack & WithUpdateTargets(const Aws::Vector< UpdateTarget > &value)
Definition: MaintenanceTrack.h:167
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::MaintenanceTrack::GetDatabaseVersion
const Aws::String & GetDatabaseVersion() const
Definition: MaintenanceTrack.h:101
Aws::Redshift::Model::MaintenanceTrack
Definition: MaintenanceTrack.h:39
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::MaintenanceTrack::UpdateTargetsHasBeenSet
bool UpdateTargetsHasBeenSet() const
Definition: MaintenanceTrack.h:149
Aws::Redshift::Model::MaintenanceTrack::SetMaintenanceTrackName
void SetMaintenanceTrackName(const Aws::String &value)
Definition: MaintenanceTrack.h:65
Aws::Redshift::Model::MaintenanceTrack::AddUpdateTargets
MaintenanceTrack & AddUpdateTargets(UpdateTarget &&value)
Definition: MaintenanceTrack.h:185
Aws::Redshift::Model::MaintenanceTrack::WithMaintenanceTrackName
MaintenanceTrack & WithMaintenanceTrackName(Aws::String &&value)
Definition: MaintenanceTrack.h:89
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::MaintenanceTrack::SetMaintenanceTrackName
void SetMaintenanceTrackName(const char *value)
Definition: MaintenanceTrack.h:77
Aws::Redshift::Model::MaintenanceTrack::SetUpdateTargets
void SetUpdateTargets(Aws::Vector< UpdateTarget > &&value)
Definition: MaintenanceTrack.h:161
Aws::Redshift::Model::MaintenanceTrack::MaintenanceTrack
MaintenanceTrack()
Aws::Redshift::Model::MaintenanceTrack::DatabaseVersionHasBeenSet
bool DatabaseVersionHasBeenSet() const
Definition: MaintenanceTrack.h:106
Aws::Redshift::Model::MaintenanceTrack::WithDatabaseVersion
MaintenanceTrack & WithDatabaseVersion(const Aws::String &value)
Definition: MaintenanceTrack.h:126
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::MaintenanceTrack::MaintenanceTrack
MaintenanceTrack(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::MaintenanceTrack::AddUpdateTargets
MaintenanceTrack & AddUpdateTargets(const UpdateTarget &value)
Definition: MaintenanceTrack.h:179
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
UpdateTarget.h
Aws::Redshift::Model::MaintenanceTrack::SetDatabaseVersion
void SetDatabaseVersion(Aws::String &&value)
Definition: MaintenanceTrack.h:116
Aws::Redshift::Model::MaintenanceTrack::WithUpdateTargets
MaintenanceTrack & WithUpdateTargets(Aws::Vector< UpdateTarget > &&value)
Definition: MaintenanceTrack.h:173
Aws::Redshift::Model::MaintenanceTrack::WithMaintenanceTrackName
MaintenanceTrack & WithMaintenanceTrackName(const char *value)
Definition: MaintenanceTrack.h:95
Aws::Redshift::Model::MaintenanceTrack::WithMaintenanceTrackName
MaintenanceTrack & WithMaintenanceTrackName(const Aws::String &value)
Definition: MaintenanceTrack.h:83
Aws::Redshift::Model::MaintenanceTrack::GetUpdateTargets
const Aws::Vector< UpdateTarget > & GetUpdateTargets() const
Definition: MaintenanceTrack.h:143
Aws::Redshift::Model::MaintenanceTrack::SetUpdateTargets
void SetUpdateTargets(const Aws::Vector< UpdateTarget > &value)
Definition: MaintenanceTrack.h:155
Aws::Redshift::Model::MaintenanceTrack::WithDatabaseVersion
MaintenanceTrack & WithDatabaseVersion(Aws::String &&value)
Definition: MaintenanceTrack.h:131
Aws::Redshift::Model::MaintenanceTrack::GetMaintenanceTrackName
const Aws::String & GetMaintenanceTrackName() const
Definition: MaintenanceTrack.h:53
Aws::Redshift::Model::MaintenanceTrack::SetMaintenanceTrackName
void SetMaintenanceTrackName(Aws::String &&value)
Definition: MaintenanceTrack.h:71
Aws::Redshift::Model::MaintenanceTrack::SetDatabaseVersion
void SetDatabaseVersion(const Aws::String &value)
Definition: MaintenanceTrack.h:111