Package com.exoscale.sdk.model
Class Snapshot
- java.lang.Object
-
- com.exoscale.sdk.model.Snapshot
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class Snapshot extends Object
Snapshot
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Snapshot.StateEnum
Snapshot state
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_CREATED_AT
static String
JSON_PROPERTY_EXPORT
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_INSTANCE
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_SIZE
static String
JSON_PROPERTY_STATE
-
Constructor Summary
Constructors Constructor Description Snapshot()
Snapshot(UUID id, OffsetDateTime createdAt, Long size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Return true if this snapshot object is equal to o.Snapshot
export(SnapshotExport export)
OffsetDateTime
getCreatedAt()
Snapshot creation dateSnapshotExport
getExport()
Get exportUUID
getId()
Snapshot IDInstance
getInstance()
Get instanceString
getName()
Snapshot nameLong
getSize()
Snapshot size in GiB minimum: 10 maximum: 51200Snapshot.StateEnum
getState()
Snapshot stateint
hashCode()
Snapshot
instance(Instance instance)
Snapshot
name(String name)
void
setExport(SnapshotExport export)
void
setInstance(Instance instance)
void
setName(String name)
void
setState(Snapshot.StateEnum state)
Snapshot
state(Snapshot.StateEnum state)
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string.String
toUrlQueryString(String prefix)
Convert the instance into URL query string.
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE
public static final String JSON_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPORT
public static final String JSON_PROPERTY_EXPORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCE
public static final String JSON_PROPERTY_INSTANCE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Snapshot
public Snapshot()
-
Snapshot
public Snapshot(UUID id, OffsetDateTime createdAt, Long size)
-
-
Method Detail
-
getId
@Nullable public UUID getId()
Snapshot ID- Returns:
- id
-
getName
@Nullable public String getName()
Snapshot name- Returns:
- name
-
setName
public void setName(String name)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Snapshot creation date- Returns:
- createdAt
-
state
public Snapshot state(Snapshot.StateEnum state)
-
getState
@Nullable public Snapshot.StateEnum getState()
Snapshot state- Returns:
- state
-
setState
public void setState(Snapshot.StateEnum state)
-
getSize
@Nullable public Long getSize()
Snapshot size in GiB minimum: 10 maximum: 51200- Returns:
- size
-
export
public Snapshot export(SnapshotExport export)
-
getExport
@Nullable public SnapshotExport getExport()
Get export- Returns:
- export
-
setExport
public void setExport(SnapshotExport export)
-
getInstance
@Nullable public Instance getInstance()
Get instance- Returns:
- instance
-
setInstance
public void setInstance(Instance instance)
-
equals
public boolean equals(Object o)
Return true if this snapshot object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-