public ListConfigurationsResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListConfigurationsResponse.Builder listConfigurationsResponseBuilder = ListConfigurationsResponse.builder(); 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 listConfigurationsResponseBuilder.build(); if (context.testExpression("configurations", targetDepth)) { context.nextToken(); listConfigurationsResponseBuilder.configurations(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(); listConfigurationsResponseBuilder.nextToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public InputTransformer unmarshall(JsonUnmarshallerContext context) throws Exception { InputTransformer.Builder inputTransformerBuilder = InputTransformer.builder(); 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; if (context.testExpression("InputPathsMap", targetDepth)) { context.nextToken(); inputTransformerBuilder.inputPathsMap(new MapUnmarshaller<String, String>(context .getUnmarshaller(String.class), context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("InputTemplate", targetDepth)) { context.nextToken(); inputTransformerBuilder.inputTemplate(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
@Override public SdkHttpFullRequest marshall(BaseEventT eventT) { return marshallers.getOrDefault(eventT.getClass(), defaultMarshaller).marshall(eventT); }
public DescribeConfigurationsResponse unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeConfigurationsResponse.Builder describeConfigurationsResponseBuilder = DescribeConfigurationsResponse.builder(); 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 describeConfigurationsResponseBuilder.build(); if (context.testExpression("configurations", targetDepth)) { context.nextToken(); describeConfigurationsResponseBuilder.configurations(new ListUnmarshaller<java.util.Map<String, String>>( new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context .getUnmarshaller(String.class))).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
static <InputT extends SdkRequest, OutputT> InterceptorContext finalizeSdkHttpFullRequest( ClientExecutionParams<InputT, OutputT> executionParams, ExecutionContext executionContext, InputT inputT, SdkClientConfiguration clientConfiguration) { runBeforeMarshallingInterceptors(executionContext); SdkHttpFullRequest request = executionParams.getMarshaller().marshall(inputT); request = modifyEndpointHostIfNeeded(request, clientConfiguration, executionParams); addHttpRequest(executionContext, request); runAfterMarshallingInterceptors(executionContext); return runModifyHttpRequestInterceptors(request, executionContext); }
public Filter unmarshall(JsonUnmarshallerContext context) throws Exception { Filter.Builder filterBuilder = Filter.builder(); 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; if (context.testExpression("Name", targetDepth)) { context.nextToken(); filterBuilder.name(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Values", targetDepth)) { context.nextToken(); filterBuilder.values(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public RunCommandTarget unmarshall(JsonUnmarshallerContext context) throws Exception { RunCommandTarget.Builder runCommandTargetBuilder = RunCommandTarget.builder(); 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; if (context.testExpression("Key", targetDepth)) { context.nextToken(); runCommandTargetBuilder.key(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Values", targetDepth)) { context.nextToken(); runCommandTargetBuilder.values(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public TagFilter unmarshall(JsonUnmarshallerContext context) throws Exception { TagFilter.Builder tagFilterBuilder = TagFilter.builder(); 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; if (context.testExpression("name", targetDepth)) { context.nextToken(); tagFilterBuilder.name(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("values", targetDepth)) { context.nextToken(); tagFilterBuilder.values(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public EventCategoryGroup unmarshall(JsonUnmarshallerContext context) throws Exception { EventCategoryGroup.Builder eventCategoryGroupBuilder = EventCategoryGroup.builder(); 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; if (context.testExpression("SourceType", targetDepth)) { context.nextToken(); eventCategoryGroupBuilder.sourceType(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("EventCategories", targetDepth)) { context.nextToken(); eventCategoryGroupBuilder.eventCategories(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
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; if (context.testExpression("name", targetDepth)) { context.nextToken(); filterBuilder.name(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("values", targetDepth)) { context.nextToken(); filterBuilder.values(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("condition", targetDepth)) { context.nextToken(); filterBuilder.condition(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public DescribeSchemasResponse unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeSchemasResponse.Builder describeSchemasResponseBuilder = DescribeSchemasResponse.builder(); 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 describeSchemasResponseBuilder.build(); if (context.testExpression("Marker", targetDepth)) { context.nextToken(); describeSchemasResponseBuilder.marker(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Schemas", targetDepth)) { context.nextToken(); describeSchemasResponseBuilder.schemas(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public GetCsvHeaderResponse unmarshall(JsonUnmarshallerContext context) throws Exception { GetCsvHeaderResponse.Builder getCsvHeaderResponseBuilder = GetCsvHeaderResponse.builder(); 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 getCsvHeaderResponseBuilder.build(); if (context.testExpression("UserPoolId", targetDepth)) { context.nextToken(); getCsvHeaderResponseBuilder.userPoolId(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("CSVHeader", targetDepth)) { context.nextToken(); getCsvHeaderResponseBuilder.csvHeader(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)) .unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public ListRuleNamesByTargetResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListRuleNamesByTargetResponse.Builder listRuleNamesByTargetResponseBuilder = ListRuleNamesByTargetResponse.builder(); 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 listRuleNamesByTargetResponseBuilder.build(); if (context.testExpression("RuleNames", targetDepth)) { context.nextToken(); listRuleNamesByTargetResponseBuilder.ruleNames(new ListUnmarshaller<String>(context .getUnmarshaller(String.class)).unmarshall(context)); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listRuleNamesByTargetResponseBuilder.nextToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public ListUserPoolsResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListUserPoolsResponse.Builder listUserPoolsResponseBuilder = ListUserPoolsResponse.builder(); 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 listUserPoolsResponseBuilder.build(); if (context.testExpression("UserPools", targetDepth)) { context.nextToken(); listUserPoolsResponseBuilder.userPools(new ListUnmarshaller<UserPoolDescriptionType>( UserPoolDescriptionTypeUnmarshaller.getInstance()).unmarshall(context)); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listUserPoolsResponseBuilder.nextToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public DescribeEndpointsResponse unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeEndpointsResponse.Builder describeEndpointsResponseBuilder = DescribeEndpointsResponse.builder(); 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 describeEndpointsResponseBuilder.build(); if (context.testExpression("Marker", targetDepth)) { context.nextToken(); describeEndpointsResponseBuilder.marker(context.getUnmarshaller(String.class).unmarshall(context)); if (context.testExpression("Endpoints", targetDepth)) { context.nextToken(); describeEndpointsResponseBuilder.endpoints(new ListUnmarshaller<Endpoint>(EndpointUnmarshaller.getInstance()) .unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public GetConnectorsResponse unmarshall(JsonUnmarshallerContext context) throws Exception { GetConnectorsResponse.Builder getConnectorsResponseBuilder = GetConnectorsResponse.builder(); 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 getConnectorsResponseBuilder.build(); if (context.testExpression("connectorList", targetDepth)) { context.nextToken(); getConnectorsResponseBuilder.connectorList(new ListUnmarshaller<Connector>(ConnectorUnmarshaller .getInstance()).unmarshall(context)); if (context.testExpression("nextToken", targetDepth)) { context.nextToken(); getConnectorsResponseBuilder.nextToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public ListIdentityProvidersResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListIdentityProvidersResponse.Builder listIdentityProvidersResponseBuilder = ListIdentityProvidersResponse.builder(); 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 listIdentityProvidersResponseBuilder.build(); if (context.testExpression("Providers", targetDepth)) { context.nextToken(); listIdentityProvidersResponseBuilder.providers(new ListUnmarshaller<ProviderDescription>( ProviderDescriptionUnmarshaller.getInstance()).unmarshall(context)); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listIdentityProvidersResponseBuilder.nextToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public ListDevicesResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListDevicesResponse.Builder listDevicesResponseBuilder = ListDevicesResponse.builder(); 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 listDevicesResponseBuilder.build(); if (context.testExpression("Devices", targetDepth)) { context.nextToken(); listDevicesResponseBuilder.devices(new ListUnmarshaller<DeviceType>(DeviceTypeUnmarshaller.getInstance()) .unmarshall(context)); if (context.testExpression("PaginationToken", targetDepth)) { context.nextToken(); listDevicesResponseBuilder.paginationToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public ListTargetsByRuleResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListTargetsByRuleResponse.Builder listTargetsByRuleResponseBuilder = ListTargetsByRuleResponse.builder(); 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 listTargetsByRuleResponseBuilder.build(); if (context.testExpression("Targets", targetDepth)) { context.nextToken(); listTargetsByRuleResponseBuilder.targets(new ListUnmarshaller<Target>(TargetUnmarshaller.getInstance()) .unmarshall(context)); if (context.testExpression("NextToken", targetDepth)) { context.nextToken(); listTargetsByRuleResponseBuilder.nextToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();
public ListWorkflowTypesResponse unmarshall(JsonUnmarshallerContext context) throws Exception { ListWorkflowTypesResponse.Builder listWorkflowTypesResponseBuilder = ListWorkflowTypesResponse.builder(); 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 listWorkflowTypesResponseBuilder.build(); if (context.testExpression("typeInfos", targetDepth)) { context.nextToken(); listWorkflowTypesResponseBuilder.typeInfos(new ListUnmarshaller<WorkflowTypeInfo>( WorkflowTypeInfoUnmarshaller.getInstance()).unmarshall(context)); if (context.testExpression("nextPageToken", targetDepth)) { context.nextToken(); listWorkflowTypesResponseBuilder.nextPageToken(context.getUnmarshaller(String.class).unmarshall(context)); if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; token = context.nextToken();