AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTarget.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/SupportedOperation.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
35 {
36 public:
37 AWS_REDSHIFT_API UpdateTarget();
38 AWS_REDSHIFT_API UpdateTarget(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API UpdateTarget& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetMaintenanceTrackName() const{ return m_maintenanceTrackName; }
50 inline bool MaintenanceTrackNameHasBeenSet() const { return m_maintenanceTrackNameHasBeenSet; }
51 inline void SetMaintenanceTrackName(const Aws::String& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = value; }
52 inline void SetMaintenanceTrackName(Aws::String&& value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName = std::move(value); }
53 inline void SetMaintenanceTrackName(const char* value) { m_maintenanceTrackNameHasBeenSet = true; m_maintenanceTrackName.assign(value); }
54 inline UpdateTarget& WithMaintenanceTrackName(const Aws::String& value) { SetMaintenanceTrackName(value); return *this;}
55 inline UpdateTarget& WithMaintenanceTrackName(Aws::String&& value) { SetMaintenanceTrackName(std::move(value)); return *this;}
56 inline UpdateTarget& WithMaintenanceTrackName(const char* value) { SetMaintenanceTrackName(value); return *this;}
58
60
63 inline const Aws::String& GetDatabaseVersion() const{ return m_databaseVersion; }
64 inline bool DatabaseVersionHasBeenSet() const { return m_databaseVersionHasBeenSet; }
65 inline void SetDatabaseVersion(const Aws::String& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = value; }
66 inline void SetDatabaseVersion(Aws::String&& value) { m_databaseVersionHasBeenSet = true; m_databaseVersion = std::move(value); }
67 inline void SetDatabaseVersion(const char* value) { m_databaseVersionHasBeenSet = true; m_databaseVersion.assign(value); }
68 inline UpdateTarget& WithDatabaseVersion(const Aws::String& value) { SetDatabaseVersion(value); return *this;}
69 inline UpdateTarget& WithDatabaseVersion(Aws::String&& value) { SetDatabaseVersion(std::move(value)); return *this;}
70 inline UpdateTarget& WithDatabaseVersion(const char* value) { SetDatabaseVersion(value); return *this;}
72
74
77 inline const Aws::Vector<SupportedOperation>& GetSupportedOperations() const{ return m_supportedOperations; }
78 inline bool SupportedOperationsHasBeenSet() const { return m_supportedOperationsHasBeenSet; }
79 inline void SetSupportedOperations(const Aws::Vector<SupportedOperation>& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations = value; }
80 inline void SetSupportedOperations(Aws::Vector<SupportedOperation>&& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations = std::move(value); }
83 inline UpdateTarget& AddSupportedOperations(const SupportedOperation& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations.push_back(value); return *this; }
84 inline UpdateTarget& AddSupportedOperations(SupportedOperation&& value) { m_supportedOperationsHasBeenSet = true; m_supportedOperations.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_maintenanceTrackName;
89 bool m_maintenanceTrackNameHasBeenSet = false;
90
91 Aws::String m_databaseVersion;
92 bool m_databaseVersionHasBeenSet = false;
93
94 Aws::Vector<SupportedOperation> m_supportedOperations;
95 bool m_supportedOperationsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Redshift
100} // namespace Aws
UpdateTarget & WithDatabaseVersion(const char *value)
UpdateTarget & AddSupportedOperations(const SupportedOperation &value)
void SetMaintenanceTrackName(Aws::String &&value)
void SetSupportedOperations(const Aws::Vector< SupportedOperation > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDatabaseVersion(const char *value)
const Aws::Vector< SupportedOperation > & GetSupportedOperations() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
UpdateTarget & WithMaintenanceTrackName(const char *value)
void SetSupportedOperations(Aws::Vector< SupportedOperation > &&value)
UpdateTarget & AddSupportedOperations(SupportedOperation &&value)
void SetDatabaseVersion(Aws::String &&value)
AWS_REDSHIFT_API UpdateTarget & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMaintenanceTrackName(const char *value)
UpdateTarget & WithSupportedOperations(const Aws::Vector< SupportedOperation > &value)
const Aws::String & GetMaintenanceTrackName() const
void SetMaintenanceTrackName(const Aws::String &value)
UpdateTarget & WithMaintenanceTrackName(const Aws::String &value)
void SetDatabaseVersion(const Aws::String &value)
UpdateTarget & WithDatabaseVersion(Aws::String &&value)
UpdateTarget & WithMaintenanceTrackName(Aws::String &&value)
UpdateTarget & WithSupportedOperations(Aws::Vector< SupportedOperation > &&value)
const Aws::String & GetDatabaseVersion() const
UpdateTarget & WithDatabaseVersion(const Aws::String &value)
AWS_REDSHIFT_API UpdateTarget(const Aws::Utils::Xml::XmlNode &xmlNode)
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