@Override
    public String toString() {
        return "RemoteLogSegmentMetadataSnapshot{" +
                "segmentId=" + segmentId +
                ", startOffset=" + startOffset +
                ", endOffset=" + endOffset +
                ", maxTimestampMs=" + maxTimestampMs +
                ", segmentLeaderEpochs=" + segmentLeaderEpochs +
                ", segmentSizeInBytes=" + segmentSizeInBytes +
                ", customMetadata=" + customMetadata +
                ", state=" + state +
                '}';
    }
Returns the current state of this remote log segment. It can be any of the below
<ul>
    {@link RemoteLogSegmentState#COPY_SEGMENT_STARTED}
    {@link RemoteLogSegmentState#COPY_SEGMENT_FINISHED}
    {@link RemoteLogSegmentState#DELETE_SEGMENT_STARTED}
    {@link RemoteLogSegmentState#DELETE_SEGMENT_FINISHED}
</ul>
storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/RemoteLogSegmentMetadataSnapshot.java