public NetworkInterface unmarshall(JsonUnmarshallerContext context) throws Exception { NetworkInterface networkInterface = new NetworkInterface(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("Ipv4Address", targetDepth)) { context.nextToken(); networkInterface.setIpv4Address(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("MacAddress", targetDepth)) { context.nextToken(); networkInterface.setMacAddress(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Ipv6Address", targetDepth)) { context.nextToken(); networkInterface.setIpv6Address(StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getCurrentDepth() <= originalDepth) break; } token = context.nextToken(); } return networkInterface; }
public Preset unmarshall(JsonUnmarshallerContext context) throws Exception { Preset preset = new Preset(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("Id", targetDepth)) { context.nextToken(); preset.setId(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Name", targetDepth)) { context.nextToken(); preset.setName(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Description", targetDepth)) { context.nextToken(); preset.setDescription(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Container", targetDepth)) { context.nextToken(); preset.setContainer(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Audio", targetDepth)) { context.nextToken(); preset.setAudio(AudioParametersJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Video", targetDepth)) { context.nextToken(); preset.setVideo(VideoParametersJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Thumbnails", targetDepth)) { context.nextToken(); preset.setThumbnails(ThumbnailsJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Type", targetDepth)) { context.nextToken(); preset.setType(StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return preset; }
public JobFlowExecutionStatusDetail unmarshall(JsonUnmarshallerContext context) throws Exception { JobFlowExecutionStatusDetail jobFlowExecutionStatusDetail = new JobFlowExecutionStatusDetail(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("State", targetDepth)) { context.nextToken(); jobFlowExecutionStatusDetail.setState( StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("CreationDateTime", targetDepth)) { context.nextToken(); jobFlowExecutionStatusDetail.setCreationDateTime( DateJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("StartDateTime", targetDepth)) { context.nextToken(); jobFlowExecutionStatusDetail.setStartDateTime( DateJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("ReadyDateTime", targetDepth)) { context.nextToken(); jobFlowExecutionStatusDetail.setReadyDateTime( DateJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("EndDateTime", targetDepth)) { context.nextToken(); jobFlowExecutionStatusDetail.setEndDateTime( DateJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("LastStateChangeReason", targetDepth)) { context.nextToken(); jobFlowExecutionStatusDetail.setLastStateChangeReason( StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return jobFlowExecutionStatusDetail; }
public ChildWorkflowExecutionFailedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { ChildWorkflowExecutionFailedEventAttributes childWorkflowExecutionFailedEventAttributes = new ChildWorkflowExecutionFailedEventAttributes(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("workflowExecution", targetDepth)) { context.nextToken(); childWorkflowExecutionFailedEventAttributes.setWorkflowExecution( WorkflowExecutionJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("workflowType", targetDepth)) { context.nextToken(); childWorkflowExecutionFailedEventAttributes.setWorkflowType( WorkflowTypeJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("reason", targetDepth)) { context.nextToken(); childWorkflowExecutionFailedEventAttributes.setReason( StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("details", targetDepth)) { context.nextToken(); childWorkflowExecutionFailedEventAttributes.setDetails( StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("initiatedEventId", targetDepth)) { context.nextToken(); childWorkflowExecutionFailedEventAttributes.setInitiatedEventId( LongJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("startedEventId", targetDepth)) { context.nextToken(); childWorkflowExecutionFailedEventAttributes.setStartedEventId( LongJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getCurrentDepth() <= originalDepth) break; } token = context.nextToken(); } return childWorkflowExecutionFailedEventAttributes; }
public Thumbnails unmarshall(JsonUnmarshallerContext context) throws Exception { Thumbnails thumbnails = new Thumbnails(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("Format", targetDepth)) { context.nextToken(); thumbnails.setFormat(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Interval", targetDepth)) { context.nextToken(); thumbnails.setInterval(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("Resolution", targetDepth)) { context.nextToken(); thumbnails.setResolution(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("AspectRatio", targetDepth)) { context.nextToken(); thumbnails.setAspectRatio(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("MaxWidth", targetDepth)) { context.nextToken(); thumbnails.setMaxWidth(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("MaxHeight", targetDepth)) { context.nextToken(); thumbnails.setMaxHeight(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("SizingPolicy", targetDepth)) { context.nextToken(); thumbnails.setSizingPolicy(StringJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("PaddingPolicy", targetDepth)) { context.nextToken(); thumbnails.setPaddingPolicy(StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return thumbnails; }
public WorkflowExecutionInfos unmarshall(JsonUnmarshallerContext context) throws Exception { WorkflowExecutionInfos workflowExecutionInfos = new WorkflowExecutionInfos(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("executionInfos", targetDepth)) { workflowExecutionInfos.setExecutionInfos( new ListUnmarshaller<WorkflowExecutionInfo>( WorkflowExecutionInfoJsonUnmarshaller.getInstance()) .unmarshall(context)); } if (context.testExpression("nextPageToken", targetDepth)) { context.nextToken(); workflowExecutionInfos.setNextPageToken( StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getCurrentDepth() <= originalDepth) break; } token = context.nextToken(); } return workflowExecutionInfos; }
public PutItemResult unmarshall(JsonUnmarshallerContext context) throws Exception { PutItemResult putItemResult = new PutItemResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("Attributes", targetDepth)) { putItemResult.setAttributes( new MapUnmarshaller<String, AttributeValue>( StringJsonUnmarshaller.getInstance(), AttributeValueJsonUnmarshaller.getInstance()) .unmarshall(context)); } if (context.testExpression("ConsumedCapacityUnits", targetDepth)) { context.nextToken(); putItemResult.setConsumedCapacityUnits( DoubleJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getCurrentDepth() <= originalDepth) break; } token = context.nextToken(); } return putItemResult; }
public AddWorkingStorageResult unmarshall(JsonUnmarshallerContext context) throws Exception { AddWorkingStorageResult addWorkingStorageResult = new AddWorkingStorageResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("GatewayARN", targetDepth)) { context.nextToken(); addWorkingStorageResult.setGatewayARN( StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return addWorkingStorageResult; }
public UpdateBandwidthRateLimitResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateBandwidthRateLimitResult updateBandwidthRateLimitResult = new UpdateBandwidthRateLimitResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("GatewayARN", targetDepth)) { context.nextToken(); updateBandwidthRateLimitResult.setGatewayARN( StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getCurrentDepth() <= originalDepth) break; } token = context.nextToken(); } return updateBandwidthRateLimitResult; }
public WorkflowExecutionCancelRequestedEventAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { WorkflowExecutionCancelRequestedEventAttributes workflowExecutionCancelRequestedEventAttributes = new WorkflowExecutionCancelRequestedEventAttributes(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; JsonToken token = context.currentToken; if (token == null) token = context.nextToken(); while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("externalWorkflowExecution", targetDepth)) { context.nextToken(); workflowExecutionCancelRequestedEventAttributes.setExternalWorkflowExecution( WorkflowExecutionJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("externalInitiatedEventId", targetDepth)) { context.nextToken(); workflowExecutionCancelRequestedEventAttributes.setExternalInitiatedEventId( LongJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("cause", targetDepth)) { context.nextToken(); workflowExecutionCancelRequestedEventAttributes.setCause( StringJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getCurrentDepth() <= originalDepth) break; } token = context.nextToken(); } return workflowExecutionCancelRequestedEventAttributes; }