DBCluster.fromXml constructor
DBCluster.fromXml(
- XmlElement elem
Implementation
factory DBCluster.fromXml(_s.XmlElement elem) {
return DBCluster(
allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'),
associatedRoles: _s.extractXmlChild(elem, 'AssociatedRoles')?.let(
(elem) => elem
.findElements('DBClusterRole')
.map((c) => DBClusterRole.fromXml(c))
.toList()),
availabilityZones: _s.extractXmlChild(elem, 'AvailabilityZones')?.let(
(elem) => _s.extractXmlStringListValues(elem, 'AvailabilityZone')),
backupRetentionPeriod:
_s.extractXmlIntValue(elem, 'BackupRetentionPeriod'),
characterSetName: _s.extractXmlStringValue(elem, 'CharacterSetName'),
cloneGroupId: _s.extractXmlStringValue(elem, 'CloneGroupId'),
clusterCreateTime: _s.extractXmlDateTimeValue(elem, 'ClusterCreateTime'),
dBClusterArn: _s.extractXmlStringValue(elem, 'DBClusterArn'),
dBClusterIdentifier:
_s.extractXmlStringValue(elem, 'DBClusterIdentifier'),
dBClusterMembers: _s.extractXmlChild(elem, 'DBClusterMembers')?.let(
(elem) => elem
.findElements('DBClusterMember')
.map((c) => DBClusterMember.fromXml(c))
.toList()),
dBClusterOptionGroupMemberships: _s
.extractXmlChild(elem, 'DBClusterOptionGroupMemberships')
?.let((elem) => elem
.findElements('DBClusterOptionGroup')
.map((c) => DBClusterOptionGroupStatus.fromXml(c))
.toList()),
dBClusterParameterGroup:
_s.extractXmlStringValue(elem, 'DBClusterParameterGroup'),
dBSubnetGroup: _s.extractXmlStringValue(elem, 'DBSubnetGroup'),
databaseName: _s.extractXmlStringValue(elem, 'DatabaseName'),
dbClusterResourceId:
_s.extractXmlStringValue(elem, 'DbClusterResourceId'),
deletionProtection: _s.extractXmlBoolValue(elem, 'DeletionProtection'),
earliestRestorableTime:
_s.extractXmlDateTimeValue(elem, 'EarliestRestorableTime'),
enabledCloudwatchLogsExports: _s
.extractXmlChild(elem, 'EnabledCloudwatchLogsExports')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
endpoint: _s.extractXmlStringValue(elem, 'Endpoint'),
engine: _s.extractXmlStringValue(elem, 'Engine'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
hostedZoneId: _s.extractXmlStringValue(elem, 'HostedZoneId'),
iAMDatabaseAuthenticationEnabled:
_s.extractXmlBoolValue(elem, 'IAMDatabaseAuthenticationEnabled'),
kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
latestRestorableTime:
_s.extractXmlDateTimeValue(elem, 'LatestRestorableTime'),
masterUsername: _s.extractXmlStringValue(elem, 'MasterUsername'),
multiAZ: _s.extractXmlBoolValue(elem, 'MultiAZ'),
percentProgress: _s.extractXmlStringValue(elem, 'PercentProgress'),
port: _s.extractXmlIntValue(elem, 'Port'),
preferredBackupWindow:
_s.extractXmlStringValue(elem, 'PreferredBackupWindow'),
preferredMaintenanceWindow:
_s.extractXmlStringValue(elem, 'PreferredMaintenanceWindow'),
readReplicaIdentifiers: _s
.extractXmlChild(elem, 'ReadReplicaIdentifiers')
?.let((elem) =>
_s.extractXmlStringListValues(elem, 'ReadReplicaIdentifier')),
readerEndpoint: _s.extractXmlStringValue(elem, 'ReaderEndpoint'),
replicationSourceIdentifier:
_s.extractXmlStringValue(elem, 'ReplicationSourceIdentifier'),
status: _s.extractXmlStringValue(elem, 'Status'),
storageEncrypted: _s.extractXmlBoolValue(elem, 'StorageEncrypted'),
vpcSecurityGroups: _s.extractXmlChild(elem, 'VpcSecurityGroups')?.let(
(elem) => elem
.findElements('VpcSecurityGroupMembership')
.map((c) => VpcSecurityGroupMembership.fromXml(c))
.toList()),
);
}