restoreDBInstanceToPointInTime method

Future<RestoreDBInstanceToPointInTimeResult> restoreDBInstanceToPointInTime({
  1. required String sourceDBInstanceIdentifier,
  2. required String targetDBInstanceIdentifier,
  3. bool? autoMinorVersionUpgrade,
  4. String? availabilityZone,
  5. String? dBInstanceClass,
  6. String? dBName,
  7. String? dBSubnetGroupName,
  8. String? engine,
  9. int? iops,
  10. String? licenseModel,
  11. bool? multiAZ,
  12. String? optionGroupName,
  13. int? port,
  14. bool? publiclyAccessible,
  15. DateTime? restoreTime,
  16. bool? useLatestRestorableTime,
})

Implementation

Future<RestoreDBInstanceToPointInTimeResult> restoreDBInstanceToPointInTime({
  required String sourceDBInstanceIdentifier,
  required String targetDBInstanceIdentifier,
  bool? autoMinorVersionUpgrade,
  String? availabilityZone,
  String? dBInstanceClass,
  String? dBName,
  String? dBSubnetGroupName,
  String? engine,
  int? iops,
  String? licenseModel,
  bool? multiAZ,
  String? optionGroupName,
  int? port,
  bool? publiclyAccessible,
  DateTime? restoreTime,
  bool? useLatestRestorableTime,
}) async {
  ArgumentError.checkNotNull(
      sourceDBInstanceIdentifier, 'sourceDBInstanceIdentifier');
  ArgumentError.checkNotNull(
      targetDBInstanceIdentifier, 'targetDBInstanceIdentifier');
  final $request = <String, dynamic>{};
  $request['SourceDBInstanceIdentifier'] = sourceDBInstanceIdentifier;
  $request['TargetDBInstanceIdentifier'] = targetDBInstanceIdentifier;
  autoMinorVersionUpgrade
      ?.also((arg) => $request['AutoMinorVersionUpgrade'] = arg);
  availabilityZone?.also((arg) => $request['AvailabilityZone'] = arg);
  dBInstanceClass?.also((arg) => $request['DBInstanceClass'] = arg);
  dBName?.also((arg) => $request['DBName'] = arg);
  dBSubnetGroupName?.also((arg) => $request['DBSubnetGroupName'] = arg);
  engine?.also((arg) => $request['Engine'] = arg);
  iops?.also((arg) => $request['Iops'] = arg);
  licenseModel?.also((arg) => $request['LicenseModel'] = arg);
  multiAZ?.also((arg) => $request['MultiAZ'] = arg);
  optionGroupName?.also((arg) => $request['OptionGroupName'] = arg);
  port?.also((arg) => $request['Port'] = arg);
  publiclyAccessible?.also((arg) => $request['PubliclyAccessible'] = arg);
  restoreTime?.also((arg) => $request['RestoreTime'] = _s.iso8601ToJson(arg));
  useLatestRestorableTime
      ?.also((arg) => $request['UseLatestRestorableTime'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'RestoreDBInstanceToPointInTime',
    version: '2013-02-12',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['RestoreDBInstanceToPointInTimeMessage'],
    shapes: shapes,
    resultWrapper: 'RestoreDBInstanceToPointInTimeResult',
  );
  return RestoreDBInstanceToPointInTimeResult.fromXml($result);
}