Package org.jclouds.cloudstack.domain
Class TemplateExtraction
- java.lang.Object
-
- org.jclouds.cloudstack.domain.TemplateExtraction
-
- All Implemented Interfaces:
Comparable<TemplateExtraction>
public class TemplateExtraction extends Object implements Comparable<TemplateExtraction>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TemplateExtraction.Builder<T extends TemplateExtraction.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
TemplateExtraction(String id, String accountId, Date created, String extractId, ExtractMode extractMode, String name, String state, String status, String storageType, int uploadPercentage, String url, String zoneId, String zoneName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TemplateExtraction.Builder<?>
builder()
int
compareTo(TemplateExtraction other)
boolean
equals(Object obj)
String
getAccountId()
Date
getCreated()
String
getExtractId()
ExtractMode
getExtractMode()
String
getId()
String
getName()
String
getState()
String
getStatus()
String
getStorageType()
int
getUploadPercentage()
String
getUrl()
String
getZoneId()
String
getZoneName()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
TemplateExtraction.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
TemplateExtraction
@ConstructorProperties({"id","accountid","created","extractId","extractMode","name","state","status","storagetype","uploadpercentage","url","zoneid","zonename"}) protected TemplateExtraction(String id, @Nullable String accountId, @Nullable Date created, @Nullable String extractId, @Nullable ExtractMode extractMode, @Nullable String name, @Nullable String state, @Nullable String status, @Nullable String storageType, int uploadPercentage, @Nullable String url, @Nullable String zoneId, @Nullable String zoneName)
-
-
Method Detail
-
builder
public static TemplateExtraction.Builder<?> builder()
-
toBuilder
public TemplateExtraction.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- the id of extracted object
-
getAccountId
@Nullable public String getAccountId()
- Returns:
- the account id to which the extracted object belongs
-
getExtractMode
@Nullable public ExtractMode getExtractMode()
- Returns:
- the mode of extraction - upload or download
-
getUploadPercentage
public int getUploadPercentage()
- Returns:
- the percentage of the entity uploaded to the specified location
-
getUrl
@Nullable public String getUrl()
- Returns:
- if mode = upload then url of the uploaded entity. if mode = download the url from which the entity can be downloaded
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(TemplateExtraction other)
- Specified by:
compareTo
in interfaceComparable<TemplateExtraction>
-
-