org.jclouds.gogrid.domain
Class ServerImage

java.lang.Object
  extended by org.jclouds.gogrid.domain.ServerImage
All Implemented Interfaces:
Comparable<ServerImage>

public class ServerImage
extends Object
implements Comparable<ServerImage>

Class ServerImage


Nested Class Summary
static class ServerImage.Builder<T extends ServerImage.Builder<T>>
           
 
Constructor Summary
protected ServerImage(long id, String name, String friendlyName, String description, Option os, Option architecture, ServerImageType type, ServerImageState state, double price, String location, boolean isActive, boolean isPublic, Date createdTime, Date updatedTime, Set<BillingToken> billingTokens, Customer owner)
           
 
Method Summary
static ServerImage.Builder<?> builder()
           
 int compareTo(ServerImage that)
           
 boolean equals(Object obj)
           
 Option getArchitecture()
           
 Set<BillingToken> getBillingTokens()
           
 Date getCreatedTime()
           
 String getDescription()
           
 String getFriendlyName()
           
 long getId()
           
 String getLocation()
           
 String getName()
           
 Option getOs()
           
 Customer getOwner()
           
 double getPrice()
           
 ServerImageState getState()
           
 ServerImageType getType()
           
 Date getUpdatedTime()
           
 int hashCode()
           
 boolean isActive()
           
 boolean isPublic()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 ServerImage.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerImage

@ConstructorProperties(value={"id","name","friendlyName","description","os","architecture","type","state","price","location","isActive","isPublic","createdTime","updatedTime","billingtokens","owner"})
protected ServerImage(long id,
                                                 String name,
                                                 String friendlyName,
                                                 @Nullable
                                                 String description,
                                                 Option os,
                                                 @Nullable
                                                 Option architecture,
                                                 ServerImageType type,
                                                 ServerImageState state,
                                                 double price,
                                                 String location,
                                                 boolean isActive,
                                                 boolean isPublic,
                                                 @Nullable
                                                 Date createdTime,
                                                 @Nullable
                                                 Date updatedTime,
                                                 Set<BillingToken> billingTokens,
                                                 Customer owner)
Method Detail

builder

public static ServerImage.Builder<?> builder()

toBuilder

public ServerImage.Builder<?> toBuilder()

getId

public long getId()

getName

public String getName()

getFriendlyName

public String getFriendlyName()

getDescription

public String getDescription()

getOs

public Option getOs()

getArchitecture

@Nullable
public Option getArchitecture()

getType

public ServerImageType getType()

getState

public ServerImageState getState()

getPrice

public double getPrice()

getLocation

public String getLocation()

isActive

public boolean isActive()

isPublic

public boolean isPublic()

getCreatedTime

@Nullable
public Date getCreatedTime()

getUpdatedTime

@Nullable
public Date getUpdatedTime()

getBillingTokens

public Set<BillingToken> getBillingTokens()

getOwner

public Customer getOwner()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(ServerImage that)
Specified by:
compareTo in interface Comparable<ServerImage>


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