AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateTarget.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 
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& GetMaintenanceTrackName() const{ return m_maintenanceTrackName; }
49 
53  inline bool MaintenanceTrackNameHasBeenSet() const { return m_maintenanceTrackNameHasBeenSet; }
54 
58  inline void SetMaintenanceTrackName(const Aws::String& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = value; }
59 
63  inline void SetMaintenanceTrackName(Aws::String&& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = std::move(value); }
64 
68  inline void SetMaintenanceTrackName(const char* value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName.assign(value); }
69 
73  inline UpdateTarget& WithMaintenanceTrackName(const Aws::String& value) { SetMaintenanceTrackName(value); return *this;}
74 
78  inline UpdateTarget& WithMaintenanceTrackName(Aws::String&& value) { SetMaintenanceTrackName(std::move(value)); return *this;}
79 
83  inline UpdateTarget& WithMaintenanceTrackName(const char* value) { SetMaintenanceTrackName(value); return *this;}
84 
85 
89  inline const Aws::String& GetDatabaseVersion() const{ return m_databaseVersion; }
90 
94  inline bool DatabaseVersionHasBeenSet() const { return m_databaseVersionHasBeenSet; }
95 
99  inline void SetDatabaseVersion(const Aws::String& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = value; }
100 
104  inline void SetDatabaseVersion(Aws::String&& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = std::move(value); }
105 
109  inline void SetDatabaseVersion(const char* value) { m_databaseVersionHasBeenSet = true; m_databaseVersion.assign(value); }
110 
114  inline UpdateTarget& WithDatabaseVersion(const Aws::String& value) { SetDatabaseVersion(value); return *this;}
115 
119  inline UpdateTarget& WithDatabaseVersion(Aws::String&& value) { SetDatabaseVersion(std::move(value)); return *this;}
120 
124  inline UpdateTarget& WithDatabaseVersion(const char* value) { SetDatabaseVersion(value); return *this;}
125 
126 
130  inline const Aws::Vector<SupportedOperation>& GetSupportedOperations() const{ return m_supportedOperations; }
131 
135  inline bool SupportedOperationsHasBeenSet() const { return m_supportedOperationsHasBeenSet; }
136 
140  inline void SetSupportedOperations(const Aws::Vector<SupportedOperation>& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations = value; }
141 
145  inline void SetSupportedOperations(Aws::Vector<SupportedOperation>&& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations = std::move(value); }
146 
150  inline UpdateTarget& WithSupportedOperations(const Aws::Vector<SupportedOperation>& value) { SetSupportedOperations(value); return *this;}
151 
155  inline UpdateTarget& WithSupportedOperations(Aws::Vector<SupportedOperation>&& value) { SetSupportedOperations(std::move(value)); return *this;}
156 
160  inline UpdateTarget& AddSupportedOperations(const SupportedOperation& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations.push_back(value); return *this; }
161 
165  inline UpdateTarget& AddSupportedOperations(SupportedOperation&& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations.push_back(std::move(value)); return *this; }
166 
167  private:
168 
169  Aws::String m_maintenanceTrackName;
170  bool m_maintenanceTrackNameHasBeenSet;
171 
172  Aws::String m_databaseVersion;
173  bool m_databaseVersionHasBeenSet;
174 
175  Aws::Vector<SupportedOperation> m_supportedOperations;
176  bool m_supportedOperationsHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace Redshift
181 } // namespace Aws
Aws::Redshift::Model::UpdateTarget::WithDatabaseVersion
UpdateTarget & WithDatabaseVersion(const Aws::String &value)
Definition: UpdateTarget.h:114
Aws::Redshift::Model::UpdateTarget::SetDatabaseVersion
void SetDatabaseVersion(const char *value)
Definition: UpdateTarget.h:109
Aws::Redshift::Model::UpdateTarget::WithSupportedOperations
UpdateTarget & WithSupportedOperations(Aws::Vector< SupportedOperation > &&value)
Definition: UpdateTarget.h:155
Aws::Redshift::Model::UpdateTarget::SetMaintenanceTrackName
void SetMaintenanceTrackName(Aws::String &&value)
Definition: UpdateTarget.h:63
Aws::Redshift::Model::UpdateTarget::MaintenanceTrackNameHasBeenSet
bool MaintenanceTrackNameHasBeenSet() const
Definition: UpdateTarget.h:53
Aws::Redshift::Model::UpdateTarget::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::UpdateTarget::GetDatabaseVersion
const Aws::String & GetDatabaseVersion() const
Definition: UpdateTarget.h:89
Aws::Redshift::Model::UpdateTarget::WithDatabaseVersion
UpdateTarget & WithDatabaseVersion(Aws::String &&value)
Definition: UpdateTarget.h:119
Aws::Redshift::Model::UpdateTarget::WithMaintenanceTrackName
UpdateTarget & WithMaintenanceTrackName(const Aws::String &value)
Definition: UpdateTarget.h:73
Aws::Redshift::Model::UpdateTarget
Definition: UpdateTarget.h:35
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::SupportedOperation
Definition: SupportedOperation.h:33
Aws::Redshift::Model::UpdateTarget::operator=
UpdateTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::Redshift::Model::UpdateTarget::SetSupportedOperations
void SetSupportedOperations(const Aws::Vector< SupportedOperation > &value)
Definition: UpdateTarget.h:140
Aws::Redshift::Model::UpdateTarget::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::UpdateTarget::SupportedOperationsHasBeenSet
bool SupportedOperationsHasBeenSet() const
Definition: UpdateTarget.h:135
Aws::Redshift::Model::UpdateTarget::SetDatabaseVersion
void SetDatabaseVersion(Aws::String &&value)
Definition: UpdateTarget.h:104
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::UpdateTarget::WithMaintenanceTrackName
UpdateTarget & WithMaintenanceTrackName(const char *value)
Definition: UpdateTarget.h:83
Aws::Redshift::Model::UpdateTarget::AddSupportedOperations
UpdateTarget & AddSupportedOperations(SupportedOperation &&value)
Definition: UpdateTarget.h:165
Aws::Redshift::Model::UpdateTarget::UpdateTarget
UpdateTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::UpdateTarget::SetMaintenanceTrackName
void SetMaintenanceTrackName(const char *value)
Definition: UpdateTarget.h:68
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::UpdateTarget::WithDatabaseVersion
UpdateTarget & WithDatabaseVersion(const char *value)
Definition: UpdateTarget.h:124
SupportedOperation.h
AWSString.h
Aws::Redshift::Model::UpdateTarget::SetMaintenanceTrackName
void SetMaintenanceTrackName(const Aws::String &value)
Definition: UpdateTarget.h:58
Aws::Redshift::Model::UpdateTarget::WithMaintenanceTrackName
UpdateTarget & WithMaintenanceTrackName(Aws::String &&value)
Definition: UpdateTarget.h:78
Aws::Redshift::Model::UpdateTarget::DatabaseVersionHasBeenSet
bool DatabaseVersionHasBeenSet() const
Definition: UpdateTarget.h:94
Aws::Redshift::Model::UpdateTarget::SetSupportedOperations
void SetSupportedOperations(Aws::Vector< SupportedOperation > &&value)
Definition: UpdateTarget.h:145
Aws::Redshift::Model::UpdateTarget::SetDatabaseVersion
void SetDatabaseVersion(const Aws::String &value)
Definition: UpdateTarget.h:99
Aws::Redshift::Model::UpdateTarget::AddSupportedOperations
UpdateTarget & AddSupportedOperations(const SupportedOperation &value)
Definition: UpdateTarget.h:160
Aws::Redshift::Model::UpdateTarget::GetMaintenanceTrackName
const Aws::String & GetMaintenanceTrackName() const
Definition: UpdateTarget.h:48
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
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
Aws::Redshift::Model::UpdateTarget::WithSupportedOperations
UpdateTarget & WithSupportedOperations(const Aws::Vector< SupportedOperation > &value)
Definition: UpdateTarget.h:150
Aws::Redshift::Model::UpdateTarget::GetSupportedOperations
const Aws::Vector< SupportedOperation > & GetSupportedOperations() const
Definition: UpdateTarget.h:130
Aws::Redshift::Model::UpdateTarget::UpdateTarget
UpdateTarget()