org.jclouds.vcloud.director.v1_5.domain
Class File

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.domain.Resource
      extended by org.jclouds.vcloud.director.v1_5.domain.Entity
          extended by org.jclouds.vcloud.director.v1_5.domain.File

public class File
extends Entity

Represents a file to be transferred (uploaded or downloaded).

Java class for File complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="File">
   <complexContent>
     <extension base="{http://www.vmware.com/vcloud/v1.5}EntityType">
       <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}long" />
       <attribute name="bytesTransferred" type="{http://www.w3.org/2001/XMLSchema}long" />
       <attribute name="checksum" type="{http://www.w3.org/2001/XMLSchema}normalizedString" />
       <anyAttribute processContents='lax' namespace='##other'/>
     </extension>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class File.Builder<B extends File.Builder<B>>
           
 
Field Summary
protected  Long bytesTransferred
           
protected  String checksum
           
protected  Long size
           
 
Fields inherited from class org.jclouds.vcloud.director.v1_5.domain.Resource
logger
 
Constructor Summary
File(File.Builder<?> builder)
           
 
Method Summary
static File.Builder<?> builder()
           
 boolean equals(Object o)
           
 Long getBytesTransferred()
          Gets the value of the bytesTransferred property.
 String getChecksum()
          Gets the value of the checksum property.
 Long getSize()
          Gets the value of the size property.
 int hashCode()
           
 com.google.common.base.Objects.ToStringHelper string()
           
 File.Builder<?> toBuilder()
           
 
Methods inherited from class org.jclouds.vcloud.director.v1_5.domain.Entity
clone, getDescription, getId, getName, getTasks, setDescription, setName
 
Methods inherited from class org.jclouds.vcloud.director.v1_5.domain.Resource
getHref, getLinks, getType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

size

protected Long size

bytesTransferred

protected Long bytesTransferred

checksum

protected String checksum
Constructor Detail

File

public File(File.Builder<?> builder)
Method Detail

builder

public static File.Builder<?> builder()

toBuilder

public File.Builder<?> toBuilder()
Overrides:
toBuilder in class Entity

getSize

public Long getSize()
Gets the value of the size property.

Returns:
possible object is Long

getBytesTransferred

public Long getBytesTransferred()
Gets the value of the bytesTransferred property.

Returns:
possible object is Long

getChecksum

public String getChecksum()
Gets the value of the checksum property.

Returns:
possible object is String

equals

public boolean equals(Object o)
Overrides:
equals in class Entity

hashCode

public int hashCode()
Overrides:
hashCode in class Entity

string

public com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class Entity


Copyright © 2009-2012 jclouds. All Rights Reserved.