public GCMChannelRequest unmarshall(JsonUnmarshallerContext context) throws Exception { GCMChannelRequest gCMChannelRequest = new GCMChannelRequest(); 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("ApiKey", targetDepth)) { context.nextToken(); gCMChannelRequest.setApiKey(context.getUnmarshaller(String.class).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 gCMChannelRequest; }
public JobSummary unmarshall(JsonUnmarshallerContext context) throws Exception { JobSummary jobSummary = new JobSummary(); 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("jobId", targetDepth)) { context.nextToken(); jobSummary.setJobId(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("jobName", targetDepth)) { context.nextToken(); jobSummary.setJobName(context.getUnmarshaller(String.class).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 jobSummary; }
public GitHubLocation unmarshall(JsonUnmarshallerContext context) throws Exception { GitHubLocation gitHubLocation = new GitHubLocation(); 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("repository", targetDepth)) { context.nextToken(); gitHubLocation.setRepository(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("commitId", targetDepth)) { context.nextToken(); gitHubLocation.setCommitId(context.getUnmarshaller(String.class).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 gitHubLocation; }
public WebACLUpdate unmarshall(JsonUnmarshallerContext context) throws Exception { WebACLUpdate webACLUpdate = new WebACLUpdate(); 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("Action", targetDepth)) { context.nextToken(); webACLUpdate.setAction(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("ActivatedRule", targetDepth)) { context.nextToken(); webACLUpdate.setActivatedRule( ActivatedRuleJsonUnmarshaller.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 webACLUpdate; }
public InstallToRemoteAccessSessionResult unmarshall(JsonUnmarshallerContext context) throws Exception { InstallToRemoteAccessSessionResult installToRemoteAccessSessionResult = new InstallToRemoteAccessSessionResult(); 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("appUpload", targetDepth)) { context.nextToken(); installToRemoteAccessSessionResult.setAppUpload( UploadJsonUnmarshaller.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 installToRemoteAccessSessionResult; }
public GetUserAttributeVerificationCodeResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetUserAttributeVerificationCodeResult getUserAttributeVerificationCodeResult = new GetUserAttributeVerificationCodeResult(); 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("CodeDeliveryDetails", targetDepth)) { context.nextToken(); getUserAttributeVerificationCodeResult.setCodeDeliveryDetails( CodeDeliveryDetailsTypeJsonUnmarshaller.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 getUserAttributeVerificationCodeResult; }
public ParameterConstraints unmarshall(JsonUnmarshallerContext context) throws Exception { ParameterConstraints parameterConstraints = new ParameterConstraints(); 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("AllowedValues", targetDepth)) { context.nextToken(); parameterConstraints.setAllowedValues( new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .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 parameterConstraints; }
public DataRetrievalRule unmarshall(JsonUnmarshallerContext context) throws Exception { DataRetrievalRule dataRetrievalRule = new DataRetrievalRule(); 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("Strategy", targetDepth)) { context.nextToken(); dataRetrievalRule.setStrategy(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("BytesPerHour", targetDepth)) { context.nextToken(); dataRetrievalRule.setBytesPerHour( context.getUnmarshaller(Long.class).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 dataRetrievalRule; }
public DeregisterContainerInstanceResult unmarshall(JsonUnmarshallerContext context) throws Exception { DeregisterContainerInstanceResult deregisterContainerInstanceResult = new DeregisterContainerInstanceResult(); 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("containerInstance", targetDepth)) { context.nextToken(); deregisterContainerInstanceResult.setContainerInstance( ContainerInstanceJsonUnmarshaller.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 deregisterContainerInstanceResult; }
public ListSuitesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListSuitesResult listSuitesResult = new ListSuitesResult(); 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("suites", targetDepth)) { context.nextToken(); listSuitesResult.setSuites( new ListUnmarshaller<Suite>(SuiteJsonUnmarshaller.getInstance()).unmarshall(context)); } if (context.testExpression("nextToken", targetDepth)) { context.nextToken(); listSuitesResult.setNextToken(context.getUnmarshaller(String.class).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 listSuitesResult; }
public ReleaseStaticIpResult unmarshall(JsonUnmarshallerContext context) throws Exception { ReleaseStaticIpResult releaseStaticIpResult = new ReleaseStaticIpResult(); 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("operations", targetDepth)) { context.nextToken(); releaseStaticIpResult.setOperations( new ListUnmarshaller<Operation>(OperationJsonUnmarshaller.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 releaseStaticIpResult; }
public CreateRestApiResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateRestApiResult createRestApiResult = new CreateRestApiResult(); 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("id", targetDepth)) { context.nextToken(); createRestApiResult.setId(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("name", targetDepth)) { context.nextToken(); createRestApiResult.setName(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("description", targetDepth)) { context.nextToken(); createRestApiResult.setDescription( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("createdDate", targetDepth)) { context.nextToken(); createRestApiResult.setCreatedDate( context.getUnmarshaller(java.util.Date.class).unmarshall(context)); } if (context.testExpression("version", targetDepth)) { context.nextToken(); createRestApiResult.setVersion(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("warnings", targetDepth)) { context.nextToken(); createRestApiResult.setWarnings( new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); } if (context.testExpression("binaryMediaTypes", targetDepth)) { context.nextToken(); createRestApiResult.setBinaryMediaTypes( new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .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 createRestApiResult; }
public CreateGrantResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateGrantResult createGrantResult = new CreateGrantResult(); 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("GrantToken", targetDepth)) { context.nextToken(); createGrantResult.setGrantToken( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("GrantId", targetDepth)) { context.nextToken(); createGrantResult.setGrantId(context.getUnmarshaller(String.class).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 createGrantResult; }
public IncompatibilityMessage unmarshall(JsonUnmarshallerContext context) throws Exception { IncompatibilityMessage incompatibilityMessage = new IncompatibilityMessage(); 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("message", targetDepth)) { context.nextToken(); incompatibilityMessage.setMessage( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("type", targetDepth)) { context.nextToken(); incompatibilityMessage.setType(context.getUnmarshaller(String.class).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 incompatibilityMessage; }
public Tag unmarshall(JsonUnmarshallerContext context) throws Exception { Tag tag = new Tag(); 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("Key", targetDepth)) { context.nextToken(); tag.setKey(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("Value", targetDepth)) { context.nextToken(); tag.setValue(context.getUnmarshaller(String.class).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 tag; }
public ThrottleSettings unmarshall(JsonUnmarshallerContext context) throws Exception { ThrottleSettings throttleSettings = new ThrottleSettings(); 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("burstLimit", targetDepth)) { context.nextToken(); throttleSettings.setBurstLimit( context.getUnmarshaller(Integer.class).unmarshall(context)); } if (context.testExpression("rateLimit", targetDepth)) { context.nextToken(); throttleSettings.setRateLimit(context.getUnmarshaller(Double.class).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 throttleSettings; }
public SeverityLevel unmarshall(JsonUnmarshallerContext context) throws Exception { SeverityLevel severityLevel = new SeverityLevel(); 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("code", targetDepth)) { context.nextToken(); severityLevel.setCode(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("name", targetDepth)) { context.nextToken(); severityLevel.setName(context.getUnmarshaller(String.class).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 severityLevel; }
public FleetError unmarshall(JsonUnmarshallerContext context) throws Exception { FleetError fleetError = new FleetError(); 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("ErrorCode", targetDepth)) { context.nextToken(); fleetError.setErrorCode(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("ErrorMessage", targetDepth)) { context.nextToken(); fleetError.setErrorMessage(context.getUnmarshaller(String.class).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 fleetError; }
public CancelWorkflowExecutionDecisionAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { CancelWorkflowExecutionDecisionAttributes cancelWorkflowExecutionDecisionAttributes = new CancelWorkflowExecutionDecisionAttributes(); 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("details", targetDepth)) { context.nextToken(); cancelWorkflowExecutionDecisionAttributes.setDetails( context.getUnmarshaller(String.class).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 cancelWorkflowExecutionDecisionAttributes; }
public ActivityTypeConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { ActivityTypeConfiguration activityTypeConfiguration = new ActivityTypeConfiguration(); 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("defaultTaskStartToCloseTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskStartToCloseTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskHeartbeatTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskHeartbeatTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskList", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskList( TaskListJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("defaultTaskPriority", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskPriority( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskScheduleToStartTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskScheduleToStartTimeout( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("defaultTaskScheduleToCloseTimeout", targetDepth)) { context.nextToken(); activityTypeConfiguration.setDefaultTaskScheduleToCloseTimeout( context.getUnmarshaller(String.class).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 activityTypeConfiguration; }
public UserType unmarshall(JsonUnmarshallerContext context) throws Exception { UserType userType = new UserType(); 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("Username", targetDepth)) { context.nextToken(); userType.setUsername(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("Attributes", targetDepth)) { context.nextToken(); userType.setAttributes( new ListUnmarshaller<AttributeType>(AttributeTypeJsonUnmarshaller.getInstance()) .unmarshall(context)); } if (context.testExpression("UserCreateDate", targetDepth)) { context.nextToken(); userType.setUserCreateDate( context.getUnmarshaller(java.util.Date.class).unmarshall(context)); } if (context.testExpression("UserLastModifiedDate", targetDepth)) { context.nextToken(); userType.setUserLastModifiedDate( context.getUnmarshaller(java.util.Date.class).unmarshall(context)); } if (context.testExpression("Enabled", targetDepth)) { context.nextToken(); userType.setEnabled(context.getUnmarshaller(Boolean.class).unmarshall(context)); } if (context.testExpression("UserStatus", targetDepth)) { context.nextToken(); userType.setUserStatus(context.getUnmarshaller(String.class).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 userType; }
public ExecutionListItem unmarshall(JsonUnmarshallerContext context) throws Exception { ExecutionListItem executionListItem = new ExecutionListItem(); 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("executionArn", targetDepth)) { context.nextToken(); executionListItem.setExecutionArn( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("stateMachineArn", targetDepth)) { context.nextToken(); executionListItem.setStateMachineArn( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("name", targetDepth)) { context.nextToken(); executionListItem.setName(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("status", targetDepth)) { context.nextToken(); executionListItem.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("startDate", targetDepth)) { context.nextToken(); executionListItem.setStartDate( context.getUnmarshaller(java.util.Date.class).unmarshall(context)); } if (context.testExpression("stopDate", targetDepth)) { context.nextToken(); executionListItem.setStopDate( context.getUnmarshaller(java.util.Date.class).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 executionListItem; }
public ActionType unmarshall(JsonUnmarshallerContext context) throws Exception { ActionType actionType = new ActionType(); 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("id", targetDepth)) { context.nextToken(); actionType.setId(ActionTypeIdJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("settings", targetDepth)) { context.nextToken(); actionType.setSettings( ActionTypeSettingsJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("actionConfigurationProperties", targetDepth)) { context.nextToken(); actionType.setActionConfigurationProperties( new ListUnmarshaller<ActionConfigurationProperty>( ActionConfigurationPropertyJsonUnmarshaller.getInstance()) .unmarshall(context)); } if (context.testExpression("inputArtifactDetails", targetDepth)) { context.nextToken(); actionType.setInputArtifactDetails( ArtifactDetailsJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("outputArtifactDetails", targetDepth)) { context.nextToken(); actionType.setOutputArtifactDetails( ArtifactDetailsJsonUnmarshaller.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 actionType; }
public Resource unmarshall(JsonUnmarshallerContext context) throws Exception { Resource resource = new Resource(); 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("name", targetDepth)) { context.nextToken(); resource.setName(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("type", targetDepth)) { context.nextToken(); resource.setType(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("doubleValue", targetDepth)) { context.nextToken(); resource.setDoubleValue(context.getUnmarshaller(Double.class).unmarshall(context)); } if (context.testExpression("longValue", targetDepth)) { context.nextToken(); resource.setLongValue(context.getUnmarshaller(Long.class).unmarshall(context)); } if (context.testExpression("integerValue", targetDepth)) { context.nextToken(); resource.setIntegerValue(context.getUnmarshaller(Integer.class).unmarshall(context)); } if (context.testExpression("stringSetValue", targetDepth)) { context.nextToken(); resource.setStringSetValue( new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .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 resource; }
public Hit unmarshall(JsonUnmarshallerContext context) throws Exception { Hit hit = new Hit(); 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("id", targetDepth)) { context.nextToken(); hit.setId(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("fields", targetDepth)) { context.nextToken(); hit.setFields( new MapUnmarshaller<String, java.util.List<String>>( context.getUnmarshaller(String.class), new ListUnmarshaller<String>(context.getUnmarshaller(String.class))) .unmarshall(context)); } if (context.testExpression("exprs", targetDepth)) { context.nextToken(); hit.setExprs( new MapUnmarshaller<String, String>( context.getUnmarshaller(String.class), context.getUnmarshaller(String.class)) .unmarshall(context)); } if (context.testExpression("highlights", targetDepth)) { context.nextToken(); hit.setHighlights( new MapUnmarshaller<String, String>( context.getUnmarshaller(String.class), context.getUnmarshaller(String.class)) .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 hit; }
public WorkflowExecutionDetail unmarshall(JsonUnmarshallerContext context) throws Exception { WorkflowExecutionDetail workflowExecutionDetail = new WorkflowExecutionDetail(); 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("executionInfo", targetDepth)) { context.nextToken(); workflowExecutionDetail.setExecutionInfo( WorkflowExecutionInfoJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("executionConfiguration", targetDepth)) { context.nextToken(); workflowExecutionDetail.setExecutionConfiguration( WorkflowExecutionConfigurationJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("openCounts", targetDepth)) { context.nextToken(); workflowExecutionDetail.setOpenCounts( WorkflowExecutionOpenCountsJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("latestActivityTaskTimestamp", targetDepth)) { context.nextToken(); workflowExecutionDetail.setLatestActivityTaskTimestamp( context.getUnmarshaller(java.util.Date.class).unmarshall(context)); } if (context.testExpression("latestExecutionContext", targetDepth)) { context.nextToken(); workflowExecutionDetail.setLatestExecutionContext( context.getUnmarshaller(String.class).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 workflowExecutionDetail; }
public EndpointLocation unmarshall(JsonUnmarshallerContext context) throws Exception { EndpointLocation endpointLocation = new EndpointLocation(); 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("City", targetDepth)) { context.nextToken(); endpointLocation.setCity(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("Country", targetDepth)) { context.nextToken(); endpointLocation.setCountry(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("Latitude", targetDepth)) { context.nextToken(); endpointLocation.setLatitude(context.getUnmarshaller(Double.class).unmarshall(context)); } if (context.testExpression("Longitude", targetDepth)) { context.nextToken(); endpointLocation.setLongitude(context.getUnmarshaller(Double.class).unmarshall(context)); } if (context.testExpression("PostalCode", targetDepth)) { context.nextToken(); endpointLocation.setPostalCode(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("Region", targetDepth)) { context.nextToken(); endpointLocation.setRegion(context.getUnmarshaller(String.class).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 endpointLocation; }
public CreateJobPlaylist unmarshall(JsonUnmarshallerContext context) throws Exception { CreateJobPlaylist createJobPlaylist = new CreateJobPlaylist(); 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("Name", targetDepth)) { context.nextToken(); createJobPlaylist.setName(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("Format", targetDepth)) { context.nextToken(); createJobPlaylist.setFormat(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("OutputKeys", targetDepth)) { context.nextToken(); createJobPlaylist.setOutputKeys( new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); } if (context.testExpression("HlsContentProtection", targetDepth)) { context.nextToken(); createJobPlaylist.setHlsContentProtection( HlsContentProtectionJsonUnmarshaller.getInstance().unmarshall(context)); } if (context.testExpression("PlayReadyDrm", targetDepth)) { context.nextToken(); createJobPlaylist.setPlayReadyDrm( PlayReadyDrmJsonUnmarshaller.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 createJobPlaylist; }
public Offering unmarshall(JsonUnmarshallerContext context) throws Exception { Offering offering = new Offering(); 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("id", targetDepth)) { context.nextToken(); offering.setId(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("description", targetDepth)) { context.nextToken(); offering.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("type", targetDepth)) { context.nextToken(); offering.setType(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("platform", targetDepth)) { context.nextToken(); offering.setPlatform(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("recurringCharges", targetDepth)) { context.nextToken(); offering.setRecurringCharges( new ListUnmarshaller<RecurringCharge>(RecurringChargeJsonUnmarshaller.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 offering; }
public GatewayInfo unmarshall(JsonUnmarshallerContext context) throws Exception { GatewayInfo gatewayInfo = new GatewayInfo(); 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("GatewayId", targetDepth)) { context.nextToken(); gatewayInfo.setGatewayId(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("GatewayARN", targetDepth)) { context.nextToken(); gatewayInfo.setGatewayARN(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("GatewayType", targetDepth)) { context.nextToken(); gatewayInfo.setGatewayType(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("GatewayOperationalState", targetDepth)) { context.nextToken(); gatewayInfo.setGatewayOperationalState( context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("GatewayName", targetDepth)) { context.nextToken(); gatewayInfo.setGatewayName(context.getUnmarshaller(String.class).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 gatewayInfo; }