DBCluster.fromXml constructor
DBCluster.fromXml(
- XmlElement elem
Implementation
factory DBCluster.fromXml(_s.XmlElement elem) {
return DBCluster(
activityStreamKinesisStreamName:
_s.extractXmlStringValue(elem, 'ActivityStreamKinesisStreamName'),
activityStreamKmsKeyId:
_s.extractXmlStringValue(elem, 'ActivityStreamKmsKeyId'),
activityStreamMode: _s
.extractXmlStringValue(elem, 'ActivityStreamMode')
?.toActivityStreamMode(),
activityStreamStatus: _s
.extractXmlStringValue(elem, 'ActivityStreamStatus')
?.toActivityStreamStatus(),
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')),
backtrackConsumedChangeRecords:
_s.extractXmlIntValue(elem, 'BacktrackConsumedChangeRecords'),
backtrackWindow: _s.extractXmlIntValue(elem, 'BacktrackWindow'),
backupRetentionPeriod:
_s.extractXmlIntValue(elem, 'BackupRetentionPeriod'),
capacity: _s.extractXmlIntValue(elem, 'Capacity'),
characterSetName: _s.extractXmlStringValue(elem, 'CharacterSetName'),
cloneGroupId: _s.extractXmlStringValue(elem, 'CloneGroupId'),
clusterCreateTime: _s.extractXmlDateTimeValue(elem, 'ClusterCreateTime'),
copyTagsToSnapshot: _s.extractXmlBoolValue(elem, 'CopyTagsToSnapshot'),
crossAccountClone: _s.extractXmlBoolValue(elem, 'CrossAccountClone'),
customEndpoints: _s
.extractXmlChild(elem, 'CustomEndpoints')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
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'),
domainMemberships: _s.extractXmlChild(elem, 'DomainMemberships')?.let(
(elem) => elem
.findElements('DomainMembership')
.map((c) => DomainMembership.fromXml(c))
.toList()),
earliestBacktrackTime:
_s.extractXmlDateTimeValue(elem, 'EarliestBacktrackTime'),
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'),
engineMode: _s.extractXmlStringValue(elem, 'EngineMode'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
globalWriteForwardingRequested:
_s.extractXmlBoolValue(elem, 'GlobalWriteForwardingRequested'),
globalWriteForwardingStatus: _s
.extractXmlStringValue(elem, 'GlobalWriteForwardingStatus')
?.toWriteForwardingStatus(),
hostedZoneId: _s.extractXmlStringValue(elem, 'HostedZoneId'),
httpEndpointEnabled: _s.extractXmlBoolValue(elem, 'HttpEndpointEnabled'),
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'),
pendingModifiedValues: _s
.extractXmlChild(elem, 'PendingModifiedValues')
?.let((e) => ClusterPendingModifiedValues.fromXml(e)),
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'),
scalingConfigurationInfo: _s
.extractXmlChild(elem, 'ScalingConfigurationInfo')
?.let((e) => ScalingConfigurationInfo.fromXml(e)),
status: _s.extractXmlStringValue(elem, 'Status'),
storageEncrypted: _s.extractXmlBoolValue(elem, 'StorageEncrypted'),
tagList: _s.extractXmlChild(elem, 'TagList')?.let((elem) =>
elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
vpcSecurityGroups: _s.extractXmlChild(elem, 'VpcSecurityGroups')?.let(
(elem) => elem
.findElements('VpcSecurityGroupMembership')
.map((c) => VpcSecurityGroupMembership.fromXml(c))
.toList()),
);
}