DBInstanceAutomatedBackup.fromXml constructor
DBInstanceAutomatedBackup.fromXml(
- XmlElement elem
Implementation
factory DBInstanceAutomatedBackup.fromXml(_s.XmlElement elem) {
return DBInstanceAutomatedBackup(
allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'),
availabilityZone: _s.extractXmlStringValue(elem, 'AvailabilityZone'),
backupRetentionPeriod:
_s.extractXmlIntValue(elem, 'BackupRetentionPeriod'),
dBInstanceArn: _s.extractXmlStringValue(elem, 'DBInstanceArn'),
dBInstanceAutomatedBackupsArn:
_s.extractXmlStringValue(elem, 'DBInstanceAutomatedBackupsArn'),
dBInstanceAutomatedBackupsReplications: _s
.extractXmlChild(elem, 'DBInstanceAutomatedBackupsReplications')
?.let((elem) => elem
.findElements('DBInstanceAutomatedBackupsReplication')
.map((c) => DBInstanceAutomatedBackupsReplication.fromXml(c))
.toList()),
dBInstanceIdentifier:
_s.extractXmlStringValue(elem, 'DBInstanceIdentifier'),
dbiResourceId: _s.extractXmlStringValue(elem, 'DbiResourceId'),
encrypted: _s.extractXmlBoolValue(elem, 'Encrypted'),
engine: _s.extractXmlStringValue(elem, 'Engine'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
iAMDatabaseAuthenticationEnabled:
_s.extractXmlBoolValue(elem, 'IAMDatabaseAuthenticationEnabled'),
instanceCreateTime:
_s.extractXmlDateTimeValue(elem, 'InstanceCreateTime'),
iops: _s.extractXmlIntValue(elem, 'Iops'),
kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
licenseModel: _s.extractXmlStringValue(elem, 'LicenseModel'),
masterUsername: _s.extractXmlStringValue(elem, 'MasterUsername'),
optionGroupName: _s.extractXmlStringValue(elem, 'OptionGroupName'),
port: _s.extractXmlIntValue(elem, 'Port'),
region: _s.extractXmlStringValue(elem, 'Region'),
restoreWindow: _s
.extractXmlChild(elem, 'RestoreWindow')
?.let((e) => RestoreWindow.fromXml(e)),
status: _s.extractXmlStringValue(elem, 'Status'),
storageType: _s.extractXmlStringValue(elem, 'StorageType'),
tdeCredentialArn: _s.extractXmlStringValue(elem, 'TdeCredentialArn'),
timezone: _s.extractXmlStringValue(elem, 'Timezone'),
vpcId: _s.extractXmlStringValue(elem, 'VpcId'),
);
}