public RemoteLogSegmentState state() {
        return 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/api/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogSegmentMetadata.java