private static void UnmarshallResult(XmlUnmarshallerContext context, ResetDBParameterGroupResponse 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("DBParameterGroupName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DBParameterGroupName = 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) { ResetDBParameterGroupResponse response = new ResetDBParameterGroupResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("ResetDBParameterGroupResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
/// <summary> /// <para> Modifies the parameters of a DBParameterGroup to the engine/system default value. To reset specific parameters submit a list of the /// following: ParameterName and ApplyMethod. To reset the entire DBParameterGroup specify the DBParameterGroup name and ResetAllParameters /// parameters. When resetting the entire group, dynamic parameters are updated immediately and static parameters are set to pending-reboot to /// take effect on the next DB instance restart or RebootDBInstance request. </para> /// </summary> /// /// <param name="resetDBParameterGroupRequest">Container for the necessary parameters to execute the ResetDBParameterGroup service method on /// AmazonRDS.</param> /// /// <returns>The response from the ResetDBParameterGroup service method, as returned by AmazonRDS.</returns> /// /// <exception cref="DBParameterGroupNotFoundException"/> /// <exception cref="InvalidDBParameterGroupStateException"/> public ResetDBParameterGroupResponse ResetDBParameterGroup(ResetDBParameterGroupRequest resetDBParameterGroupRequest) { IRequest <ResetDBParameterGroupRequest> request = new ResetDBParameterGroupRequestMarshaller().Marshall(resetDBParameterGroupRequest); ResetDBParameterGroupResponse response = Invoke <ResetDBParameterGroupRequest, ResetDBParameterGroupResponse> (request, this.signer, ResetDBParameterGroupResponseUnmarshaller.GetInstance()); return(response); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { ResetDBParameterGroupResponse response = new ResetDBParameterGroupResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("ResetDBParameterGroupResult", 2)) { response.ResetDBParameterGroupResult = ResetDBParameterGroupResultUnmarshaller.GetInstance().Unmarshall(context); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }