DBCluster.fromXml constructor
DBCluster.fromXml(
- XmlElement elem
Implementation
factory DBCluster.fromXml(_s.XmlElement elem) {
return DBCluster(
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'),
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()),
dBClusterParameterGroup:
_s.extractXmlStringValue(elem, 'DBClusterParameterGroup'),
dBSubnetGroup: _s.extractXmlStringValue(elem, 'DBSubnetGroup'),
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'),
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'),
readerEndpoint: _s.extractXmlStringValue(elem, 'ReaderEndpoint'),
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()),
);
}