7#include <aws/rds/RDS_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/rds/model/FailoverState.h>
12#include <aws/rds/model/GlobalClusterMember.h>
13#include <aws/rds/model/Tag.h>
54 template<
typename GlobalClusterIdentifierT = Aws::String>
55 void SetGlobalClusterIdentifier(GlobalClusterIdentifierT&& value) { m_globalClusterIdentifierHasBeenSet =
true; m_globalClusterIdentifier = std::forward<GlobalClusterIdentifierT>(value); }
56 template<
typename GlobalClusterIdentifierT = Aws::String>
70 template<
typename GlobalClusterResourceIdT = Aws::String>
71 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { m_globalClusterResourceIdHasBeenSet =
true; m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value); }
72 template<
typename GlobalClusterResourceIdT = Aws::String>
82 template<
typename GlobalClusterArnT = Aws::String>
83 void SetGlobalClusterArn(GlobalClusterArnT&& value) { m_globalClusterArnHasBeenSet =
true; m_globalClusterArn = std::forward<GlobalClusterArnT>(value); }
84 template<
typename GlobalClusterArnT = Aws::String>
94 template<
typename StatusT = Aws::String>
95 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
96 template<
typename StatusT = Aws::String>
106 template<
typename EngineT = Aws::String>
107 void SetEngine(EngineT&& value) { m_engineHasBeenSet =
true; m_engine = std::forward<EngineT>(value); }
108 template<
typename EngineT = Aws::String>
118 template<
typename EngineVersionT = Aws::String>
119 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet =
true; m_engineVersion = std::forward<EngineVersionT>(value); }
120 template<
typename EngineVersionT = Aws::String>
131 template<
typename EngineLifecycleSupportT = Aws::String>
132 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) { m_engineLifecycleSupportHasBeenSet =
true; m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value); }
133 template<
typename EngineLifecycleSupportT = Aws::String>
143 template<
typename DatabaseNameT = Aws::String>
144 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet =
true; m_databaseName = std::forward<DatabaseNameT>(value); }
145 template<
typename DatabaseNameT = Aws::String>
155 inline void SetStorageEncrypted(
bool value) { m_storageEncryptedHasBeenSet =
true; m_storageEncrypted = value; }
165 inline void SetDeletionProtection(
bool value) { m_deletionProtectionHasBeenSet =
true; m_deletionProtection = value; }
176 template<
typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
177 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet =
true; m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value); }
178 template<
typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
180 template<
typename GlobalClusterMembersT = GlobalClusterMember>
181 GlobalCluster&
AddGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet =
true; m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
return *
this; }
191 template<
typename Endpo
intT = Aws::String>
192 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet =
true; m_endpoint = std::forward<EndpointT>(value); }
193 template<
typename Endpo
intT = Aws::String>
207 template<
typename FailoverStateT = FailoverState>
208 void SetFailoverState(FailoverStateT&& value) { m_failoverStateHasBeenSet =
true; m_failoverState = std::forward<FailoverStateT>(value); }
209 template<
typename FailoverStateT = FailoverState>
217 template<
typename TagListT = Aws::Vector<Tag>>
218 void SetTagList(TagListT&& value) { m_tagListHasBeenSet =
true; m_tagList = std::forward<TagListT>(value); }
219 template<
typename TagListT = Aws::Vector<Tag>>
221 template<
typename TagListT = Tag>
222 GlobalCluster&
AddTagList(TagListT&& value) { m_tagListHasBeenSet =
true; m_tagList.emplace_back(std::forward<TagListT>(value));
return *
this; }
227 bool m_globalClusterIdentifierHasBeenSet =
false;
230 bool m_globalClusterResourceIdHasBeenSet =
false;
233 bool m_globalClusterArnHasBeenSet =
false;
236 bool m_statusHasBeenSet =
false;
239 bool m_engineHasBeenSet =
false;
242 bool m_engineVersionHasBeenSet =
false;
245 bool m_engineLifecycleSupportHasBeenSet =
false;
248 bool m_databaseNameHasBeenSet =
false;
250 bool m_storageEncrypted{
false};
251 bool m_storageEncryptedHasBeenSet =
false;
253 bool m_deletionProtection{
false};
254 bool m_deletionProtectionHasBeenSet =
false;
257 bool m_globalClusterMembersHasBeenSet =
false;
260 bool m_endpointHasBeenSet =
false;
262 FailoverState m_failoverState;
263 bool m_failoverStateHasBeenSet =
false;
266 bool m_tagListHasBeenSet =
false;
void SetEngineLifecycleSupport(EngineLifecycleSupportT &&value)
bool DeletionProtectionHasBeenSet() const
void SetDeletionProtection(bool value)
const Aws::String & GetDatabaseName() const
GlobalCluster & WithStatus(StatusT &&value)
bool DatabaseNameHasBeenSet() const
bool GetDeletionProtection() const
const Aws::String & GetGlobalClusterArn() const
bool StorageEncryptedHasBeenSet() const
GlobalCluster & WithDatabaseName(DatabaseNameT &&value)
void SetFailoverState(FailoverStateT &&value)
void SetGlobalClusterArn(GlobalClusterArnT &&value)
const Aws::String & GetEngineLifecycleSupport() const
AWS_RDS_API GlobalCluster(const Aws::Utils::Xml::XmlNode &xmlNode)
bool StatusHasBeenSet() const
bool TagListHasBeenSet() const
bool EndpointHasBeenSet() const
const Aws::String & GetStatus() const
const Aws::String & GetGlobalClusterIdentifier() const
const Aws::Vector< Tag > & GetTagList() const
void SetGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
void SetTagList(TagListT &&value)
void SetStorageEncrypted(bool value)
void SetEngine(EngineT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
const Aws::String & GetGlobalClusterResourceId() const
const Aws::String & GetEndpoint() const
bool FailoverStateHasBeenSet() const
AWS_RDS_API GlobalCluster()=default
bool GetStorageEncrypted() const
void SetGlobalClusterMembers(GlobalClusterMembersT &&value)
GlobalCluster & AddGlobalClusterMembers(GlobalClusterMembersT &&value)
const Aws::Vector< GlobalClusterMember > & GetGlobalClusterMembers() const
bool EngineHasBeenSet() const
GlobalCluster & WithDeletionProtection(bool value)
GlobalCluster & WithTagList(TagListT &&value)
void SetEngineVersion(EngineVersionT &&value)
GlobalCluster & WithFailoverState(FailoverStateT &&value)
AWS_RDS_API GlobalCluster & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetEngineVersion() const
bool EngineVersionHasBeenSet() const
GlobalCluster & WithEngineVersion(EngineVersionT &&value)
bool GlobalClusterArnHasBeenSet() const
void SetStatus(StatusT &&value)
GlobalCluster & WithGlobalClusterArn(GlobalClusterArnT &&value)
GlobalCluster & WithGlobalClusterMembers(GlobalClusterMembersT &&value)
bool GlobalClusterResourceIdHasBeenSet() const
GlobalCluster & WithGlobalClusterIdentifier(GlobalClusterIdentifierT &&value)
GlobalCluster & WithEndpoint(EndpointT &&value)
GlobalCluster & WithEngineLifecycleSupport(EngineLifecycleSupportT &&value)
const Aws::String & GetEngine() const
GlobalCluster & WithGlobalClusterResourceId(GlobalClusterResourceIdT &&value)
bool GlobalClusterIdentifierHasBeenSet() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetEndpoint(EndpointT &&value)
void SetDatabaseName(DatabaseNameT &&value)
GlobalCluster & AddTagList(TagListT &&value)
bool EngineLifecycleSupportHasBeenSet() const
GlobalCluster & WithStorageEncrypted(bool value)
GlobalCluster & WithEngine(EngineT &&value)
bool GlobalClusterMembersHasBeenSet() const
const FailoverState & GetFailoverState() const
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