org.jclouds.joyent.cloudapi.v6_5.domain
Class Dataset

java.lang.Object
  extended by org.jclouds.joyent.cloudapi.v6_5.domain.Dataset
All Implemented Interfaces:
Comparable<Dataset>

public class Dataset
extends Object
implements Comparable<Dataset>

A dataset is the image of the software on your machine. It contains the software packages that will be available on newly provisioned machines. In the case of virtual machines, the dataset also includes the operating system.

Author:
Gerald Pereira
See Also:
docs

Nested Class Summary
static class Dataset.Builder
           
 
Constructor Summary
Dataset(String id, String urn, String name, String os, Machine.Type type, String description, boolean isDefault, Map<String,org.jclouds.domain.JsonBall> requirements, String version, Date created)
           
 
Method Summary
static Dataset.Builder builder()
           
 int compareTo(Dataset that)
           
 boolean equals(Object object)
           
 Date getCreated()
          When the dataset was created
 String getDescription()
          The description of this dataset
 String getId()
          The globally unique id for this dataset
 String getName()
          The friendly name for this dataset
 String getOs()
          The underlying operating system for this dataset
 Map<String,String> getRequirements()
          Contains a grouping of various minimum requirements for provisioning a machine with this dataset.
 Map<String,String> getRequirementsAsJsonLiterals()
          If the value is a string, it will be quoted, as that's how json strings are represented.
 Machine.Type getType()
          Whether this is a smartmachine or virtualmachine dataset
 String getUrn()
          The full URN for this dataset
 String getVersion()
          The version for this dataset
 int hashCode()
           
 boolean isDefault()
          Whether this is the default dataset in this datacenter
 Dataset.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dataset

@ConstructorProperties(value={"id","urn","name","os","type","description","default","requirements","version","created"})
public Dataset(String id,
                                          String urn,
                                          String name,
                                          String os,
                                          Machine.Type type,
                                          String description,
                                          boolean isDefault,
                                          Map<String,org.jclouds.domain.JsonBall> requirements,
                                          String version,
                                          Date created)
Method Detail

builder

public static Dataset.Builder builder()

toBuilder

public Dataset.Builder toBuilder()

getId

public String getId()
The globally unique id for this dataset


getUrn

public String getUrn()
The full URN for this dataset


getName

public String getName()
The friendly name for this dataset


getOs

public String getOs()
The underlying operating system for this dataset


getType

public Machine.Type getType()
Whether this is a smartmachine or virtualmachine dataset


getDescription

public String getDescription()
The description of this dataset


isDefault

public boolean isDefault()
Whether this is the default dataset in this datacenter


getRequirementsAsJsonLiterals

public Map<String,String> getRequirementsAsJsonLiterals()
If the value is a string, it will be quoted, as that's how json strings are represented.

Returns:
key to a json literal of the value
See Also:
getRequirements(), Json.fromJson(java.lang.String, java.lang.reflect.Type)

getRequirements

public Map<String,String> getRequirements()
Contains a grouping of various minimum requirements for provisioning a machine with this dataset. For example 'password' indicates that a password must be provided.

Note

requirements can contain arbitrarily complex values. If the value has structure, you should use getRequirementsAsJsonLiterals()


getVersion

public String getVersion()
The version for this dataset


getCreated

public Date getCreated()
When the dataset was created


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


Copyright © 2009-2012 jclouds. All Rights Reserved.