public DescribeObjectResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeObjectResult describeObjectResult = new DescribeObjectResult(); if (context.isStartOfDocument()) { if (context.getHeader("ETag") != null) { context.setCurrentHeader("ETag"); describeObjectResult.setETag(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.getHeader("Content-Type") != null) { context.setCurrentHeader("Content-Type"); describeObjectResult.setContentType(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.getHeader("Content-Length") != null) { context.setCurrentHeader("Content-Length"); describeObjectResult.setContentLength(context.getUnmarshaller(Long.class).unmarshall(context)); } if (context.getHeader("Cache-Control") != null) { context.setCurrentHeader("Cache-Control"); describeObjectResult.setCacheControl(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.getHeader("Last-Modified") != null) { context.setCurrentHeader("Last-Modified"); describeObjectResult.setLastModified(DateJsonUnmarshallerFactory.getInstance("rfc822").unmarshall(context)); } } return describeObjectResult; }
getObjectResult.setLastModified(DateJsonUnmarshallerFactory.getInstance("rfc822").unmarshall(context));
createActivityResult.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
createSecurityConfigurationResult.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
getRelationalDatabaseMasterUserPasswordResult.setCreatedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
if (context.testExpression("MoveToColdStorageAt", targetDepth)) { context.nextToken(); calculatedLifecycle.setMoveToColdStorageAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); calculatedLifecycle.setDeleteAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
fileSystemSize.setTimestamp(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
eventSubscription.setSubscribedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
describeApplicationStateResult.setLastUpdatedTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
if (context.testExpression("Timestamp", targetDepth)) { context.nextToken(); dataPoint.setTimestamp(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
createStateMachineResult.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
if (context.testExpression("start", targetDepth)) { context.nextToken(); timeRange.setStart(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); timeRange.setEnd(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
startExecutionResult.setStartDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
if (context.testExpression("stateChangedAt", targetDepth)) { context.nextToken(); assessmentRunStateChange.setStateChangedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
scheduleKeyDeletionResult.setDeletionDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
if (context.testExpression("FromInclusive", targetDepth)) { context.nextToken(); timeRange.setFromInclusive(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); timeRange.setToExclusive(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
public BillingGroupMetadata unmarshall(JsonUnmarshallerContext context) throws Exception { BillingGroupMetadata billingGroupMetadata = new BillingGroupMetadata(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("creationDate", targetDepth)) { context.nextToken(); billingGroupMetadata.setCreationDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").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 billingGroupMetadata; }
public StopExecutionResult unmarshall(JsonUnmarshallerContext context) throws Exception { StopExecutionResult stopExecutionResult = new StopExecutionResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return stopExecutionResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("stopDate", targetDepth)) { context.nextToken(); stopExecutionResult.setStopDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").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 stopExecutionResult; }
public PutApprovalResultResult unmarshall(JsonUnmarshallerContext context) throws Exception { PutApprovalResultResult putApprovalResultResult = new PutApprovalResultResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return putApprovalResultResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("approvedAt", targetDepth)) { context.nextToken(); putApprovalResultResult.setApprovedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").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 putApprovalResultResult; }
public UpdateStateMachineResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateStateMachineResult updateStateMachineResult = new UpdateStateMachineResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return updateStateMachineResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("updateDate", targetDepth)) { context.nextToken(); updateStateMachineResult.setUpdateDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").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 updateStateMachineResult; }