public Snapshot withSnapshotTime(java.util.Date snapshotTime) {
        setSnapshotTime(snapshotTime);
        return this;
    }
<p>
The time when the snapshot was created.
</p>

@param snapshotTime
       The time when the snapshot was created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/Snapshot.java