ShareSnapshotInfo Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareSnapshotInfo
- com.
public final class ShareSnapshotInfo
Contains information about a snapshot of a Share in the storage File service.
Constructor Summary
Constructor | Description |
---|---|
ShareSnapshotInfo(String snapshot, String eTag, OffsetDateTime lastModified) |
Creates an instance of snapshot information for a specific Share. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String | getETag() |
Offset |
getLastModified() |
String | getSnapshot() |
Methods inherited from java.lang.Object
Constructor Details
ShareSnapshotInfo
public ShareSnapshotInfo(String snapshot, String eTag, OffsetDateTime lastModified)
Creates an instance of snapshot information for a specific Share.
Parameters:
snapshot
- Identifier for the snapshot
eTag
- Entity tag that corresponds to the snapshot
lastModified
- 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 Details
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.
getSnapshot
public String getSnapshot()
Returns:
the identifier of the snapshot
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for