public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SetAlarmStateResponse response = new SetAlarmStateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.IsStartElement) { if (context.TestExpression("SetAlarmStateResult", 2)) { UnmarshallResult(context, response); continue; } if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context); } } } return(response); }
/// <summary> /// <para> Temporarily sets the state of an alarm. When the updated /// <c>StateValue</c> differs from the previous value, the action /// configured for the appropriate state is invoked. This is not a /// permanent change. The next periodic alarm check (in about a minute) /// will set the alarm to its actual state. </para> /// </summary> /// /// <param name="setAlarmStateRequest">Container for the necessary /// parameters to execute the SetAlarmState service method on /// AmazonCloudWatch.</param> /// /// <exception cref="ResourceNotFoundException"/> /// <exception cref="InvalidFormatException"/> public SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest setAlarmStateRequest) { IRequest <SetAlarmStateRequest> request = new SetAlarmStateRequestMarshaller().Marshall(setAlarmStateRequest); SetAlarmStateResponse response = Invoke <SetAlarmStateRequest, SetAlarmStateResponse> (request, this.signer, SetAlarmStateResponseUnmarshaller.GetInstance()); return(response); }
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context) { SetAlarmStateResponse response = new SetAlarmStateResponse(); while (context.Read()) { if (context.IsStartElement) { if (context.TestExpression("ResponseMetadata", 2)) { response.ResponseMetadata = ResponseMetadataUnmarshaller.GetInstance().Unmarshall(context); } } } return(response); }
private static void UnmarshallResult(XmlUnmarshallerContext context, SetAlarmStateResponse response) { int originalDepth = context.CurrentDepth; int targetDepth = originalDepth + 1; if (context.IsStartOfDocument) { targetDepth += 2; } while (context.ReadAtDepth(originalDepth)) { if (context.IsStartElement || context.IsAttribute) { } } return; }