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

How to use
getDescription
method
in
org.jclouds.ec2.domain.Image

Best Java code snippets using org.jclouds.ec2.domain.Image.getDescription (Showing top 9 results out of 315)

origin: apache/jclouds

assertEquals(ebsBackedImage.getRootDeviceType(), RootDeviceType.EBS);
assertEquals(ebsBackedImage.getRootDeviceName(), "/dev/sda1");
assertEquals(ebsBackedImage.getDescription(), "adrian");
assertEquals(
   ebsBackedImage.getEbsBlockDevices().entrySet(),
origin: jclouds/legacy-jclouds

@Test
public void testCreateAndListEBSBackedImage() throws Exception {
 Snapshot snapshot = createSnapshot();
 // List of images before...
 int sizeBefore = client.describeImagesInRegion(regionId).size();
 // Register a new image...
 ebsBackedImageId = client.registerUnixImageBackedByEbsInRegion(regionId, ebsBackedImageName, snapshot.getId(),
    addNewBlockDevice("/dev/sda2", "myvirtual", 1).withDescription("adrian"));
 imagesToDeregister.add(ebsBackedImageId);
 final Image ebsBackedImage = getOnlyElement(client.describeImagesInRegion(regionId, imageIds(ebsBackedImageId)));
 assertEquals(ebsBackedImage.getName(), ebsBackedImageName);
 assertEquals(ebsBackedImage.getImageType(), ImageType.MACHINE);
 assertEquals(ebsBackedImage.getRootDeviceType(), RootDeviceType.EBS);
 assertEquals(ebsBackedImage.getRootDeviceName(), "/dev/sda1");
 assertEquals(ebsBackedImage.getDescription(), "adrian");
 assertEquals(
    ebsBackedImage.getEbsBlockDevices().entrySet(),
    ImmutableMap.of("/dev/sda1", new Image.EbsBlockDevice(snapshot.getId(), snapshot.getVolumeSize(), true),
       "/dev/sda2", new Image.EbsBlockDevice(null, 1, false)).entrySet());
 // List of images after - should be one larger than before
 int after = client.describeImagesInRegion(regionId).size();
 assertEquals(after, sizeBefore + 1);
}
origin: jclouds/legacy-jclouds

builder.id(from.getRegion() + "/" + from.getId());
builder.name(from.getName());
builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
origin: com.amysta.jclouds.api/ec2

builder.id(from.getRegion() + "/" + from.getId());
builder.name(from.getName());
builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
origin: apache/jclouds

Image image = Iterables.getOnlyElement(client.getAMIApi().get().describeImagesInRegion(snapshot.getRegion(),
   imageIds(IMAGE_ID)));
String description = image.getDescription() == null ? "jclouds" : image.getDescription();
origin: org.jclouds.api/ec2

builder.id(from.getRegion() + "/" + from.getId());
builder.name(from.getName());
builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
origin: org.apache.jclouds.api/ec2

builder.id(from.getRegion() + "/" + from.getId());
builder.name(from.getName());
builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
origin: apache/jclouds

builder.id(from.getRegion() + "/" + from.getId());
builder.name(from.getName());
builder.description(from.getDescription() != null ? from.getDescription() : from.getImageLocation());
builder.userMetadata(ImmutableMap.<String, String> builder().put("owner", from.getImageOwnerId()).put(
     "rootDeviceType", from.getRootDeviceType().value()).put("virtualizationType",
origin: jclouds/legacy-jclouds

Image image = Iterables.getOnlyElement(client.getAMIServices().describeImagesInRegion(snapshot.getRegion(),
   imageIds(IMAGE_ID)));
String description = image.getDescription() == null ? "jclouds" : image.getDescription();
org.jclouds.ec2.domainImagegetDescription

Popular methods of Image

  • getId
    The ID of the AMI.
  • getImageType
    The type of image (machine, kernel, or ramdisk).
  • getName
  • <init>
  • getImageLocation
    The location of the AMI.
  • getImageState
    Current state of the AMI. If the operation returns available, the image is successfully registered a
  • getRawState
    raw form of #getImageState() as taken directly from the api response xml document/
  • getRegion
    To be removed in jclouds 1.6 WARNING Especially on EC2 clones that may not support regions, this val
  • getRootDeviceType
  • getArchitecture
    The architecture of the image (i386 or x86_64).
  • getHypervisor
  • getImageOwnerId
    AWS Access Key ID of the image owner.
  • getHypervisor,
  • getImageOwnerId,
  • getPlatform,
  • getVirtualizationType,
  • getEbsBlockDevices,
  • getKernelId,
  • getRamdiskId,
  • getRootDeviceName,
  • getTags

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 12 Jupyter Notebook extensions
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