public DescribeLaunchConfigurationsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeLaunchConfigurationsResult describeLaunchConfigurationsResult = new DescribeLaunchConfigurationsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return describeLaunchConfigurationsResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("LaunchConfigurations", targetDepth)) { describeLaunchConfigurationsResult.withLaunchConfigurations(new ArrayList<LaunchConfiguration>()); continue; } if (context.testExpression("LaunchConfigurations/member", targetDepth)) { describeLaunchConfigurationsResult.withLaunchConfigurations(LaunchConfigurationStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NextToken", targetDepth)) { describeLaunchConfigurationsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return describeLaunchConfigurationsResult; } } } }
public DescribeLaunchConfigurationsResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeLaunchConfigurationsResult describeLaunchConfigurationsResult = new DescribeLaunchConfigurationsResult();
public DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) { return new DescribeLaunchConfigurationsResult() .withLaunchConfigurations( describe(request, "launchConfigurationNames", "launchConfigurations", LaunchConfiguration.class)); }
public DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) { return new DescribeLaunchConfigurationsResult().withLaunchConfigurations(describe(request, "launchConfigurationNames", "launchConfigurations", LaunchConfiguration.class, new TypeReference<List<LaunchConfiguration>>() { })); }