Refine search
public DescribeConfigurationsResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeConfigurationsResult describeConfigurationsResult = new DescribeConfigurationsResult(); 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 describeConfigurationsResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("configurations", targetDepth)) { context.nextToken(); describeConfigurationsResult.setConfigurations(new ListUnmarshaller<java.util.Map<String, String>>(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 describeConfigurationsResult; }
/** * Unmarshalls the response headers or the json doc in the payload to the * list */ public List<T> unmarshall(JsonUnmarshallerContext context) throws Exception { if (context.isInsideResponseHeader()) { return unmarshallResponseHeaderToList(context); } return unmarshallJsonToList(context); }
public MaintenanceWindowAutomationParameters unmarshall(JsonUnmarshallerContext context) throws Exception { MaintenanceWindowAutomationParameters maintenanceWindowAutomationParameters = new MaintenanceWindowAutomationParameters(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("DocumentVersion", targetDepth)) { context.nextToken(); maintenanceWindowAutomationParameters.setDocumentVersion(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Parameters", targetDepth)) { context.nextToken(); maintenanceWindowAutomationParameters.setParameters(new MapUnmarshaller<String, java.util.List<String>>(context .getUnmarshaller(String.class), new ListUnmarshaller<String>(context.getUnmarshaller(String.class))).unmarshall(context));
public AddJobFlowStepsResult unmarshall(JsonUnmarshallerContext context) throws Exception { AddJobFlowStepsResult addJobFlowStepsResult = new AddJobFlowStepsResult(); 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 addJobFlowStepsResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("StepIds", targetDepth)) { context.nextToken(); addJobFlowStepsResult.setStepIds(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 addJobFlowStepsResult; }
public OnPremConfig unmarshall(JsonUnmarshallerContext context) throws Exception { OnPremConfig onPremConfig = new OnPremConfig(); 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("AgentArns", targetDepth)) { context.nextToken(); onPremConfig.setAgentArns(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 onPremConfig; }
public LabelingJobDataAttributes unmarshall(JsonUnmarshallerContext context) throws Exception { LabelingJobDataAttributes labelingJobDataAttributes = new LabelingJobDataAttributes(); 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("ContentClassifiers", targetDepth)) { context.nextToken(); labelingJobDataAttributes.setContentClassifiers(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 labelingJobDataAttributes; }
public GetSupportedResourceTypesResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetSupportedResourceTypesResult getSupportedResourceTypesResult = new GetSupportedResourceTypesResult(); 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 getSupportedResourceTypesResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("ResourceTypes", targetDepth)) { context.nextToken(); getSupportedResourceTypesResult.setResourceTypes(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 getSupportedResourceTypesResult; }
public DefaultMessage unmarshall(JsonUnmarshallerContext context) throws Exception { DefaultMessage defaultMessage = new DefaultMessage(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("Body", targetDepth)) { context.nextToken(); defaultMessage.setBody(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Substitutions", targetDepth)) { context.nextToken(); defaultMessage.setSubstitutions(new MapUnmarshaller<String, java.util.List<String>>(context.getUnmarshaller(String.class), new ListUnmarshaller<String>(context.getUnmarshaller(String.class))).unmarshall(context));
public ListConfigurationsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListConfigurationsResult listConfigurationsResult = new ListConfigurationsResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("configurations", targetDepth)) { context.nextToken(); listConfigurationsResult.setConfigurations(new ListUnmarshaller<java.util.Map<String, String>>(new MapUnmarshaller<String, String>(context .getUnmarshaller(String.class), context.getUnmarshaller(String.class))).unmarshall(context)); if (context.testExpression("nextToken", targetDepth)) { context.nextToken(); listConfigurationsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public DeploymentCommand unmarshall(JsonUnmarshallerContext context) throws Exception { DeploymentCommand deploymentCommand = new DeploymentCommand(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("Name", targetDepth)) { context.nextToken(); deploymentCommand.setName(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Args", targetDepth)) { context.nextToken(); deploymentCommand.setArgs(new MapUnmarshaller<String, java.util.List<String>>(context.getUnmarshaller(String.class), new ListUnmarshaller<String>(context.getUnmarshaller(String.class))).unmarshall(context));
public EndpointUser unmarshall(JsonUnmarshallerContext context) throws Exception { EndpointUser endpointUser = new EndpointUser(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("UserAttributes", targetDepth)) { context.nextToken(); endpointUser.setUserAttributes(new MapUnmarshaller<String, java.util.List<String>>(context.getUnmarshaller(String.class), new ListUnmarshaller<String>(context.getUnmarshaller(String.class))).unmarshall(context)); if (context.testExpression("UserId", targetDepth)) { context.nextToken(); endpointUser.setUserId(context.getUnmarshaller(String.class).unmarshall(context));
public GetBlacklistReportsResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetBlacklistReportsResult getBlacklistReportsResult = new GetBlacklistReportsResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("BlacklistReport", targetDepth)) { context.nextToken(); getBlacklistReportsResult.setBlacklistReport(new MapUnmarshaller<String, java.util.List<BlacklistEntry>>(context .getUnmarshaller(String.class), new ListUnmarshaller<BlacklistEntry>(BlacklistEntryJsonUnmarshaller.getInstance())) .unmarshall(context));
public ListTypedLinkFacetNamesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListTypedLinkFacetNamesResult listTypedLinkFacetNamesResult = new ListTypedLinkFacetNamesResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("FacetNames", targetDepth)) { context.nextToken(); listTypedLinkFacetNamesResult.setFacetNames(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listTypedLinkFacetNamesResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public ListGitHubAccountTokenNamesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListGitHubAccountTokenNamesResult listGitHubAccountTokenNamesResult = new ListGitHubAccountTokenNamesResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("tokenNameList", targetDepth)) { context.nextToken(); listGitHubAccountTokenNamesResult.setTokenNameList(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("nextToken", targetDepth)) { context.nextToken(); listGitHubAccountTokenNamesResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public GetCSVHeaderResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetCSVHeaderResult getCSVHeaderResult = new GetCSVHeaderResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("UserPoolId", targetDepth)) { context.nextToken(); getCSVHeaderResult.setUserPoolId(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("CSVHeader", targetDepth)) { context.nextToken(); getCSVHeaderResult.setCSVHeader(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
public ListIPSetsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListIPSetsResult listIPSetsResult = new ListIPSetsResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("ipSetIds", targetDepth)) { context.nextToken(); listIPSetsResult.setIpSetIds(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("nextToken", targetDepth)) { context.nextToken(); listIPSetsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public Operator unmarshall(JsonUnmarshallerContext context) throws Exception { Operator operator = new Operator(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("type", targetDepth)) { context.nextToken(); operator.setType(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("values", targetDepth)) { context.nextToken(); operator.setValues(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
public ListAssociatedFleetsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListAssociatedFleetsResult listAssociatedFleetsResult = new ListAssociatedFleetsResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("Names", targetDepth)) { context.nextToken(); listAssociatedFleetsResult.setNames(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listAssociatedFleetsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
public TagFilter unmarshall(JsonUnmarshallerContext context) throws Exception { TagFilter tagFilter = new TagFilter(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("Key", targetDepth)) { context.nextToken(); tagFilter.setKey(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Values", targetDepth)) { context.nextToken(); tagFilter.setValues(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
public ListPrincipalThingsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListPrincipalThingsResult listPrincipalThingsResult = new ListPrincipalThingsResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (context.testExpression("things", targetDepth)) { context.nextToken(); listPrincipalThingsResult.setThings(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("nextToken", targetDepth)) { context.nextToken(); listPrincipalThingsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));