private static void UnmarshallResult(XmlUnmarshallerContext context, RestoreDBInstanceToPointInTimeResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { if (context.TestExpression("DBInstance", targetDepth)) { var unmarshaller = DBInstanceUnmarshaller.Instance; response.DBInstance = unmarshaller.Unmarshall(context); continue; } } } return; }
/// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { RestoreDBInstanceToPointInTimeResponse response = new RestoreDBInstanceToPointInTimeResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("RestoreDBInstanceToPointInTimeResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
/// <summary> /// <para> Creates a new DB Instance from a point-in-time system snapshot. The target database is created from the source database restore point /// with the same configuration as the original source database, except that the new RDS instance is created with the default security group. /// </para> /// </summary> /// /// <param name="restoreDBInstanceToPointInTimeRequest">Container for the necessary parameters to execute the RestoreDBInstanceToPointInTime /// service method on AmazonRDS.</param> /// /// <returns>The response from the RestoreDBInstanceToPointInTime service method, as returned by AmazonRDS.</returns> /// /// <exception cref="PointInTimeRestoreNotEnabledException"/> /// <exception cref="InstanceQuotaExceededException"/> /// <exception cref="DBInstanceAlreadyExistsException"/> /// <exception cref="DBInstanceNotFoundException"/> /// <exception cref="StorageQuotaExceededException"/> /// <exception cref="InvalidDBInstanceStateException"/> /// <exception cref="InsufficientDBInstanceCapacityException"/> public RestoreDBInstanceToPointInTimeResponse RestoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest restoreDBInstanceToPointInTimeRequest) { IRequest <RestoreDBInstanceToPointInTimeRequest> request = new RestoreDBInstanceToPointInTimeRequestMarshaller().Marshall(restoreDBInstanceToPointInTimeRequest); RestoreDBInstanceToPointInTimeResponse response = Invoke <RestoreDBInstanceToPointInTimeRequest, RestoreDBInstanceToPointInTimeResponse> (request, this.signer, RestoreDBInstanceToPointInTimeResponseUnmarshaller.GetInstance()); return(response); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { RestoreDBInstanceToPointInTimeResponse response = new RestoreDBInstanceToPointInTimeResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("RestoreDBInstanceToPointInTimeResult", 2)) { response.RestoreDBInstanceToPointInTimeResult = RestoreDBInstanceToPointInTimeResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }