204 lines
7.5 KiB
C++
204 lines
7.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/docdb/DocDB_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace DocDB
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Contains information about an instance that is part of a
|
|
* cluster.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/DBClusterMember">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_DOCDB_API DBClusterMember
|
|
{
|
|
public:
|
|
DBClusterMember();
|
|
DBClusterMember(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
DBClusterMember& 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>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline DBClusterMember& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline DBClusterMember& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the instance identifier for this member of the cluster.</p>
|
|
*/
|
|
inline DBClusterMember& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A value that is <code>true</code> if the cluster member is the primary
|
|
* instance for the cluster and <code>false</code> otherwise.</p>
|
|
*/
|
|
inline bool GetIsClusterWriter() const{ return m_isClusterWriter; }
|
|
|
|
/**
|
|
* <p>A value that is <code>true</code> if the cluster member is the primary
|
|
* instance for the cluster and <code>false</code> otherwise.</p>
|
|
*/
|
|
inline bool IsClusterWriterHasBeenSet() const { return m_isClusterWriterHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A value that is <code>true</code> if the cluster member is the primary
|
|
* instance for the cluster and <code>false</code> otherwise.</p>
|
|
*/
|
|
inline void SetIsClusterWriter(bool value) { m_isClusterWriterHasBeenSet = true; m_isClusterWriter = value; }
|
|
|
|
/**
|
|
* <p>A value that is <code>true</code> if the cluster member is the primary
|
|
* instance for the cluster and <code>false</code> otherwise.</p>
|
|
*/
|
|
inline DBClusterMember& WithIsClusterWriter(bool value) { SetIsClusterWriter(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline const Aws::String& GetDBClusterParameterGroupStatus() const{ return m_dBClusterParameterGroupStatus; }
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline bool DBClusterParameterGroupStatusHasBeenSet() const { return m_dBClusterParameterGroupStatusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline void SetDBClusterParameterGroupStatus(const Aws::String& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = value; }
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline void SetDBClusterParameterGroupStatus(Aws::String&& value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline void SetDBClusterParameterGroupStatus(const char* value) { m_dBClusterParameterGroupStatusHasBeenSet = true; m_dBClusterParameterGroupStatus.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline DBClusterMember& WithDBClusterParameterGroupStatus(const Aws::String& value) { SetDBClusterParameterGroupStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline DBClusterMember& WithDBClusterParameterGroupStatus(Aws::String&& value) { SetDBClusterParameterGroupStatus(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the status of the cluster parameter group for this member of the DB
|
|
* cluster.</p>
|
|
*/
|
|
inline DBClusterMember& WithDBClusterParameterGroupStatus(const char* value) { SetDBClusterParameterGroupStatus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance. </p>
|
|
*/
|
|
inline int GetPromotionTier() const{ return m_promotionTier; }
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance. </p>
|
|
*/
|
|
inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance. </p>
|
|
*/
|
|
inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; }
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance. </p>
|
|
*/
|
|
inline DBClusterMember& WithPromotionTier(int value) { SetPromotionTier(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_dBInstanceIdentifier;
|
|
bool m_dBInstanceIdentifierHasBeenSet;
|
|
|
|
bool m_isClusterWriter;
|
|
bool m_isClusterWriterHasBeenSet;
|
|
|
|
Aws::String m_dBClusterParameterGroupStatus;
|
|
bool m_dBClusterParameterGroupStatusHasBeenSet;
|
|
|
|
int m_promotionTier;
|
|
bool m_promotionTierHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DocDB
|
|
} // namespace Aws
|