AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClusterDbRevision.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/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/RevisionTarget.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_REDSHIFT_API ClusterDbRevision();
38 AWS_REDSHIFT_API ClusterDbRevision(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_REDSHIFT_API ClusterDbRevision& 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& GetClusterIdentifier() const{ return m_clusterIdentifier; }
50 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
51 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
52 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
53 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
54 inline ClusterDbRevision& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
55 inline ClusterDbRevision& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
56 inline ClusterDbRevision& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
58
60
63 inline const Aws::String& GetCurrentDatabaseRevision() const{ return m_currentDatabaseRevision; }
64 inline bool CurrentDatabaseRevisionHasBeenSet() const { return m_currentDatabaseRevisionHasBeenSet; }
65 inline void SetCurrentDatabaseRevision(const Aws::String& value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision = value; }
66 inline void SetCurrentDatabaseRevision(Aws::String&& value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision = std::move(value); }
67 inline void SetCurrentDatabaseRevision(const char* value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision.assign(value); }
69 inline ClusterDbRevision& WithCurrentDatabaseRevision(Aws::String&& value) { SetCurrentDatabaseRevision(std::move(value)); return *this;}
70 inline ClusterDbRevision& WithCurrentDatabaseRevision(const char* value) { SetCurrentDatabaseRevision(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetDatabaseRevisionReleaseDate() const{ return m_databaseRevisionReleaseDate; }
78 inline bool DatabaseRevisionReleaseDateHasBeenSet() const { return m_databaseRevisionReleaseDateHasBeenSet; }
79 inline void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = value; }
80 inline void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = std::move(value); }
84
86
90 inline const Aws::Vector<RevisionTarget>& GetRevisionTargets() const{ return m_revisionTargets; }
91 inline bool RevisionTargetsHasBeenSet() const { return m_revisionTargetsHasBeenSet; }
92 inline void SetRevisionTargets(const Aws::Vector<RevisionTarget>& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets = value; }
93 inline void SetRevisionTargets(Aws::Vector<RevisionTarget>&& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets = std::move(value); }
95 inline ClusterDbRevision& WithRevisionTargets(Aws::Vector<RevisionTarget>&& value) { SetRevisionTargets(std::move(value)); return *this;}
96 inline ClusterDbRevision& AddRevisionTargets(const RevisionTarget& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets.push_back(value); return *this; }
97 inline ClusterDbRevision& AddRevisionTargets(RevisionTarget&& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_clusterIdentifier;
102 bool m_clusterIdentifierHasBeenSet = false;
103
104 Aws::String m_currentDatabaseRevision;
105 bool m_currentDatabaseRevisionHasBeenSet = false;
106
107 Aws::Utils::DateTime m_databaseRevisionReleaseDate;
108 bool m_databaseRevisionReleaseDateHasBeenSet = false;
109
110 Aws::Vector<RevisionTarget> m_revisionTargets;
111 bool m_revisionTargetsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Redshift
116} // namespace Aws
ClusterDbRevision & WithDatabaseRevisionReleaseDate(const Aws::Utils::DateTime &value)
AWS_REDSHIFT_API ClusterDbRevision & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetClusterIdentifier(Aws::String &&value)
void SetCurrentDatabaseRevision(const Aws::String &value)
void SetClusterIdentifier(const Aws::String &value)
const Aws::Vector< RevisionTarget > & GetRevisionTargets() const
void SetRevisionTargets(const Aws::Vector< RevisionTarget > &value)
const Aws::String & GetClusterIdentifier() const
ClusterDbRevision & WithClusterIdentifier(const Aws::String &value)
const Aws::Utils::DateTime & GetDatabaseRevisionReleaseDate() const
ClusterDbRevision & AddRevisionTargets(const RevisionTarget &value)
ClusterDbRevision & WithDatabaseRevisionReleaseDate(Aws::Utils::DateTime &&value)
ClusterDbRevision & WithClusterIdentifier(Aws::String &&value)
void SetRevisionTargets(Aws::Vector< RevisionTarget > &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ClusterDbRevision & WithCurrentDatabaseRevision(const Aws::String &value)
ClusterDbRevision & WithRevisionTargets(Aws::Vector< RevisionTarget > &&value)
void SetCurrentDatabaseRevision(Aws::String &&value)
void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ClusterDbRevision & WithRevisionTargets(const Aws::Vector< RevisionTarget > &value)
ClusterDbRevision & WithClusterIdentifier(const char *value)
void SetCurrentDatabaseRevision(const char *value)
void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime &&value)
const Aws::String & GetCurrentDatabaseRevision() const
AWS_REDSHIFT_API ClusterDbRevision(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterDbRevision & WithCurrentDatabaseRevision(Aws::String &&value)
ClusterDbRevision & WithCurrentDatabaseRevision(const char *value)
ClusterDbRevision & AddRevisionTargets(RevisionTarget &&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