Class ShareSnapshotInfo
- java.lang.Object
-
- com.azure.storage.file.share.models.ShareSnapshotInfo
-
public final class ShareSnapshotInfo extends Object
Contains information about a snapshot of a Share in the storage File service.
-
-
Constructor Summary
Constructors Constructor Description ShareSnapshotInfo(String snapshot, String eTag, OffsetDateTime lastModified)
Creates an instance of snapshot information for a specific Share.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getETag()
OffsetDateTime
getLastModified()
String
getSnapshot()
-
-
-
Constructor Detail
-
ShareSnapshotInfo
public ShareSnapshotInfo(String snapshot, String eTag, OffsetDateTime lastModified)
Creates an instance of snapshot information for a specific Share.- Parameters:
snapshot
- Identifier for the snapshoteTag
- Entity tag that corresponds to the snapshotlastModified
- Last time the Share was modified if the snapshot was created without metadata, if the snapshot was created with metadata then it will be the time the snapshot was created
-
-
Method Detail
-
getSnapshot
public String getSnapshot()
- Returns:
- the identifier of the snapshot
-
getETag
public String getETag()
- Returns:
- the entity tag that corresponds to the snapshot
-
getLastModified
public OffsetDateTime getLastModified()
- Returns:
- the last time the share was modified if the snapshot was created without metadata, otherwise this is the time that the snapshot was created.
-
-