org.jclouds.compute.domain.internal
Class ImageImpl

java.lang.Object
  extended by org.jclouds.domain.internal.ResourceMetadataImpl<ComputeType>
      extended by org.jclouds.compute.domain.internal.ComputeMetadataImpl
          extended by org.jclouds.compute.domain.internal.ImageImpl
All Implemented Interfaces:
Comparable<org.jclouds.domain.ResourceMetadata<ComputeType>>, ComputeMetadata, ComputeMetadataIncludingStatus<Image.Status>, Image, org.jclouds.domain.ResourceMetadata<ComputeType>

public class ImageImpl
extends ComputeMetadataImpl
implements Image


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.domain.Image
Image.Status
 
Field Summary
 
Fields inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
tags
 
Constructor Summary
ImageImpl(String providerId, String name, String id, org.jclouds.domain.Location location, URI uri, Map<String,String> userMetadata, Set<String> tags, OperatingSystem operatingSystem, Image.Status status, String backendStatus, String description, String version, org.jclouds.domain.LoginCredentials defaultCredentials)
           
 
Method Summary
 String getBackendStatus()
          status of the resource, as supplied literally from the backend api.
 org.jclouds.domain.LoginCredentials getDefaultCredentials()
          Default credentials for the current image
 String getDescription()
          Description of the image.
 OperatingSystem getOperatingSystem()
          The operating system installed on this image
 Image.Status getStatus()
          portable status of the resource
 String getVersion()
          Version of the image
protected  com.google.common.base.Objects.ToStringHelper string()
           
 
Methods inherited from class org.jclouds.compute.domain.internal.ComputeMetadataImpl
addComputeToStringSuffix, compareTo, computeToStringPrefix, equals, getId, getTags, getType, hashCode
 
Methods inherited from class org.jclouds.domain.internal.ResourceMetadataImpl
getLocation, getName, getProviderId, getUri, getUserMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.compute.domain.ComputeMetadata
getId, getName, getProviderId, getTags, getType
 
Methods inherited from interface org.jclouds.domain.ResourceMetadata
getLocation, getUri, getUserMetadata
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ImageImpl

public ImageImpl(String providerId,
                 String name,
                 String id,
                 org.jclouds.domain.Location location,
                 URI uri,
                 Map<String,String> userMetadata,
                 Set<String> tags,
                 OperatingSystem operatingSystem,
                 Image.Status status,
                 @Nullable
                 String backendStatus,
                 @Nullable
                 String description,
                 @Nullable
                 String version,
                 @Nullable
                 org.jclouds.domain.LoginCredentials defaultCredentials)
Method Detail

getOperatingSystem

public OperatingSystem getOperatingSystem()
The operating system installed on this image

Specified by:
getOperatingSystem in interface Image

getStatus

public Image.Status getStatus()
portable status of the resource

Specified by:
getStatus in interface ComputeMetadataIncludingStatus<Image.Status>

getBackendStatus

public String getBackendStatus()
status of the resource, as supplied literally from the backend api.

Specified by:
getBackendStatus in interface ComputeMetadataIncludingStatus<Image.Status>
Returns:
status or null, if the backend api has no concept of status

getVersion

public String getVersion()
Version of the image

Specified by:
getVersion in interface Image

getDescription

public String getDescription()
Description of the image.

Specified by:
getDescription in interface Image

getDefaultCredentials

public org.jclouds.domain.LoginCredentials getDefaultCredentials()
Default credentials for the current image

Specified by:
getDefaultCredentials in interface Image

string

protected com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class ComputeMetadataImpl


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.