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

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

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

origin: aws/aws-sdk-java

public InstanceBlockDeviceMapping unmarshall(StaxUnmarshallerContext context) throws Exception {
  InstanceBlockDeviceMapping instanceBlockDeviceMapping = new InstanceBlockDeviceMapping();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 1;
  while (true) {
    XMLEvent xmlEvent = context.nextEvent();
    if (xmlEvent.isEndDocument())
      return instanceBlockDeviceMapping;
    if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
      if (context.testExpression("deviceName", targetDepth)) {
        instanceBlockDeviceMapping.setDeviceName(StringStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
      if (context.testExpression("ebs", targetDepth)) {
        instanceBlockDeviceMapping.setEbs(EbsInstanceBlockDeviceStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent.isEndElement()) {
      if (context.getCurrentDepth() < originalDepth) {
        return instanceBlockDeviceMapping;
      }
    }
  }
}
origin: aws-amplify/aws-sdk-android

public InstanceBlockDeviceMapping unmarshall(StaxUnmarshallerContext context) throws Exception {
  InstanceBlockDeviceMapping instanceBlockDeviceMapping = new InstanceBlockDeviceMapping();
  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 instanceBlockDeviceMapping;
    if (xmlEvent == XmlPullParser.START_TAG) {
      if (context.testExpression("deviceName", targetDepth)) {
        instanceBlockDeviceMapping.setDeviceName(StringStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
      if (context.testExpression("ebs", targetDepth)) {
        instanceBlockDeviceMapping.setEbs(EbsInstanceBlockDeviceStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent == XmlPullParser.END_TAG) {
      if (context.getCurrentDepth() < originalDepth) {
        return instanceBlockDeviceMapping;
      }
    }
  }
}
origin: com.amazonaws/aws-java-sdk-ec2

public InstanceBlockDeviceMapping unmarshall(StaxUnmarshallerContext context) throws Exception {
  InstanceBlockDeviceMapping instanceBlockDeviceMapping = new InstanceBlockDeviceMapping();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;
  if (context.isStartOfDocument())
    targetDepth += 1;
  while (true) {
    XMLEvent xmlEvent = context.nextEvent();
    if (xmlEvent.isEndDocument())
      return instanceBlockDeviceMapping;
    if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
      if (context.testExpression("deviceName", targetDepth)) {
        instanceBlockDeviceMapping.setDeviceName(StringStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
      if (context.testExpression("ebs", targetDepth)) {
        instanceBlockDeviceMapping.setEbs(EbsInstanceBlockDeviceStaxUnmarshaller.getInstance().unmarshall(context));
        continue;
      }
    } else if (xmlEvent.isEndElement()) {
      if (context.getCurrentDepth() < originalDepth) {
        return instanceBlockDeviceMapping;
      }
    }
  }
}
com.amazonaws.services.ec2.modelInstanceBlockDeviceMapping<init>

Popular methods of InstanceBlockDeviceMapping

  • getEbs
    Parameters used to automatically set up EBS volumes when the instance is launched.
  • getDeviceName
    The device name (for example, /dev/sdh or xvdh).
  • setDeviceName
    The device name (for example, /dev/sdh or xvdh).
  • setEbs
    Parameters used to automatically set up EBS volumes when the instance is launched.

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
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