224 lines
8.6 KiB
C
224 lines
8.6 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/redshift/Redshift_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/DateTime.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/redshift/model/RevisionTarget.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace Redshift
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Describes a <code>ClusterDbRevision</code>.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ClusterDbRevision">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_REDSHIFT_API ClusterDbRevision
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
ClusterDbRevision();
|
|||
|
|
ClusterDbRevision(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
ClusterDbRevision& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
|
|||
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|||
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier of the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetCurrentDatabaseRevision() const{ return m_currentDatabaseRevision; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CurrentDatabaseRevisionHasBeenSet() const { return m_currentDatabaseRevisionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCurrentDatabaseRevision(const Aws::String& value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCurrentDatabaseRevision(Aws::String&& value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetCurrentDatabaseRevision(const char* value) { m_currentDatabaseRevisionHasBeenSet = true; m_currentDatabaseRevision.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithCurrentDatabaseRevision(const Aws::String& value) { SetCurrentDatabaseRevision(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithCurrentDatabaseRevision(Aws::String&& value) { SetCurrentDatabaseRevision(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A string representing the current cluster version.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithCurrentDatabaseRevision(const char* value) { SetCurrentDatabaseRevision(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date on which the database revision was released.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetDatabaseRevisionReleaseDate() const{ return m_databaseRevisionReleaseDate; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date on which the database revision was released.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DatabaseRevisionReleaseDateHasBeenSet() const { return m_databaseRevisionReleaseDateHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date on which the database revision was released.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date on which the database revision was released.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { m_databaseRevisionReleaseDateHasBeenSet = true; m_databaseRevisionReleaseDate = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date on which the database revision was released.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithDatabaseRevisionReleaseDate(const Aws::Utils::DateTime& value) { SetDatabaseRevisionReleaseDate(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date on which the database revision was released.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithDatabaseRevisionReleaseDate(Aws::Utils::DateTime&& value) { SetDatabaseRevisionReleaseDate(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<RevisionTarget>& GetRevisionTargets() const{ return m_revisionTargets; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool RevisionTargetsHasBeenSet() const { return m_revisionTargetsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRevisionTargets(const Aws::Vector<RevisionTarget>& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRevisionTargets(Aws::Vector<RevisionTarget>&& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithRevisionTargets(const Aws::Vector<RevisionTarget>& value) { SetRevisionTargets(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& WithRevisionTargets(Aws::Vector<RevisionTarget>&& value) { SetRevisionTargets(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& AddRevisionTargets(const RevisionTarget& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of <code>RevisionTarget</code> objects, where each object describes
|
|||
|
|
* the database revision that a cluster can be updated to.</p>
|
|||
|
|
*/
|
|||
|
|
inline ClusterDbRevision& AddRevisionTargets(RevisionTarget&& value) { m_revisionTargetsHasBeenSet = true; m_revisionTargets.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_clusterIdentifier;
|
|||
|
|
bool m_clusterIdentifierHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_currentDatabaseRevision;
|
|||
|
|
bool m_currentDatabaseRevisionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_databaseRevisionReleaseDate;
|
|||
|
|
bool m_databaseRevisionReleaseDateHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<RevisionTarget> m_revisionTargets;
|
|||
|
|
bool m_revisionTargetsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace Redshift
|
|||
|
|
} // namespace Aws
|