AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MaintenanceTrack.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/UpdateTarget.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_REDSHIFT_API MaintenanceTrack();
42 AWS_REDSHIFT_API MaintenanceTrack(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_REDSHIFT_API MaintenanceTrack& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
54 inline const Aws::String& GetMaintenanceTrackName() const{ return m_maintenanceTrackName; }
55 inline bool MaintenanceTrackNameHasBeenSet() const { return m_maintenanceTrackNameHasBeenSet; }
56 inline void SetMaintenanceTrackName(const Aws::String& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = value; }
57 inline void SetMaintenanceTrackName(Aws::String&& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = std::move(value); }
58 inline void SetMaintenanceTrackName(const char* value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName.assign(value); }
60 inline MaintenanceTrack& WithMaintenanceTrackName(Aws::String&& value) { SetMaintenanceTrackName(std::move(value)); return *this;}
61 inline MaintenanceTrack& WithMaintenanceTrackName(const char* value) { SetMaintenanceTrackName(value); return *this;}
63
65
68 inline const Aws::String& GetDatabaseVersion() const{ return m_databaseVersion; }
69 inline bool DatabaseVersionHasBeenSet() const { return m_databaseVersionHasBeenSet; }
70 inline void SetDatabaseVersion(const Aws::String& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = value; }
71 inline void SetDatabaseVersion(Aws::String&& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = std::move(value); }
72 inline void SetDatabaseVersion(const char* value) { m_databaseVersionHasBeenSet = true; m_databaseVersion.assign(value); }
73 inline MaintenanceTrack& WithDatabaseVersion(const Aws::String& value) { SetDatabaseVersion(value); return *this;}
74 inline MaintenanceTrack& WithDatabaseVersion(Aws::String&& value) { SetDatabaseVersion(std::move(value)); return *this;}
75 inline MaintenanceTrack& WithDatabaseVersion(const char* value) { SetDatabaseVersion(value); return *this;}
77
79
83 inline const Aws::Vector<UpdateTarget>& GetUpdateTargets() const{ return m_updateTargets; }
84 inline bool UpdateTargetsHasBeenSet() const { return m_updateTargetsHasBeenSet; }
85 inline void SetUpdateTargets(const Aws::Vector<UpdateTarget>& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = value; }
86 inline void SetUpdateTargets(Aws::Vector<UpdateTarget>&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets = std::move(value); }
88 inline MaintenanceTrack& WithUpdateTargets(Aws::Vector<UpdateTarget>&& value) { SetUpdateTargets(std::move(value)); return *this;}
89 inline MaintenanceTrack& AddUpdateTargets(const UpdateTarget& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(value); return *this; }
90 inline MaintenanceTrack& AddUpdateTargets(UpdateTarget&& value) { m_updateTargetsHasBeenSet = true; m_updateTargets.push_back(std::move(value)); return *this; }
92 private:
93
94 Aws::String m_maintenanceTrackName;
95 bool m_maintenanceTrackNameHasBeenSet = false;
96
97 Aws::String m_databaseVersion;
98 bool m_databaseVersionHasBeenSet = false;
99
100 Aws::Vector<UpdateTarget> m_updateTargets;
101 bool m_updateTargetsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Redshift
106} // namespace Aws
MaintenanceTrack & AddUpdateTargets(UpdateTarget &&value)
const Aws::String & GetDatabaseVersion() const
AWS_REDSHIFT_API MaintenanceTrack(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDatabaseVersion(const Aws::String &value)
MaintenanceTrack & WithDatabaseVersion(const char *value)
void SetDatabaseVersion(const char *value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MaintenanceTrack & WithUpdateTargets(const Aws::Vector< UpdateTarget > &value)
void SetMaintenanceTrackName(const Aws::String &value)
const Aws::String & GetMaintenanceTrackName() const
AWS_REDSHIFT_API MaintenanceTrack & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
MaintenanceTrack & WithMaintenanceTrackName(Aws::String &&value)
MaintenanceTrack & WithMaintenanceTrackName(const Aws::String &value)
MaintenanceTrack & AddUpdateTargets(const UpdateTarget &value)
MaintenanceTrack & WithUpdateTargets(Aws::Vector< UpdateTarget > &&value)
void SetMaintenanceTrackName(Aws::String &&value)
void SetUpdateTargets(Aws::Vector< UpdateTarget > &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MaintenanceTrack & WithMaintenanceTrackName(const char *value)
MaintenanceTrack & WithDatabaseVersion(Aws::String &&value)
void SetDatabaseVersion(Aws::String &&value)
MaintenanceTrack & WithDatabaseVersion(const Aws::String &value)
const Aws::Vector< UpdateTarget > & GetUpdateTargets() const
void SetUpdateTargets(const Aws::Vector< UpdateTarget > &value)
void SetMaintenanceTrackName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream