7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/rds/RDSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
49 template<
typename GlobalClusterIdentifierT = Aws::String>
50 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet =
true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
51 template<
typename GlobalClusterIdentifierT = Aws::String>
64 template<
typename TargetDbClusterIdentifierT = Aws::String>
65 void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT&& value) { m_targetDbClusterIdentifierHasBeenSet =
true; m_targetDbClusterIdentifier = std::forward<TargetDbClusterIdentifierT>(value); }
66 template<
typename TargetDbClusterIdentifierT = Aws::String>
81 inline void SetAllowDataLoss(
bool value) { m_allowDataLossHasBeenSet =
true; m_allowDataLoss = value; }
93 inline void SetSwitchover(
bool value) { m_switchoverHasBeenSet =
true; m_switchover = value; }
99 bool m_globalClusterIdentifierHasBeenSet =
false;
102 bool m_targetDbClusterIdentifierHasBeenSet =
false;
104 bool m_allowDataLoss{
false};
105 bool m_allowDataLossHasBeenSet =
false;
107 bool m_switchover{
false};
108 bool m_switchoverHasBeenSet =
false;
bool GetAllowDataLoss() const
const Aws::String & GetTargetDbClusterIdentifier() const
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_RDS_API FailoverGlobalClusterRequest()=default
bool GlobalClusterIdentifierHasBeenSet() const
void SetSwitchover(bool value)
FailoverGlobalClusterRequest & WithAllowDataLoss(bool value)
bool TargetDbClusterIdentifierHasBeenSet() const
void SetTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
FailoverGlobalClusterRequest & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
AWS_RDS_API Aws::String SerializePayload() const override
bool AllowDataLossHasBeenSet() const
bool GetSwitchover() const
void SetAllowDataLoss(bool value)
FailoverGlobalClusterRequest & WithSwitchover(bool value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetGlobalClusterIdentifier() const
bool SwitchoverHasBeenSet() const
AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
FailoverGlobalClusterRequest & WithTargetDbClusterIdentifier(TargetDbClusterIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String