private static void UnmarshallResult(XmlUnmarshallerContext context, DeleteDBInstanceResponse 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) { DeleteDBInstanceResponse response = new DeleteDBInstanceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("DeleteDBInstanceResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
/// <summary> /// <para> The DeleteDBInstance API deletes a previously provisioned RDS instance. A successful response from the web service indicates the /// request was received correctly. If a final DBSnapshot is requested the status of the RDS instance will be "deleting" until the DBSnapshot is /// created. DescribeDBInstance is used to monitor the status of this operation. This cannot be canceled or reverted once submitted. </para> /// </summary> /// /// <param name="deleteDBInstanceRequest">Container for the necessary parameters to execute the DeleteDBInstance service method on /// AmazonRDS.</param> /// /// <returns>The response from the DeleteDBInstance service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBInstanceNotFoundException"/> /// <exception cref="InvalidDBInstanceStateException"/> /// <exception cref="SnapshotQuotaExceededException"/> /// <exception cref="DBSnapshotAlreadyExistsException"/> public DeleteDBInstanceResponse DeleteDBInstance(DeleteDBInstanceRequest deleteDBInstanceRequest) { IRequest <DeleteDBInstanceRequest> request = new DeleteDBInstanceRequestMarshaller().Marshall(deleteDBInstanceRequest); DeleteDBInstanceResponse response = Invoke <DeleteDBInstanceRequest, DeleteDBInstanceResponse> (request, this.signer, DeleteDBInstanceResponseUnmarshaller.GetInstance()); return(response); }
public static DeleteDBInstanceResponse Unmarshall(UnmarshallerContext context) { DeleteDBInstanceResponse deleteDBInstanceResponse = new DeleteDBInstanceResponse(); deleteDBInstanceResponse.HttpResponse = context.HttpResponse; deleteDBInstanceResponse.RequestId = context.StringValue("DeleteDBInstance.RequestId"); return(deleteDBInstanceResponse); }
public static DeleteDBInstanceResponse Unmarshall(UnmarshallerContext context) { DeleteDBInstanceResponse deleteDBInstanceResponse = new DeleteDBInstanceResponse(); deleteDBInstanceResponse.HttpResponse = context.HttpResponse; deleteDBInstanceResponse.RequestId = context.StringValue("DeleteDBInstance.RequestId"); return deleteDBInstanceResponse; }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { DeleteDBInstanceResponse response = new DeleteDBInstanceResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("DeleteDBInstanceResult", 2)) { response.DeleteDBInstanceResult = DeleteDBInstanceResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }