OrderableDBInstanceOption.fromXml constructor

OrderableDBInstanceOption.fromXml(
  1. XmlElement elem
)

Implementation

factory OrderableDBInstanceOption.fromXml(_s.XmlElement elem) {
  return OrderableDBInstanceOption(
    availabilityZoneGroup:
        _s.extractXmlStringValue(elem, 'AvailabilityZoneGroup'),
    availabilityZones: _s.extractXmlChild(elem, 'AvailabilityZones')?.let(
        (elem) => elem
            .findElements('AvailabilityZone')
            .map((c) => AvailabilityZone.fromXml(c))
            .toList()),
    availableProcessorFeatures: _s
        .extractXmlChild(elem, 'AvailableProcessorFeatures')
        ?.let((elem) => elem
            .findElements('AvailableProcessorFeature')
            .map((c) => AvailableProcessorFeature.fromXml(c))
            .toList()),
    dBInstanceClass: _s.extractXmlStringValue(elem, 'DBInstanceClass'),
    engine: _s.extractXmlStringValue(elem, 'Engine'),
    engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
    licenseModel: _s.extractXmlStringValue(elem, 'LicenseModel'),
    maxIopsPerDbInstance: _s.extractXmlIntValue(elem, 'MaxIopsPerDbInstance'),
    maxIopsPerGib: _s.extractXmlDoubleValue(elem, 'MaxIopsPerGib'),
    maxStorageSize: _s.extractXmlIntValue(elem, 'MaxStorageSize'),
    minIopsPerDbInstance: _s.extractXmlIntValue(elem, 'MinIopsPerDbInstance'),
    minIopsPerGib: _s.extractXmlDoubleValue(elem, 'MinIopsPerGib'),
    minStorageSize: _s.extractXmlIntValue(elem, 'MinStorageSize'),
    multiAZCapable: _s.extractXmlBoolValue(elem, 'MultiAZCapable'),
    outpostCapable: _s.extractXmlBoolValue(elem, 'OutpostCapable'),
    readReplicaCapable: _s.extractXmlBoolValue(elem, 'ReadReplicaCapable'),
    storageType: _s.extractXmlStringValue(elem, 'StorageType'),
    supportedEngineModes: _s
        .extractXmlChild(elem, 'SupportedEngineModes')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
    supportsEnhancedMonitoring:
        _s.extractXmlBoolValue(elem, 'SupportsEnhancedMonitoring'),
    supportsGlobalDatabases:
        _s.extractXmlBoolValue(elem, 'SupportsGlobalDatabases'),
    supportsIAMDatabaseAuthentication:
        _s.extractXmlBoolValue(elem, 'SupportsIAMDatabaseAuthentication'),
    supportsIops: _s.extractXmlBoolValue(elem, 'SupportsIops'),
    supportsKerberosAuthentication:
        _s.extractXmlBoolValue(elem, 'SupportsKerberosAuthentication'),
    supportsPerformanceInsights:
        _s.extractXmlBoolValue(elem, 'SupportsPerformanceInsights'),
    supportsStorageAutoscaling:
        _s.extractXmlBoolValue(elem, 'SupportsStorageAutoscaling'),
    supportsStorageEncryption:
        _s.extractXmlBoolValue(elem, 'SupportsStorageEncryption'),
    vpc: _s.extractXmlBoolValue(elem, 'Vpc'),
  );
}