Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  * 
  *  http://aws.amazon.com/apache2.0
  * 
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.lambda.model.transform;
import static com.fasterxml.jackson.core.JsonToken.*;

Delete Event Source Mapping Result JSON Unmarshaller
        DeleteEventSourceMappingResult deleteEventSourceMappingResult = new DeleteEventSourceMappingResult();
        int originalDepth = context.getCurrentDepth();
        String currentParentElement = context.getCurrentParentElement();
        int targetDepth = originalDepth + 1;
        JsonToken token = context.getCurrentToken();
        if (token == nulltoken = context.nextToken();
        if (token == return null;
        while (true) {
            if (token == nullbreak;
            if (token ==  || token == ) {
                if (context.testExpression("UUID"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setUUID(StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("BatchSize"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setBatchSize(IntegerJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("EventSourceArn"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setEventSourceArn(StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("FunctionArn"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setFunctionArn(StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("LastModified"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setLastModified(DateJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("LastProcessingResult"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setLastProcessingResult(StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("State"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setState(StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
                if (context.testExpression("StateTransitionReason"targetDepth)) {
                    context.nextToken();
                    deleteEventSourceMappingResult.setStateTransitionReason(StringJsonUnmarshaller.getInstance().unmarshall(context));
                }
            } else if (token ==  || token == ) {
                if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
                    if (context.getCurrentDepth() <= originalDepthbreak;
                }
            }
            token = context.nextToken();
        }
        
        return deleteEventSourceMappingResult;
    }
        if ( == null = new DeleteEventSourceMappingResultJsonUnmarshaller();
        return ;
    }
}
    
New to GrepCode? Check out our FAQ X