/** * 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 Neptune { namespace Model { DBCluster::DBCluster() : m_allocatedStorage(0), m_allocatedStorageHasBeenSet(false), m_availabilityZonesHasBeenSet(false), m_backupRetentionPeriod(0), m_backupRetentionPeriodHasBeenSet(false), m_characterSetNameHasBeenSet(false), m_databaseNameHasBeenSet(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_dBClusterOptionGroupMembershipsHasBeenSet(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_iAMDatabaseAuthenticationEnabled(false), m_iAMDatabaseAuthenticationEnabledHasBeenSet(false), m_cloneGroupIdHasBeenSet(false), m_clusterCreateTimeHasBeenSet(false), m_copyTagsToSnapshot(false), m_copyTagsToSnapshotHasBeenSet(false), m_enabledCloudwatchLogsExportsHasBeenSet(false), m_pendingModifiedValuesHasBeenSet(false), m_deletionProtection(false), m_deletionProtectionHasBeenSet(false), m_crossAccountClone(false), m_crossAccountCloneHasBeenSet(false), m_automaticRestartTimeHasBeenSet(false), m_serverlessV2ScalingConfigurationHasBeenSet(false), m_globalClusterIdentifierHasBeenSet(false) { } DBCluster::DBCluster(const XmlNode& xmlNode) : m_allocatedStorage(0), m_allocatedStorageHasBeenSet(false), m_availabilityZonesHasBeenSet(false), m_backupRetentionPeriod(0), m_backupRetentionPeriodHasBeenSet(false), m_characterSetNameHasBeenSet(false), m_databaseNameHasBeenSet(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_dBClusterOptionGroupMembershipsHasBeenSet(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_iAMDatabaseAuthenticationEnabled(false), m_iAMDatabaseAuthenticationEnabledHasBeenSet(false), m_cloneGroupIdHasBeenSet(false), m_clusterCreateTimeHasBeenSet(false), m_copyTagsToSnapshot(false), m_copyTagsToSnapshotHasBeenSet(false), m_enabledCloudwatchLogsExportsHasBeenSet(false), m_pendingModifiedValuesHasBeenSet(false), m_deletionProtection(false), m_deletionProtectionHasBeenSet(false), m_crossAccountClone(false), m_crossAccountCloneHasBeenSet(false), m_automaticRestartTimeHasBeenSet(false), m_serverlessV2ScalingConfigurationHasBeenSet(false), m_globalClusterIdentifierHasBeenSet(false) { *this = xmlNode; } DBCluster& DBCluster::operator =(const XmlNode& xmlNode) { XmlNode resultNode = xmlNode; if(!resultNode.IsNull()) { XmlNode allocatedStorageNode = resultNode.FirstChild("AllocatedStorage"); if(!allocatedStorageNode.IsNull()) { m_allocatedStorage = StringUtils::ConvertToInt32(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(allocatedStorageNode.GetText()).c_str()).c_str()); m_allocatedStorageHasBeenSet = true; } 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 characterSetNameNode = resultNode.FirstChild("CharacterSetName"); if(!characterSetNameNode.IsNull()) { m_characterSetName = Aws::Utils::Xml::DecodeEscapedXmlText(characterSetNameNode.GetText()); m_characterSetNameHasBeenSet = true; } XmlNode databaseNameNode = resultNode.FirstChild("DatabaseName"); if(!databaseNameNode.IsNull()) { m_databaseName = Aws::Utils::Xml::DecodeEscapedXmlText(databaseNameNode.GetText()); m_databaseNameHasBeenSet = 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 dBClusterOptionGroupMembershipsNode = resultNode.FirstChild("DBClusterOptionGroupMemberships"); if(!dBClusterOptionGroupMembershipsNode.IsNull()) { XmlNode dBClusterOptionGroupMembershipsMember = dBClusterOptionGroupMembershipsNode.FirstChild("DBClusterOptionGroup"); while(!dBClusterOptionGroupMembershipsMember.IsNull()) { m_dBClusterOptionGroupMemberships.push_back(dBClusterOptionGroupMembershipsMember); dBClusterOptionGroupMembershipsMember = dBClusterOptionGroupMembershipsMember.NextNode("DBClusterOptionGroup"); } m_dBClusterOptionGroupMembershipsHasBeenSet = 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 iAMDatabaseAuthenticationEnabledNode = resultNode.FirstChild("IAMDatabaseAuthenticationEnabled"); if(!iAMDatabaseAuthenticationEnabledNode.IsNull()) { m_iAMDatabaseAuthenticationEnabled = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(iAMDatabaseAuthenticationEnabledNode.GetText()).c_str()).c_str()); m_iAMDatabaseAuthenticationEnabledHasBeenSet = 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 copyTagsToSnapshotNode = resultNode.FirstChild("CopyTagsToSnapshot"); if(!copyTagsToSnapshotNode.IsNull()) { m_copyTagsToSnapshot = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(copyTagsToSnapshotNode.GetText()).c_str()).c_str()); m_copyTagsToSnapshotHasBeenSet = 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 pendingModifiedValuesNode = resultNode.FirstChild("PendingModifiedValues"); if(!pendingModifiedValuesNode.IsNull()) { m_pendingModifiedValues = pendingModifiedValuesNode; m_pendingModifiedValuesHasBeenSet = 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; } XmlNode crossAccountCloneNode = resultNode.FirstChild("CrossAccountClone"); if(!crossAccountCloneNode.IsNull()) { m_crossAccountClone = StringUtils::ConvertToBool(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(crossAccountCloneNode.GetText()).c_str()).c_str()); m_crossAccountCloneHasBeenSet = true; } XmlNode automaticRestartTimeNode = resultNode.FirstChild("AutomaticRestartTime"); if(!automaticRestartTimeNode.IsNull()) { m_automaticRestartTime = DateTime(StringUtils::Trim(Aws::Utils::Xml::DecodeEscapedXmlText(automaticRestartTimeNode.GetText()).c_str()).c_str(), Aws::Utils::DateFormat::ISO_8601); m_automaticRestartTimeHasBeenSet = true; } XmlNode serverlessV2ScalingConfigurationNode = resultNode.FirstChild("ServerlessV2ScalingConfiguration"); if(!serverlessV2ScalingConfigurationNode.IsNull()) { m_serverlessV2ScalingConfiguration = serverlessV2ScalingConfigurationNode; m_serverlessV2ScalingConfigurationHasBeenSet = true; } XmlNode globalClusterIdentifierNode = resultNode.FirstChild("GlobalClusterIdentifier"); if(!globalClusterIdentifierNode.IsNull()) { m_globalClusterIdentifier = Aws::Utils::Xml::DecodeEscapedXmlText(globalClusterIdentifierNode.GetText()); m_globalClusterIdentifierHasBeenSet = true; } } return *this; } void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location, unsigned index, const char* locationValue) const { if(m_allocatedStorageHasBeenSet) { oStream << location << index << locationValue << ".AllocatedStorage=" << m_allocatedStorage << "&"; } 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_characterSetNameHasBeenSet) { oStream << location << index << locationValue << ".CharacterSetName=" << StringUtils::URLEncode(m_characterSetName.c_str()) << "&"; } if(m_databaseNameHasBeenSet) { oStream << location << index << locationValue << ".DatabaseName=" << StringUtils::URLEncode(m_databaseName.c_str()) << "&"; } 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_dBClusterOptionGroupMembershipsHasBeenSet) { unsigned dBClusterOptionGroupMembershipsIdx = 1; for(auto& item : m_dBClusterOptionGroupMemberships) { Aws::StringStream dBClusterOptionGroupMembershipsSs; dBClusterOptionGroupMembershipsSs << location << index << locationValue << ".DBClusterOptionGroup." << dBClusterOptionGroupMembershipsIdx++; item.OutputToStream(oStream, dBClusterOptionGroupMembershipsSs.str().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_iAMDatabaseAuthenticationEnabledHasBeenSet) { oStream << location << index << locationValue << ".IAMDatabaseAuthenticationEnabled=" << std::boolalpha << m_iAMDatabaseAuthenticationEnabled << "&"; } 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_copyTagsToSnapshotHasBeenSet) { oStream << location << index << locationValue << ".CopyTagsToSnapshot=" << std::boolalpha << m_copyTagsToSnapshot << "&"; } 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_pendingModifiedValuesHasBeenSet) { Aws::StringStream pendingModifiedValuesLocationAndMemberSs; pendingModifiedValuesLocationAndMemberSs << location << index << locationValue << ".PendingModifiedValues"; m_pendingModifiedValues.OutputToStream(oStream, pendingModifiedValuesLocationAndMemberSs.str().c_str()); } if(m_deletionProtectionHasBeenSet) { oStream << location << index << locationValue << ".DeletionProtection=" << std::boolalpha << m_deletionProtection << "&"; } if(m_crossAccountCloneHasBeenSet) { oStream << location << index << locationValue << ".CrossAccountClone=" << std::boolalpha << m_crossAccountClone << "&"; } if(m_automaticRestartTimeHasBeenSet) { oStream << location << index << locationValue << ".AutomaticRestartTime=" << StringUtils::URLEncode(m_automaticRestartTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_serverlessV2ScalingConfigurationHasBeenSet) { Aws::StringStream serverlessV2ScalingConfigurationLocationAndMemberSs; serverlessV2ScalingConfigurationLocationAndMemberSs << location << index << locationValue << ".ServerlessV2ScalingConfiguration"; m_serverlessV2ScalingConfiguration.OutputToStream(oStream, serverlessV2ScalingConfigurationLocationAndMemberSs.str().c_str()); } if(m_globalClusterIdentifierHasBeenSet) { oStream << location << index << locationValue << ".GlobalClusterIdentifier=" << StringUtils::URLEncode(m_globalClusterIdentifier.c_str()) << "&"; } } void DBCluster::OutputToStream(Aws::OStream& oStream, const char* location) const { if(m_allocatedStorageHasBeenSet) { oStream << location << ".AllocatedStorage=" << m_allocatedStorage << "&"; } 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_characterSetNameHasBeenSet) { oStream << location << ".CharacterSetName=" << StringUtils::URLEncode(m_characterSetName.c_str()) << "&"; } if(m_databaseNameHasBeenSet) { oStream << location << ".DatabaseName=" << StringUtils::URLEncode(m_databaseName.c_str()) << "&"; } 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_dBClusterOptionGroupMembershipsHasBeenSet) { unsigned dBClusterOptionGroupMembershipsIdx = 1; for(auto& item : m_dBClusterOptionGroupMemberships) { Aws::StringStream dBClusterOptionGroupMembershipsSs; dBClusterOptionGroupMembershipsSs << location << ".DBClusterOptionGroup." << dBClusterOptionGroupMembershipsIdx++; item.OutputToStream(oStream, dBClusterOptionGroupMembershipsSs.str().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_iAMDatabaseAuthenticationEnabledHasBeenSet) { oStream << location << ".IAMDatabaseAuthenticationEnabled=" << std::boolalpha << m_iAMDatabaseAuthenticationEnabled << "&"; } 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_copyTagsToSnapshotHasBeenSet) { oStream << location << ".CopyTagsToSnapshot=" << std::boolalpha << m_copyTagsToSnapshot << "&"; } if(m_enabledCloudwatchLogsExportsHasBeenSet) { unsigned enabledCloudwatchLogsExportsIdx = 1; for(auto& item : m_enabledCloudwatchLogsExports) { oStream << location << ".EnabledCloudwatchLogsExports.member." << enabledCloudwatchLogsExportsIdx++ << "=" << StringUtils::URLEncode(item.c_str()) << "&"; } } if(m_pendingModifiedValuesHasBeenSet) { Aws::String pendingModifiedValuesLocationAndMember(location); pendingModifiedValuesLocationAndMember += ".PendingModifiedValues"; m_pendingModifiedValues.OutputToStream(oStream, pendingModifiedValuesLocationAndMember.c_str()); } if(m_deletionProtectionHasBeenSet) { oStream << location << ".DeletionProtection=" << std::boolalpha << m_deletionProtection << "&"; } if(m_crossAccountCloneHasBeenSet) { oStream << location << ".CrossAccountClone=" << std::boolalpha << m_crossAccountClone << "&"; } if(m_automaticRestartTimeHasBeenSet) { oStream << location << ".AutomaticRestartTime=" << StringUtils::URLEncode(m_automaticRestartTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601).c_str()) << "&"; } if(m_serverlessV2ScalingConfigurationHasBeenSet) { Aws::String serverlessV2ScalingConfigurationLocationAndMember(location); serverlessV2ScalingConfigurationLocationAndMember += ".ServerlessV2ScalingConfiguration"; m_serverlessV2ScalingConfiguration.OutputToStream(oStream, serverlessV2ScalingConfigurationLocationAndMember.c_str()); } if(m_globalClusterIdentifierHasBeenSet) { oStream << location << ".GlobalClusterIdentifier=" << StringUtils::URLEncode(m_globalClusterIdentifier.c_str()) << "&"; } } } // namespace Model } // namespace Neptune } // namespace Aws