Tabnine Logo
Image.getRootDeviceType
Code IndexAdd Tabnine to your IDE (free)

How to use
getRootDeviceType
method
in
com.amazonaws.services.ec2.model.Image

Best Java code snippets using com.amazonaws.services.ec2.model.Image.getRootDeviceType (Showing top 10 results out of 315)

origin: aws/aws-sdk-java

if (getRootDeviceName() != null)
  sb.append("RootDeviceName: ").append(getRootDeviceName()).append(",");
if (getRootDeviceType() != null)
  sb.append("RootDeviceType: ").append(getRootDeviceType()).append(",");
if (getSriovNetSupport() != null)
  sb.append("SriovNetSupport: ").append(getSriovNetSupport()).append(",");
origin: aws/aws-sdk-java

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode());
  hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
  hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode());
  hashCode = prime * hashCode + ((getImageLocation() == null) ? 0 : getImageLocation().hashCode());
  hashCode = prime * hashCode + ((getImageType() == null) ? 0 : getImageType().hashCode());
  hashCode = prime * hashCode + ((getPublic() == null) ? 0 : getPublic().hashCode());
  hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
  hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
  hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
  hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().hashCode());
  hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
  hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
  hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
  hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
  hashCode = prime * hashCode + ((getEnaSupport() == null) ? 0 : getEnaSupport().hashCode());
  hashCode = prime * hashCode + ((getHypervisor() == null) ? 0 : getHypervisor().hashCode());
  hashCode = prime * hashCode + ((getImageOwnerAlias() == null) ? 0 : getImageOwnerAlias().hashCode());
  hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
  hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode());
  hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode());
  hashCode = prime * hashCode + ((getSriovNetSupport() == null) ? 0 : getSriovNetSupport().hashCode());
  hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode());
  hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
  hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode());
  return hashCode;
}
origin: aws/aws-sdk-java

if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false)
  return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null)
  return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false)
  return false;
if (other.getSriovNetSupport() == null ^ this.getSriovNetSupport() == null)
origin: aws-amplify/aws-sdk-android

hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); 
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); 
hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode()); 
hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode()); 
hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode()); 
origin: aws-amplify/aws-sdk-android

if (getName() != null) sb.append("Name: " + getName() + ",");
if (getDescription() != null) sb.append("Description: " + getDescription() + ",");
if (getRootDeviceType() != null) sb.append("RootDeviceType: " + getRootDeviceType() + ",");
if (getRootDeviceName() != null) sb.append("RootDeviceName: " + getRootDeviceName() + ",");
if (getBlockDeviceMappings() != null) sb.append("BlockDeviceMappings: " + getBlockDeviceMappings() + ",");
origin: aws-amplify/aws-sdk-android

if (other.getDescription() == null ^ this.getDescription() == null) return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; 
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null) return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false) return false; 
if (other.getRootDeviceName() == null ^ this.getRootDeviceName() == null) return false;
if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false) return false; 
origin: com.amazonaws/aws-java-sdk-ec2

if (getRootDeviceName() != null)
  sb.append("RootDeviceName: ").append(getRootDeviceName()).append(",");
if (getRootDeviceType() != null)
  sb.append("RootDeviceType: ").append(getRootDeviceType()).append(",");
if (getSriovNetSupport() != null)
  sb.append("SriovNetSupport: ").append(getSriovNetSupport()).append(",");
origin: com.amazonaws/aws-java-sdk-ec2

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode());
  hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
  hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode());
  hashCode = prime * hashCode + ((getImageLocation() == null) ? 0 : getImageLocation().hashCode());
  hashCode = prime * hashCode + ((getImageType() == null) ? 0 : getImageType().hashCode());
  hashCode = prime * hashCode + ((getPublic() == null) ? 0 : getPublic().hashCode());
  hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
  hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
  hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
  hashCode = prime * hashCode + ((getProductCodes() == null) ? 0 : getProductCodes().hashCode());
  hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
  hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
  hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
  hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
  hashCode = prime * hashCode + ((getEnaSupport() == null) ? 0 : getEnaSupport().hashCode());
  hashCode = prime * hashCode + ((getHypervisor() == null) ? 0 : getHypervisor().hashCode());
  hashCode = prime * hashCode + ((getImageOwnerAlias() == null) ? 0 : getImageOwnerAlias().hashCode());
  hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
  hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode());
  hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode());
  hashCode = prime * hashCode + ((getSriovNetSupport() == null) ? 0 : getSriovNetSupport().hashCode());
  hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode());
  hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
  hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode());
  return hashCode;
}
origin: jenkinsci/ec2-plugin

private void setupRootDevice(List<BlockDeviceMapping> deviceMappings) {
  if (deleteRootOnTermination && getImage().getRootDeviceType().equals("ebs")) {
    // get the root device (only one expected in the blockmappings)
    final List<BlockDeviceMapping> rootDeviceMappings = getAmiBlockDeviceMappings();
    BlockDeviceMapping rootMapping = null;
    for (final BlockDeviceMapping deviceMapping : rootDeviceMappings) {
      System.out.println("AMI had " + deviceMapping.getDeviceName());
      System.out.println(deviceMapping.getEbs());
      rootMapping = deviceMapping;
      break;
    }
    // Check if the root device is already in the mapping and update it
    for (final BlockDeviceMapping mapping : deviceMappings) {
      System.out.println("Request had " + mapping.getDeviceName());
      if (rootMapping.getDeviceName().equals(mapping.getDeviceName())) {
        mapping.getEbs().setDeleteOnTermination(Boolean.TRUE);
        return;
      }
    }
    // Create a shadow of the AMI mapping (doesn't like reusing rootMapping directly)
    BlockDeviceMapping newMapping = new BlockDeviceMapping().withDeviceName(rootMapping.getDeviceName());
    EbsBlockDevice newEbs = new EbsBlockDevice();
    newEbs.setDeleteOnTermination(Boolean.TRUE);
    newMapping.setEbs(newEbs);
    deviceMappings.add(0, newMapping);
  }
}
origin: com.amazonaws/aws-java-sdk-ec2

if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false)
  return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null)
  return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false)
  return false;
if (other.getSriovNetSupport() == null ^ this.getSriovNetSupport() == null)
com.amazonaws.services.ec2.modelImagegetRootDeviceType

Javadoc

The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.

Popular methods of Image

  • getImageId
    The ID of the AMI.
  • getName
    The name of the AMI that was provided during image creation.
  • getBlockDeviceMappings
    Any block device mapping entries.
  • getImageLocation
    The location of the AMI.
  • getImageOwnerAlias
    The AWS account alias (for example, amazon, self) or the AWS account ID of the AMI owner.
  • getOwnerId
    The AWS account ID of the image owner.
  • getPlatform
    The value is Windows for Windows AMIs; otherwise blank.
  • getRootDeviceName
    The device name of the root device volume (for example, /dev/sda1).
  • getState
    The current state of the AMI. If the state is available, the image is successfully registered and c
  • getTags
    Any tags assigned to the image.
  • setImageId
    The ID of the AMI.
  • <init>
  • setImageId,
  • <init>,
  • getArchitecture,
  • getCreationDate,
  • getDescription,
  • getHypervisor,
  • getImageType,
  • getKernelId,
  • getProductCodes

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • 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
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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