/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include using namespace Aws::Utils::Xml; using namespace Aws::Utils; namespace Aws { namespace DocDB { namespace Model { DBCluster::DBCluster() : m_availabilityZonesHasBeenSet(false), m_backupRetentionPeriod(0), m_backupRetentionPeriodHasBeenSet(false), m_dBClusterIdentifierHasBeenSet(false), m_dBClusterParameterGroupHasBeenSet(false), m_dBSubnetGroupHasBeenSet(false), m_statusHasBeenSet(false), m_percentProgressHasBeenSet(false), m_earliestRestorableTimeHasBeenSet(false), m_endpointHasBeenSet(false), m_readerEndpointHasBeenSet(false), m_multiAZ(false), m_multiAZHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), m_latestRestorableTimeHasBeenSet(false), m_port(0), m_portHasBeenSet(false), m_masterUsernameHasBeenSet(false), m_preferredBackupWindowHasBeenSet(false), m_preferredMaintenanceWindowHasBeenSet(false), m_replicationSourceIdentifierHasBeenSet(false), m_readReplicaIdentifiersHasBeenSet(false), m_dBClusterMembersHasBeenSet(false), m_vpcSecurityGroupsHasBeenSet(false), m_hostedZoneIdHasBeenSet(false), m_storageEncrypted(false), m_storageEncryptedHasBeenSet(false), m_kmsKeyIdHasBeenSet(false), m_dbClusterResourceIdHasBeenSet(false), m_dBClusterArnHasBeenSet(false), m_associatedRolesHasBeenSet(false), m_cloneGroupIdHasBeenSet(false), m_clusterCreateTimeHasBeenSet(false), m_enabledCloudwatchLogsExportsHasBeenSet(false), m_deletionProtection(false), m_deletionProtectionHasBeenSet(false) { } DBCluster::DBCluster(const XmlNode& xmlNode) : m_availabilityZonesHasBeenSet(false), m_backupRetentionPeriod(0), m_backupRetentionPeriodHasBeenSet(false), m_dBClusterIdentifierHasBeenSet(false), m_dBClusterParameterGroupHasBeenSet(false), m_dBSubnetGroupHasBeenSet(false), m_statusHasBeenSet(false), m_percentProgressHasBeenSet(false), m_earliestRestorableTimeHasBeenSet(false), m_endpointHasBeenSet(false), m_readerEndpointHasBeenSet(false), m_multiAZ(false), m_multiAZHasBeenSet(false), m_engineHasBeenSet(false), m_engineVersionHasBeenSet(false), m_latestRestorableTimeHasBeenSet(false), m_port(0), m_portHasBeenSet(false), m_masterUsernameHasBeenSet(false), m_preferredBackupWindowHasBeenSet(false), m_preferredMaintenanceWindowHasBeenSet(false), m_replicationSourceIdentifierHasBeenSet(false), m_readReplicaIdentifiersHasBeenSet(false), m_dBClusterMembersHasBeenSet(false), m_vpcSecurityGroupsHasBeenSet(false), m_hostedZoneIdHasBeenSet(false), m_storageEncrypted(false), m_storageEncryptedHasBeenSet(false), m_kmsKeyIdHasBeenSet(false), m_dbClusterResourceIdHasBeenSet(false), m_dBClusterArnHasBeenSet(false), m_associatedRolesHasBeenSet(false), m_cloneGroupIdHasBeenSet(false), m_clusterCreateTimeHasBeenSet(false), m_enabledCloudwatchLogsExportsHasBeenSet(false), m_deletionProtection(false), m_deletionProtectionHasBeenSet(false) { *this = xmlNode; } DBCluster& DBCluster::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode availabilityZonesNode = resultNode.FirstChild("AvailabilityZones"); if(!availabilityZonesNode.IsNull()) { XmlNode availabilityZonesMember = availabilityZonesNode.FirstChild("AvailabilityZone"); while(!availabilityZonesMember.IsNull()) { m_availabilityZones.push_back(availabilityZonesMember.GetText()); availabilityZonesMember = availabilityZonesMember.NextNode("AvailabilityZone"); } m_availabilityZonesHasBeenSet = true; } XmlNode backupRetentionPeriodNode = resultNode.FirstChild("BackupRetentionPeriod"); if(!backupRetentionPeriodNode.IsNull()) { m_backupRetentionPeriod = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(backupRetentionPeriodNode.GetText()).c_str()).c_str()); m_backupRetentionPeriodHasBeenSet = true; } XmlNode dBClusterIdentifierNode = resultNode.FirstChild("DBClusterIdentifier"); if(!dBClusterIdentifierNode.IsNull()) { m_dBClusterIdentifier = Aws::Utils::Xml::DecodeEscapedXmlText(dBClusterIdentifierNode.GetText()); m_dBClusterIdentifierHasBeenSet = true; } XmlNode dBClusterParameterGroupNode = resultNode.FirstChild("DBClusterParameterGroup"); if(!dBClusterParameterGroupNode.IsNull()) { m_dBClusterParameterGroup = Aws::Utils::Xml::DecodeEscapedXmlText(dBClusterParameterGroupNode.GetText()); m_dBClusterParameterGroupHasBeenSet = true; } XmlNode dBSubnetGroupNode = resultNode.FirstChild("DBSubnetGroup"); if(!dBSubnetGroupNode.IsNull()) { m_dBSubnetGroup = Aws::Utils::Xml::DecodeEscapedXmlText(dBSubnetGroupNode.GetText()); m_dBSubnetGroupHasBeenSet = true; } XmlNode statusNode = resultNode.FirstChild("Status"); if(!statusNode.IsNull()) { m_status = Aws::Utils::Xml::DecodeEscapedXmlText(statusNode.GetText()); m_statusHasBeenSet = true; } XmlNode percentProgressNode = resultNode.FirstChild("PercentProgress"); if(!percentProgressNode.IsNull()) { m_percentProgress = Aws::Utils::Xml::DecodeEscapedXmlText(percentProgressNode.GetText()); m_percentProgressHasBeenSet = true; } XmlNode earliestRestorableTimeNode = resultNode.FirstChild("EarliestRestorableTime"); if(!earliestRestorableTimeNode.IsNull()) { m_earliestRestorableTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(earliestRestorableTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); m_earliestRestorableTimeHasBeenSet = true; } XmlNode endpointNode = resultNode.FirstChild("Endpoint"); if(!endpointNode.IsNull()) { m_endpoint = Aws::Utils::Xml::DecodeEscapedXmlText(endpointNode.GetText()); m_endpointHasBeenSet = true; } XmlNode readerEndpointNode = resultNode.FirstChild("ReaderEndpoint"); if(!readerEndpointNode.IsNull()) { m_readerEndpoint = Aws::Utils::Xml::DecodeEscapedXmlText(readerEndpointNode.GetText()); m_readerEndpointHasBeenSet = true; } XmlNode multiAZNode = resultNode.FirstChild("MultiAZ"); if(!multiAZNode.IsNull()) { m_multiAZ = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(multiAZNode.GetText()).c_str()).c_str()); m_multiAZHasBeenSet = true; } XmlNode engineNode = resultNode.FirstChild("Engine"); if(!engineNode.IsNull()) { m_engine = Aws::Utils::Xml::DecodeEscapedXmlText(engineNode.GetText()); m_engineHasBeenSet = true; } XmlNode engineVersionNode = resultNode.FirstChild("EngineVersion"); if(!engineVersionNode.IsNull()) { m_engineVersion = Aws::Utils::Xml::DecodeEscapedXmlText(engineVersionNode.GetText()); m_engineVersionHasBeenSet = true; } XmlNode latestRestorableTimeNode = resultNode.FirstChild("LatestRestorableTime"); if(!latestRestorableTimeNode.IsNull()) { m_latestRestorableTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(latestRestorableTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); m_latestRestorableTimeHasBeenSet = true; } XmlNode portNode = resultNode.FirstChild("Port"); if(!portNode.IsNull()) { m_port = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(portNode.GetText()).c_str()).c_str()); m_portHasBeenSet = true; } XmlNode masterUsernameNode = resultNode.FirstChild("MasterUsername"); if(!masterUsernameNode.IsNull()) { m_masterUsername = Aws::Utils::Xml::DecodeEscapedXmlText(masterUsernameNode.GetText()); m_masterUsernameHasBeenSet = true; } XmlNode preferredBackupWindowNode = resultNode.FirstChild("PreferredBackupWindow"); if(!preferredBackupWindowNode.IsNull()) { m_preferredBackupWindow = Aws::Utils::Xml::DecodeEscapedXmlText(preferredBackupWindowNode.GetText()); m_preferredBackupWindowHasBeenSet = true; } XmlNode preferredMaintenanceWindowNode = resultNode.FirstChild("PreferredMaintenanceWindow"); if(!preferredMaintenanceWindowNode.IsNull()) { m_preferredMaintenanceWindow = Aws::Utils::Xml::DecodeEscapedXmlText(preferredMaintenanceWindowNode.GetText()); m_preferredMaintenanceWindowHasBeenSet = true; } XmlNode replicationSourceIdentifierNode = resultNode.FirstChild("ReplicationSourceIdentifier"); if(!replicationSourceIdentifierNode.IsNull()) { m_replicationSourceIdentifier = Aws::Utils::Xml::DecodeEscapedXmlText(replicationSourceIdentifierNode.GetText()); m_replicationSourceIdentifierHasBeenSet = true; } XmlNode readReplicaIdentifiersNode = resultNode.FirstChild("ReadReplicaIdentifiers"); if(!readReplicaIdentifiersNode.IsNull()) { XmlNode readReplicaIdentifiersMember = readReplicaIdentifiersNode.FirstChild("ReadReplicaIdentifier"); while(!readReplicaIdentifiersMember.IsNull()) { m_readReplicaIdentifiers.push_back(readReplicaIdentifiersMember.GetText()); readReplicaIdentifiersMember = readReplicaIdentifiersMember.NextNode("ReadReplicaIdentifier"); } m_readReplicaIdentifiersHasBeenSet = true; } XmlNode dBClusterMembersNode = resultNode.FirstChild("DBClusterMembers"); if(!dBClusterMembersNode.IsNull()) { XmlNode dBClusterMembersMember = dBClusterMembersNode.FirstChild("DBClusterMember"); while(!dBClusterMembersMember.IsNull()) { m_dBClusterMembers.push_back(dBClusterMembersMember); dBClusterMembersMember = dBClusterMembersMember.NextNode("DBClusterMember"); } m_dBClusterMembersHasBeenSet = true; } XmlNode vpcSecurityGroupsNode = resultNode.FirstChild("VpcSecurityGroups"); if(!vpcSecurityGroupsNode.IsNull()) { XmlNode vpcSecurityGroupsMember = vpcSecurityGroupsNode.FirstChild("VpcSecurityGroupMembership"); while(!vpcSecurityGroupsMember.IsNull()) { m_vpcSecurityGroups.push_back(vpcSecurityGroupsMember); vpcSecurityGroupsMember = vpcSecurityGroupsMember.NextNode("VpcSecurityGroupMembership"); } m_vpcSecurityGroupsHasBeenSet = true; } XmlNode hostedZoneIdNode = resultNode.FirstChild("HostedZoneId"); if(!hostedZoneIdNode.IsNull()) { m_hostedZoneId = Aws::Utils::Xml::DecodeEscapedXmlText(hostedZoneIdNode.GetText()); m_hostedZoneIdHasBeenSet = true; } XmlNode storageEncryptedNode = resultNode.FirstChild("StorageEncrypted"); if(!storageEncryptedNode.IsNull()) { m_storageEncrypted = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(storageEncryptedNode.GetText()).c_str()).c_str()); m_storageEncryptedHasBeenSet = true; } XmlNode kmsKeyIdNode = resultNode.FirstChild("KmsKeyId"); if(!kmsKeyIdNode.IsNull()) { m_kmsKeyId = Aws::Utils::Xml::DecodeEscapedXmlText(kmsKeyIdNode.GetText()); m_kmsKeyIdHasBeenSet = true; } XmlNode dbClusterResourceIdNode = resultNode.FirstChild("DbClusterResourceId"); if(!dbClusterResourceIdNode.IsNull()) { m_dbClusterResourceId = Aws::Utils::Xml::DecodeEscapedXmlText(dbClusterResourceIdNode.GetText()); m_dbClusterResourceIdHasBeenSet = true; } XmlNode dBClusterArnNode = resultNode.FirstChild("DBClusterArn"); if(!dBClusterArnNode.IsNull()) { m_dBClusterArn = Aws::Utils::Xml::DecodeEscapedXmlText(dBClusterArnNode.GetText()); m_dBClusterArnHasBeenSet = true; } XmlNode associatedRolesNode = resultNode.FirstChild("AssociatedRoles"); if(!associatedRolesNode.IsNull()) { XmlNode associatedRolesMember = associatedRolesNode.FirstChild("DBClusterRole"); while(!associatedRolesMember.IsNull()) { m_associatedRoles.push_back(associatedRolesMember); associatedRolesMember = associatedRolesMember.NextNode("DBClusterRole"); } m_associatedRolesHasBeenSet = true; } XmlNode cloneGroupIdNode = resultNode.FirstChild("CloneGroupId"); if(!cloneGroupIdNode.IsNull()) { m_cloneGroupId = Aws::Utils::Xml::DecodeEscapedXmlText(cloneGroupIdNode.GetText()); m_cloneGroupIdHasBeenSet = true; } XmlNode clusterCreateTimeNode = resultNode.FirstChild("ClusterCreateTime"); if(!clusterCreateTimeNode.IsNull()) { m_clusterCreateTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(clusterCreateTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); m_clusterCreateTimeHasBeenSet = true; } XmlNode enabledCloudwatchLogsExportsNode = resultNode.FirstChild("EnabledCloudwatchLogsExports"); if(!enabledCloudwatchLogsExportsNode.IsNull()) { XmlNode enabledCloudwatchLogsExportsMember = enabledCloudwatchLogsExportsNode.FirstChild("member"); while(!enabledCloudwatchLogsExportsMember.IsNull()) { m_enabledCloudwatchLogsExports.push_back(enabledCloudwatchLogsExportsMember.GetText()); enabledCloudwatchLogsExportsMember = enabledCloudwatchLogsExportsMember.NextNode("member"); } m_enabledCloudwatchLogsExportsHasBeenSet = true; } XmlNode deletionProtectionNode = resultNode.FirstChild("DeletionProtection"); if(!deletionProtectionNode.IsNull()) { m_deletionProtection = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(deletionProtectionNode.GetText()).c_str()).c_str()); m_deletionProtectionHasBeenSet = true; } } return *this; } void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_availabilityZonesHasBeenSet) { unsigned availabilityZonesIdx = 1; for(auto& item : m_availabilityZones) { oStream << location << index << locationValue << ".AvailabilityZone." << availabilityZonesIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_backupRetentionPeriodHasBeenSet) { oStream << location << index << locationValue << ".BackupRetentionPeriod=" << m_backupRetentionPeriod << "&"; } if(m_dBClusterIdentifierHasBeenSet) { oStream << location << index << locationValue << ".DBClusterIdentifier=" << StringUtils::URLEncode(m_dBClusterIdentifier.c_str()) << "&"; } if(m_dBClusterParameterGroupHasBeenSet) { oStream << location << index << locationValue << ".DBClusterParameterGroup=" << StringUtils::URLEncode(m_dBClusterParameterGroup.c_str()) << "&"; } if(m_dBSubnetGroupHasBeenSet) { oStream << location << index << locationValue << ".DBSubnetGroup=" << StringUtils::URLEncode(m_dBSubnetGroup.c_str()) << "&"; } if(m_statusHasBeenSet) { oStream << location << index << locationValue << ".Status=" << StringUtils::URLEncode(m_status.c_str()) << "&"; } if(m_percentProgressHasBeenSet) { oStream << location << index << locationValue << ".PercentProgress=" << StringUtils::URLEncode(m_percentProgress.c_str()) << "&"; } if(m_earliestRestorableTimeHasBeenSet) { oStream << location << index << locationValue << ".EarliestRestorableTime=" << StringUtils::URLEncode(m_earliestRestorableTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_endpointHasBeenSet) { oStream << location << index << locationValue << ".Endpoint=" << StringUtils::URLEncode(m_endpoint.c_str()) << "&"; } if(m_readerEndpointHasBeenSet) { oStream << location << index << locationValue << ".ReaderEndpoint=" << StringUtils::URLEncode(m_readerEndpoint.c_str()) << "&"; } if(m_multiAZHasBeenSet) { oStream << location << index << locationValue << ".MultiAZ=" << std::boolalpha << m_multiAZ << "&"; } if(m_engineHasBeenSet) { oStream << location << index << locationValue << ".Engine=" << StringUtils::URLEncode(m_engine.c_str()) << "&"; } if(m_engineVersionHasBeenSet) { oStream << location << index << locationValue << ".EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&"; } if(m_latestRestorableTimeHasBeenSet) { oStream << location << index << locationValue << ".LatestRestorableTime=" << StringUtils::URLEncode(m_latestRestorableTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_portHasBeenSet) { oStream << location << index << locationValue << ".Port=" << m_port << "&"; } if(m_masterUsernameHasBeenSet) { oStream << location << index << locationValue << ".MasterUsername=" << StringUtils::URLEncode(m_masterUsername.c_str()) << "&"; } if(m_preferredBackupWindowHasBeenSet) { oStream << location << index << locationValue << ".PreferredBackupWindow=" << StringUtils::URLEncode(m_preferredBackupWindow.c_str()) << "&"; } if(m_preferredMaintenanceWindowHasBeenSet) { oStream << location << index << locationValue << ".PreferredMaintenanceWindow=" << StringUtils::URLEncode(m_preferredMaintenanceWindow.c_str()) << "&"; } if(m_replicationSourceIdentifierHasBeenSet) { oStream << location << index << locationValue << ".ReplicationSourceIdentifier=" << StringUtils::URLEncode(m_replicationSourceIdentifier.c_str()) << "&"; } if(m_readReplicaIdentifiersHasBeenSet) { unsigned readReplicaIdentifiersIdx = 1; for(auto& item : m_readReplicaIdentifiers) { oStream << location << index << locationValue << ".ReadReplicaIdentifier." << readReplicaIdentifiersIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_dBClusterMembersHasBeenSet) { unsigned dBClusterMembersIdx = 1; for(auto& item : m_dBClusterMembers) { Aws::StringStream dBClusterMembersSs; dBClusterMembersSs << location << index << locationValue << ".DBClusterMember." << dBClusterMembersIdx++; item.OutputToStream(oStream, dBClusterMembersSs.str().c_str()); } } if(m_vpcSecurityGroupsHasBeenSet) { unsigned vpcSecurityGroupsIdx = 1; for(auto& item : m_vpcSecurityGroups) { Aws::StringStream vpcSecurityGroupsSs; vpcSecurityGroupsSs << location << index << locationValue << ".VpcSecurityGroupMembership." << vpcSecurityGroupsIdx++; item.OutputToStream(oStream, vpcSecurityGroupsSs.str().c_str()); } } if(m_hostedZoneIdHasBeenSet) { oStream << location << index << locationValue << ".HostedZoneId=" << StringUtils::URLEncode(m_hostedZoneId.c_str()) << "&"; } if(m_storageEncryptedHasBeenSet) { oStream << location << index << locationValue << ".StorageEncrypted=" << std::boolalpha << m_storageEncrypted << "&"; } if(m_kmsKeyIdHasBeenSet) { oStream << location << index << locationValue << ".KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&"; } if(m_dbClusterResourceIdHasBeenSet) { oStream << location << index << locationValue << ".DbClusterResourceId=" << StringUtils::URLEncode(m_dbClusterResourceId.c_str()) << "&"; } if(m_dBClusterArnHasBeenSet) { oStream << location << index << locationValue << ".DBClusterArn=" << StringUtils::URLEncode(m_dBClusterArn.c_str()) << "&"; } if(m_associatedRolesHasBeenSet) { unsigned associatedRolesIdx = 1; for(auto& item : m_associatedRoles) { Aws::StringStream associatedRolesSs; associatedRolesSs << location << index << locationValue << ".DBClusterRole." << associatedRolesIdx++; item.OutputToStream(oStream, associatedRolesSs.str().c_str()); } } if(m_cloneGroupIdHasBeenSet) { oStream << location << index << locationValue << ".CloneGroupId=" << StringUtils::URLEncode(m_cloneGroupId.c_str()) << "&"; } if(m_clusterCreateTimeHasBeenSet) { oStream << location << index << locationValue << ".ClusterCreateTime=" << StringUtils::URLEncode(m_clusterCreateTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_enabledCloudwatchLogsExportsHasBeenSet) { unsigned enabledCloudwatchLogsExportsIdx = 1; for(auto& item : m_enabledCloudwatchLogsExports) { oStream << location << index << locationValue << ".EnabledCloudwatchLogsExports.member." << enabledCloudwatchLogsExportsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_deletionProtectionHasBeenSet) { oStream << location << index << locationValue << ".DeletionProtection=" << std::boolalpha << m_deletionProtection << "&"; } } void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_availabilityZonesHasBeenSet) { unsigned availabilityZonesIdx = 1; for(auto& item : m_availabilityZones) { oStream << location << ".AvailabilityZone." << availabilityZonesIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_backupRetentionPeriodHasBeenSet) { oStream << location << ".BackupRetentionPeriod=" << m_backupRetentionPeriod << "&"; } if(m_dBClusterIdentifierHasBeenSet) { oStream << location << ".DBClusterIdentifier=" << StringUtils::URLEncode(m_dBClusterIdentifier.c_str()) << "&"; } if(m_dBClusterParameterGroupHasBeenSet) { oStream << location << ".DBClusterParameterGroup=" << StringUtils::URLEncode(m_dBClusterParameterGroup.c_str()) << "&"; } if(m_dBSubnetGroupHasBeenSet) { oStream << location << ".DBSubnetGroup=" << StringUtils::URLEncode(m_dBSubnetGroup.c_str()) << "&"; } if(m_statusHasBeenSet) { oStream << location << ".Status=" << StringUtils::URLEncode(m_status.c_str()) << "&"; } if(m_percentProgressHasBeenSet) { oStream << location << ".PercentProgress=" << StringUtils::URLEncode(m_percentProgress.c_str()) << "&"; } if(m_earliestRestorableTimeHasBeenSet) { oStream << location << ".EarliestRestorableTime=" << StringUtils::URLEncode(m_earliestRestorableTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_endpointHasBeenSet) { oStream << location << ".Endpoint=" << StringUtils::URLEncode(m_endpoint.c_str()) << "&"; } if(m_readerEndpointHasBeenSet) { oStream << location << ".ReaderEndpoint=" << StringUtils::URLEncode(m_readerEndpoint.c_str()) << "&"; } if(m_multiAZHasBeenSet) { oStream << location << ".MultiAZ=" << std::boolalpha << m_multiAZ << "&"; } if(m_engineHasBeenSet) { oStream << location << ".Engine=" << StringUtils::URLEncode(m_engine.c_str()) << "&"; } if(m_engineVersionHasBeenSet) { oStream << location << ".EngineVersion=" << StringUtils::URLEncode(m_engineVersion.c_str()) << "&"; } if(m_latestRestorableTimeHasBeenSet) { oStream << location << ".LatestRestorableTime=" << StringUtils::URLEncode(m_latestRestorableTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_portHasBeenSet) { oStream << location << ".Port=" << m_port << "&"; } if(m_masterUsernameHasBeenSet) { oStream << location << ".MasterUsername=" << StringUtils::URLEncode(m_masterUsername.c_str()) << "&"; } if(m_preferredBackupWindowHasBeenSet) { oStream << location << ".PreferredBackupWindow=" << StringUtils::URLEncode(m_preferredBackupWindow.c_str()) << "&"; } if(m_preferredMaintenanceWindowHasBeenSet) { oStream << location << ".PreferredMaintenanceWindow=" << StringUtils::URLEncode(m_preferredMaintenanceWindow.c_str()) << "&"; } if(m_replicationSourceIdentifierHasBeenSet) { oStream << location << ".ReplicationSourceIdentifier=" << StringUtils::URLEncode(m_replicationSourceIdentifier.c_str()) << "&"; } if(m_readReplicaIdentifiersHasBeenSet) { unsigned readReplicaIdentifiersIdx = 1; for(auto& item : m_readReplicaIdentifiers) { oStream << location << ".ReadReplicaIdentifier." << readReplicaIdentifiersIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_dBClusterMembersHasBeenSet) { unsigned dBClusterMembersIdx = 1; for(auto& item : m_dBClusterMembers) { Aws::StringStream dBClusterMembersSs; dBClusterMembersSs << location << ".DBClusterMember." << dBClusterMembersIdx++; item.OutputToStream(oStream, dBClusterMembersSs.str().c_str()); } } if(m_vpcSecurityGroupsHasBeenSet) { unsigned vpcSecurityGroupsIdx = 1; for(auto& item : m_vpcSecurityGroups) { Aws::StringStream vpcSecurityGroupsSs; vpcSecurityGroupsSs << location << ".VpcSecurityGroupMembership." << vpcSecurityGroupsIdx++; item.OutputToStream(oStream, vpcSecurityGroupsSs.str().c_str()); } } if(m_hostedZoneIdHasBeenSet) { oStream << location << ".HostedZoneId=" << StringUtils::URLEncode(m_hostedZoneId.c_str()) << "&"; } if(m_storageEncryptedHasBeenSet) { oStream << location << ".StorageEncrypted=" << std::boolalpha << m_storageEncrypted << "&"; } if(m_kmsKeyIdHasBeenSet) { oStream << location << ".KmsKeyId=" << StringUtils::URLEncode(m_kmsKeyId.c_str()) << "&"; } if(m_dbClusterResourceIdHasBeenSet) { oStream << location << ".DbClusterResourceId=" << StringUtils::URLEncode(m_dbClusterResourceId.c_str()) << "&"; } if(m_dBClusterArnHasBeenSet) { oStream << location << ".DBClusterArn=" << StringUtils::URLEncode(m_dBClusterArn.c_str()) << "&"; } if(m_associatedRolesHasBeenSet) { unsigned associatedRolesIdx = 1; for(auto& item : m_associatedRoles) { Aws::StringStream associatedRolesSs; associatedRolesSs << location << ".DBClusterRole." << associatedRolesIdx++; item.OutputToStream(oStream, associatedRolesSs.str().c_str()); } } if(m_cloneGroupIdHasBeenSet) { oStream << location << ".CloneGroupId=" << StringUtils::URLEncode(m_cloneGroupId.c_str()) << "&"; } if(m_clusterCreateTimeHasBeenSet) { oStream << location << ".ClusterCreateTime=" << StringUtils::URLEncode(m_clusterCreateTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_enabledCloudwatchLogsExportsHasBeenSet) { unsigned enabledCloudwatchLogsExportsIdx = 1; for(auto& item : m_enabledCloudwatchLogsExports) { oStream << location << ".EnabledCloudwatchLogsExports.member." << enabledCloudwatchLogsExportsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_deletionProtectionHasBeenSet) { oStream << location << ".DeletionProtection=" << std::boolalpha << m_deletionProtection << "&"; } } } // namespace Model } // namespace DocDB } // namespace Aws