Tabnine Logo
DescribeInternetGatewaysResult.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.amazonaws.services.ec2.model.DescribeInternetGatewaysResult
constructor

Best Java code snippets using com.amazonaws.services.ec2.model.DescribeInternetGatewaysResult.<init> (Showing top 3 results out of 315)

origin: aws/aws-sdk-java

public DescribeInternetGatewaysResult unmarshall(StaxUnmarshallerContext context) throws Exception {
  DescribeInternetGatewaysResult describeInternetGatewaysResult = new DescribeInternetGatewaysResult();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 1;
  while (true) {
    XMLEvent xmlEvent = context.nextEvent();
    if (xmlEvent.isEndDocument())
      return describeInternetGatewaysResult;
    if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
      if (context.testExpression("internetGatewaySet", targetDepth)) {
        describeInternetGatewaysResult.withInternetGateways(new ArrayList<InternetGateway>());
        continue;
      }
      if (context.testExpression("internetGatewaySet/item", targetDepth)) {
        describeInternetGatewaysResult.withInternetGateways(InternetGatewayStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent.isEndElement()) {
      if (context.getCurrentDepth() < originalDepth) {
        return describeInternetGatewaysResult;
      }
    }
  }
}
origin: aws-amplify/aws-sdk-android

public DescribeInternetGatewaysResult unmarshall(StaxUnmarshallerContext context) throws Exception {
  DescribeInternetGatewaysResult describeInternetGatewaysResult = new DescribeInternetGatewaysResult();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument()) targetDepth += 1;
  while (true) {
    int xmlEvent = context.nextEvent();
    if (xmlEvent == XmlPullParser.END_DOCUMENT) return describeInternetGatewaysResult;
    if (xmlEvent == XmlPullParser.START_TAG) {
      if (context.testExpression("internetGatewaySet/item", targetDepth)) {
        describeInternetGatewaysResult.getInternetGateways().add(InternetGatewayStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent == XmlPullParser.END_TAG) {
      if (context.getCurrentDepth() < originalDepth) {
        return describeInternetGatewaysResult;
      }
    }
  }
}
origin: com.amazonaws/aws-java-sdk-ec2

public DescribeInternetGatewaysResult unmarshall(StaxUnmarshallerContext context) throws Exception {
  DescribeInternetGatewaysResult describeInternetGatewaysResult = new DescribeInternetGatewaysResult();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 1;
  while (true) {
    XMLEvent xmlEvent = context.nextEvent();
    if (xmlEvent.isEndDocument())
      return describeInternetGatewaysResult;
    if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
      if (context.testExpression("internetGatewaySet", targetDepth)) {
        describeInternetGatewaysResult.withInternetGateways(new ArrayList<InternetGateway>());
        continue;
      }
      if (context.testExpression("internetGatewaySet/item", targetDepth)) {
        describeInternetGatewaysResult.withInternetGateways(InternetGatewayStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent.isEndElement()) {
      if (context.getCurrentDepth() < originalDepth) {
        return describeInternetGatewaysResult;
      }
    }
  }
}
com.amazonaws.services.ec2.modelDescribeInternetGatewaysResult<init>

Popular methods of DescribeInternetGatewaysResult

  • getInternetGateways
    Information about one or more internet gateways.
  • setInternetGateways
    Information about one or more internet gateways.
  • withInternetGateways
    Information about one or more internet gateways. NOTE: This method appends the values to the exist

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now