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>
69 template<
typename GlobalClusterResourceIdT = Aws::String>
70 void SetGlobalClusterResourceId(GlobalClusterResourceIdT&& value) { m_globalClusterResourceIdHasBeenSet =
true; m_globalClusterResourceId = std::forward<GlobalClusterResourceIdT>(value); }
71 template<
typename GlobalClusterResourceIdT = Aws::String>
81 template<
typename GlobalClusterArnT = Aws::String>
82 void SetGlobalClusterArn(GlobalClusterArnT&& value) { m_globalClusterArnHasBeenSet =
true; m_globalClusterArn = std::forward<GlobalClusterArnT>(value); }
83 template<
typename GlobalClusterArnT = Aws::String>
93 template<
typename StatusT = Aws::String>
94 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
95 template<
typename StatusT = Aws::String>
105 template<
typename EngineT = Aws::String>
106 void SetEngine(EngineT&& value) { m_engineHasBeenSet =
true; m_engine = std::forward<EngineT>(value); }
107 template<
typename EngineT = Aws::String>
117 template<
typename EngineVersionT = Aws::String>
118 void SetEngineVersion(EngineVersionT&& value) { m_engineVersionHasBeenSet =
true; m_engineVersion = std::forward<EngineVersionT>(value); }
119 template<
typename EngineVersionT = Aws::String>
130 template<
typename EngineLifecycleSupportT = Aws::String>
131 void SetEngineLifecycleSupport(EngineLifecycleSupportT&& value) { m_engineLifecycleSupportHasBeenSet =
true; m_engineLifecycleSupport = std::forward<EngineLifecycleSupportT>(value); }
132 template<
typename EngineLifecycleSupportT = Aws::String>
142 template<
typename DatabaseNameT = Aws::String>
143 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet =
true; m_databaseName = std::forward<DatabaseNameT>(value); }
144 template<
typename DatabaseNameT = Aws::String>
154 inline void SetStorageEncrypted(
bool value) { m_storageEncryptedHasBeenSet =
true; m_storageEncrypted = value; }
164 inline void SetDeletionProtection(
bool value) { m_deletionProtectionHasBeenSet =
true; m_deletionProtection = value; }
175 template<
typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
176 void SetGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet =
true; m_globalClusterMembers = std::forward<GlobalClusterMembersT>(value); }
177 template<
typename GlobalClusterMembersT = Aws::Vector<GlobalClusterMember>>
179 template<
typename GlobalClusterMembersT = GlobalClusterMember>
180 GlobalCluster&
AddGlobalClusterMembers(GlobalClusterMembersT&& value) { m_globalClusterMembersHasBeenSet =
true; m_globalClusterMembers.emplace_back(std::forward<GlobalClusterMembersT>(value));
return *
this; }
190 template<
typename Endpo
intT = Aws::String>
191 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet =
true; m_endpoint = std::forward<EndpointT>(value); }
192 template<
typename Endpo
intT = Aws::String>
206 template<
typename FailoverStateT = FailoverState>
207 void SetFailoverState(FailoverStateT&& value) { m_failoverStateHasBeenSet =
true; m_failoverState = std::forward<FailoverStateT>(value); }
208 template<
typename FailoverStateT = FailoverState>
216 template<
typename TagListT = Aws::Vector<Tag>>
217 void SetTagList(TagListT&& value) { m_tagListHasBeenSet =
true; m_tagList = std::forward<TagListT>(value); }
218 template<
typename TagListT = Aws::Vector<Tag>>
220 template<
typename TagListT = Tag>
221 GlobalCluster&
AddTagList(TagListT&& value) { m_tagListHasBeenSet =
true; m_tagList.emplace_back(std::forward<TagListT>(value));
return *
this; }
226 bool m_globalClusterIdentifierHasBeenSet =
false;
229 bool m_globalClusterResourceIdHasBeenSet =
false;
232 bool m_globalClusterArnHasBeenSet =
false;
235 bool m_statusHasBeenSet =
false;
238 bool m_engineHasBeenSet =
false;
241 bool m_engineVersionHasBeenSet =
false;
244 bool m_engineLifecycleSupportHasBeenSet =
false;
247 bool m_databaseNameHasBeenSet =
false;
249 bool m_storageEncrypted{
false};
250 bool m_storageEncryptedHasBeenSet =
false;
252 bool m_deletionProtection{
false};
253 bool m_deletionProtectionHasBeenSet =
false;
256 bool m_globalClusterMembersHasBeenSet =
false;
259 bool m_endpointHasBeenSet =
false;
261 FailoverState m_failoverState;
262 bool m_failoverStateHasBeenSet =
false;
265 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