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

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

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

origin: aws/aws-sdk-java

if (getCreationDate() != null)
  sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getImageId() != null)
  sb.append("ImageId: ").append(getImageId()).append(",");
if (getImageLocation() != null)
  sb.append("ImageLocation: ").append(getImageLocation()).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.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false)
  return false;
if (other.getImageId() == null ^ this.getImageId() == null)
  return false;
if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false)
  return false;
if (other.getImageLocation() == null ^ this.getImageLocation() == null)
origin: aws-amplify/aws-sdk-android

StringBuilder sb = new StringBuilder();
sb.append("{");
if (getImageId() != null) sb.append("ImageId: " + getImageId() + ",");
if (getImageLocation() != null) sb.append("ImageLocation: " + getImageLocation() + ",");
if (getState() != null) sb.append("State: " + getState() + ",");
origin: aws-amplify/aws-sdk-android

int hashCode = 1;
hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); 
hashCode = prime * hashCode + ((getImageLocation() == null) ? 0 : getImageLocation().hashCode()); 
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); 
origin: com.netflix.spinnaker.clouddriver/clouddriver-aws

 public String getId() {
  return image.getImageId();
 }
}
origin: aws-amplify/aws-sdk-android

Image other = (Image)obj;
if (other.getImageId() == null ^ this.getImageId() == null) return false;
if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; 
if (other.getImageLocation() == null ^ this.getImageLocation() == null) return false;
if (other.getImageLocation() != null && other.getImageLocation().equals(this.getImageLocation()) == false) return false; 
origin: org.wso2.testgrid/org.wso2.testgrid.infrastructure

  return Optional.empty();
} else if (applicableAMIList.size() == 1) {
  return Optional.of(applicableAMIList.get(0).getImageId());
} else {
  String environment = ConfigurationContext.
        if (AMI_TAG_TESTGRID_ENVIRONMENT.equals(amiTag.getKey())) {
          if (amiTag.getValue().equals(environment)) {
            return Optional.of(image.getImageId());
  } else {
    logger.warn("Execution environment of TESTGRID_ENVIRONMENT is not set in config.properties.");
    return Optional.of(applicableAMIList.get(0).getImageId());
origin: org.kuali.common/kuali-aws

protected BlockDeviceMapping getRootBlockDeviceMapping(Image image) {
  String rootDeviceName = image.getRootDeviceName();
  List<BlockDeviceMapping> mappings = image.getBlockDeviceMappings();
  for (BlockDeviceMapping mapping : mappings) {
    String deviceName = mapping.getDeviceName();
    if (rootDeviceName.equals(deviceName)) {
      return mapping;
    }
  }
  throw illegalState("Could not locate the root block device mapping for AMI [%s]", image.getImageId());
}
origin: org.jenkins-ci.plugins/ec2

private List<BlockDeviceMapping> getAmiBlockDeviceMappings() {
  /*
   * AmazonEC2#describeImageAttribute does not work due to a bug
   * https://forums.aws.amazon.com/message.jspa?messageID=231972
   */
  for (final Image image: getParent().connect().describeImages().getImages()) {
    if (ami.equals(image.getImageId())) {
      return image.getBlockDeviceMappings();
    }
  }
  throw new AmazonClientException("Unable to get AMI device mapping for " + ami);
}
origin: com.amazonaws/aws-java-sdk-ec2

if (getCreationDate() != null)
  sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getImageId() != null)
  sb.append("ImageId: ").append(getImageId()).append(",");
if (getImageLocation() != null)
  sb.append("ImageLocation: ").append(getImageLocation()).append(",");
origin: jenkinsci/ec2-plugin

private Image getImage() {
  DescribeImagesRequest request = new DescribeImagesRequest().withImageIds(ami);
  for (final Image image : getParent().connect().describeImages(request).getImages()) {
    if (ami.equals(image.getImageId())) {
      return image;
    }
  }
  throw new AmazonClientException("Unable to find AMI " + ami);
}
origin: zalando-stups/fullstop

    taupageExpirationTimeProvider.getExpirationTime(region, image.getOwnerId(), image.getImageId()));
if (optionalExpirationDate.isPresent()) {
  final ZonedDateTime expirationDate = optionalExpirationDate.get();
        .withMetaInfo(ImmutableMap.of(
            "ami_owner_id", image.getOwnerId(),
            "ami_id", image.getImageId(),
            "ami_name", image.getName(),
            "expiration_date", expirationDate.toString()))
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: LendingClub/mercator

@Override
protected void doScan() {
  AmazonEC2Client c = getClient();
  
  NeoRxClient neoRx = getNeoRxClient();
  Preconditions.checkNotNull(neoRx);
  GraphNodeGarbageCollector gc = newGarbageCollector().bindScannerContext();
  DescribeImagesRequest req = new DescribeImagesRequest().withOwners("self");
  DescribeImagesResult result = c.describeImages(req);
  
  rateLimit();
  result.getImages().forEach(i -> { 
    try { 
      ObjectNode n = convertAwsObject(i, getRegion());
    
      
      String cypher = "merge (x:AwsAmi {aws_arn:{aws_arn}}) set x+={props} set x.updateTs=timestamp() return x";
      neoRx.execCypher(cypher, "aws_arn", n.path("aws_arn").asText(), "props",n).forEach( r->{
        gc.MERGE_ACTION.accept(r);
        getShadowAttributeRemover().removeTagAttributes("AwsAmi", n, r);
      });
      incrementEntityCount();
    } catch (RuntimeException e) { 
      maybeThrow(e,"problem scanning AMI "+i.getImageId());
    }
  });

}
origin: com.amazonaws/aws-java-sdk-ec2

if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false)
  return false;
if (other.getImageId() == null ^ this.getImageId() == null)
  return false;
if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false)
  return false;
if (other.getImageLocation() == null ^ this.getImageLocation() == null)
com.amazonaws.services.ec2.modelImagegetImageId

Javadoc

The ID of the AMI.

Popular methods of Image

  • 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).
  • getRootDeviceType
    The type of root device used by the AMI. The AMI can use an EBS volume or an instance store volume.
  • 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

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JTable (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Table (org.hibernate.mapping)
    A relational table
  • Top PhpStorm plugins
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