congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
InstanceBlockDeviceMapping.setDeviceName
Code IndexAdd Tabnine to your IDE (free)

How to use
setDeviceName
method
in
com.amazonaws.services.ec2.model.InstanceBlockDeviceMapping

Best Java code snippets using com.amazonaws.services.ec2.model.InstanceBlockDeviceMapping.setDeviceName (Showing top 5 results out of 315)

origin: aws/aws-sdk-java

/**
 * <p>
 * The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).
 * </p>
 * 
 * @param deviceName
 *        The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public InstanceBlockDeviceMapping withDeviceName(String deviceName) {
  setDeviceName(deviceName);
  return this;
}
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: com.amazonaws/aws-java-sdk-ec2

/**
 * <p>
 * The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).
 * </p>
 * 
 * @param deviceName
 *        The device name (for example, <code>/dev/sdh</code> or <code>xvdh</code>).
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public InstanceBlockDeviceMapping withDeviceName(String deviceName) {
  setDeviceName(deviceName);
  return this;
}
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.modelInstanceBlockDeviceMappingsetDeviceName

Javadoc

The device name exposed to the instance (for example, /dev/sdh or xvdh).

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).
  • <init>
  • setEbs
    Parameters used to automatically set up EBS volumes when the instance is launched.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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